[DRBD-user] Can't initialize DRBD9 in Proxmox 5.0 (drbdsetup new-resource exit code20)

Borja Muñoz borja.munoz at inelcom.com
Thu Jan 25 10:58:21 CET 2018


I solve the problem just initializing DRBD with /etc/init.d/drbd start 
in both nodes, but now I can't make it work with Proxmox. I feel like 
the documentation is really messed up, don't know what I should do to 
make a 3 node Cluster Proxmox with DRBD and LVM on top. It's confusing.

This is the steps that I've followed:

- Create volume group named drbdpool /dev/sdh1
- Initialize control volume drbdmanage init
- Add node
- Create logical volume with /lvcreate --name vmdisk --size 50G drbdpool 
/on every node
- Create /etc/drbd.d/r0.res resource on every node with:

/resource r0 {//
//        protocol C;//
//        startup {//
//                wfc-timeout  0;     # non-zero wfc-timeout can be 
dangerous 
(http://forum.proxmox.com/threads/3465-Is-it-safe-to-use-wfc-timeout-in-DRBD-configuration)//
//                degr-wfc-timeout 60;//
//                become-primary-on both;//
//        }//
//        on node1 {//
//                device /dev/drbd0;//
//                disk /dev/drbdpool/vmdisk;//
//                address 172.20.0.50:7788;//
//                meta-disk internal;//
//        }//
//        on node2 {//
//                device /dev/drbd0;//
//                disk /dev/drbdpool/vmdisk;//
//                address 172.20.0.52:7788;//
//                meta-disk internal;//
//        }//
//}//
/
-  I try to create metadata with /drbadm create-md r0 /but I have an error:
*drbdadm create-md r0**
**drbd.d/drbdctrl.res:7: conflicting use of device-minor 
'device-minor:node1:0' ...**
**drbd.d/r0.res:0: device-minor 'device-minor:node2:0' first used here**
*
I don't know what to do. I have restarted the nodes, reconfigured the 
pool but I can't make it work.


El 20/01/2018 a las 9:19, Yannis Milios escribió:
> Follow the steps in DRBD9 documentation carefully, in order to create 
> and initialise properly your DRBD9 cluster.
>
> https://docs.linbit.com/docs/users-guide-9.0/#s-proxmox-overview
>
> - Make sure you have installed properly drbd9 kernel modules/drbd-utils.
> - Make sure you have created a VG named drbdpool *before* initialising 
> the cluster.
> - Make sure you have configured  /etc/drbdmanaged.cfg properly.
>
> On Thu, Jan 18, 2018 at 9:47 AM, Borja Muñoz <borja.munoz at inelcom.com 
> <mailto:borja.munoz at inelcom.com>> wrote:
>
>     Hello,
>
>     I'm trying to setup DRBD9 in a new Proxmox 5.0 Cluster but I can't
>     make it work. I have read some threads like this but the solution
>     is not fully clear at all, so:
>
>     The problem is the following:
>
>     drbdmanage init
>
>     /You are going to initialize a new drbdmanage cluster.//
>     //CAUTION! Note that://
>     //  * Any previous drbdmanage cluster information may be removed//
>     //  * Any remaining resources managed by a previous drbdmanage
>     installation//
>     //    that still exist on this system will no longer be managed by
>     drbdmanage//
>     //
>     //Confirm://
>     //  yes/no: yes//
>     //*Error: External command failed:*//*
>     *//*drbdsetup new-resource .drbdctrl 0*//*
>     *//*Command output:*//*
>     *//*  (stdout) *//*
>     *//*Command exited with exit_code 20*//*
>     *//*Initialization failed*/
>
>     I have installed the latest packages with: apt-get install
>     drbd-dkms dbrd-manager pve-headers etc and I have loaded the module
>     / dkms status//
>     //drbd, 9.0.11-1: added/
>
>     modprobe drbd
>
>     # modinfo drbd
>     /filename:       /lib/modules/4.10.17-2-pve/updates/dkms/drbd.ko//
>     //alias:          block-major-147-*//
>     //license:        GPL//
>     //version:        9.0.11-1//
>     //description:    drbd - Distributed Replicated Block Device
>     v9.0.11-1//
>     //author:         Philipp Reisner <phil at linbit.com>
>     <mailto:phil at linbit.com>, Lars Ellenberg <lars at linbit.com>
>     <mailto:lars at linbit.com>//
>     //srcversion:     9ACAAF3E3C9B36A172843DE//
>     //depends:        libcrc32c//
>     //vermagic:       4.10.17-2-pve SMP mod_unload modversions //
>     //parm:           enable_faults:int//
>     //parm:           fault_rate:int//
>     //parm:           fault_count:int//
>     //parm:           fault_devs:int//
>     //parm:           disable_sendpage:bool//
>     //parm:           allow_oos:DONT USE! (bool)//
>     //parm:           minor_count:Approximate number of drbd devices
>     (1-255) (uint)//
>     //parm:           usermode_helper:string
>     /
>
>     I don't know what to do anymore.
>     Thanks
>
>
>     _______________________________________________
>     drbd-user mailing list
>     drbd-user at lists.linbit.com <mailto:drbd-user at lists.linbit.com>
>     http://lists.linbit.com/mailman/listinfo/drbd-user
>     <http://lists.linbit.com/mailman/listinfo/drbd-user>
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20180125/b7078d83/attachment-0001.htm>


More information about the drbd-user mailing list