[DRBD-user] DRBD setup is failing on Ubuntu

shaik rizwan sha.rizwanali at gmail.com
Tue Oct 10 16:13:36 CEST 2023


Hi Team,


I have installed DRBD with the following version and other details.


Scenario:

Two VMWARE VMs with Ubuntu 20.4 version.
Installed DRBD utils on both the vms.

After create md and restart the drbd service i am able to see the devices
are ins sync


My query and problem is when I restart the primary vm DRBD is not working
and data in disk are unable to see in the mounted disks.

How to get connected the disks again and sync back the same.


What are the Failover and Failback tests can be done on DRBD.


How can I achieve the setup back, when Primary is rebooted or secondary is
rebooted.


Version of DRBD is below:


DRBDADM_BUILDTAG=GIT-hash:\ 63092751e76e1fba397e53df4be5c1161b83a223\
reproducible\ build\,\ 2020-03-21\ 12:27:02

DRBDADM_API_VERSION=1

DRBD_KERNEL_VERSION_CODE=0x08040b

DRBDADM_VERSION_CODE=0x090b00

DRBDADM_VERSION=9.11.0


drbd.conf
#################################################

# You can find an example in  /usr/share/doc/drbd.../drbd.conf.example


#include "drbd.d/global_common.conf";

#include "drbd.d/*.res";

global {

  usage-count no;

}


common {

  net {

    protocol C;

  }

}


resource r0 {

  on hostname1 {

    device /dev/drbd0;

    disk /dev/sdd;

    address hostname1IP:7788;

    meta-disk internal;

  }


  on hostname2 {

    device /dev/drbd0;

    disk /dev/sdd;

    address hostname2IP:7788;

    meta-disk internal;

  }

}
############################################

Lsblk:

sdd                         8:48   0   10G  0 disk


└─drbd0                   147:0    0   10G  1 disk

Looking for help

Thanks in advance

Regards,

Rizwan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20231010/fb05debd/attachment.htm>


More information about the drbd-user mailing list