[DRBD-user] Facing some issues in drbd configuration.

venkatesh prabhu vikieethechip at gmail.com
Thu Jan 19 12:18:31 CET 2012

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


Hi,

Please help me in solving the below mentioned problems.
I have installed DRBD in cent0S 6.
The rpms I installed are

kmod-drbd84-8.4.0-2.el6.elrepo.i686.rpm
drbd84-utils-8.4.0-2.el6.elrepo.i686.rpm
elrepo-release-6-4.el6.elrepo.noarch.rpm

//Modprobe was success.

1. After installing the above mentioned rpm’s in two nodes I tried to
start the drbd but it always failed to connect with the peer.
Connection state is always “WFConnection”.

2. When I tried to create metadata it always gives the error
    Device '0' is configured!
   Command 'drbdmeta 0 v08 /dev/vg0/drbdmeta 0 create-md' terminated
with exit code 20

The drbd.conf file used is
/**************************************************************************************************************************
global {
                 usage-count no;
      }
      common {
                protocol C;
                startup {
                        degr-wfc-timeout 3;    #3 = 3 sec..
                        wfc-timeout 180;    # 3 min.
                #       become-primary-on both;
                } # end of startup
                handlers {
                } # end of handlers
       disk {
       } # end of disk

       net {
                 timeout       60;    #  6 seconds  (unit = 0.1 seconds)
                 connect-int   10;    # 10 seconds  (unit = 1 second)
                 ping-int      10;    # 10 seconds  (unit = 1 second)
                 ping-timeout   5;    # 500 ms (unit = 0.1 seconds)
                 shared-secret "DRBD disk mirroring for BTP-R";
                 after-sb-0pri discard-older-primary;
                 cram-hmac-alg sha1;
                # allow-two-primaries;
       } # end of net
     } # end of common
    resource mfs_drbd {
syncer {
            rate 100M;
        }
        on lab1602 {
                device     /dev/drbd0 minor 0;
                disk       /dev/vg0/mirr;
                address    10.203.230.137:7788;
                meta-disk  /dev/vg0/drbdmeta[0];
                #meta-disk      internal;
        }
        on lab1601 {
               device    /dev/drbd0 minor 0;
                disk      /dev/vg0/mirr;
                address   10.203.230.135:7788;
                meta-disk /dev/vg0/drbdmeta[0];
                #meta-disk      internal;
      }
     } #end of resource sfs_drbd

/************************************************************************************************************************************
please help me in solving the above mentioned problems.
Thanks for any help.

-vengatesh prabhu



More information about the drbd-user mailing list