[DRBD-user] Urgent: Stuch with DRBD bring up.

venkatesh prabhu vikieethechip at gmail.com
Sat Jan 28 13:26: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 solve my issues.
I am trying to bring up DRBD for first time but i am facing following problems.

1. when i start the drbd service for first time it says adjust disk failed:
    Starting DRBD resources: [
     create res: r0
     prepare disk: r0
     adjust disk: r0:failed(apply-al:20)
     adjust net: r0
]

2. Then creation of metadat "drbdadm create-md r0" is success.

3. Then "drbdadm up r0" fails with exit code 1.
    drbdadm up r0    r0: Failure: (102) Local address(port) already in use.
    Command 'drbdsetup connect r0 ipv4:10.203.230.136:7788
ipv4:10.203.230.135:7788 --shared-secret=DRBD --ping-timeout=5
--ping-int=10 --connect-int=10 --timeout=60 --protocol=C' terminated
with exit code 1

4. If the run the same command drbdadm up r0"  it fails with exit code 10.
    Device '0' is configured!
    Command 'drbdmeta 0 v08 /dev/vg0/drbdmeta flex-external apply-al'
terminated    with exit code 20

but still i can promote the resource to primary and the sync happens
properly between two nodes.

but how can i avoid those errors? please help me.

my drbd.conf file is provided below.

global {
                 usage-count no;
      }

      common {

                protocol C;

                startup {
                        degr-wfc-timeout 3;    #3 = 3 sec..

                        wfc-timeout 180;    # 3 min.
                } # end of startup

                handlers {
                } # end of handlers

      disk {
                on-io-error  detach;
       } # 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";
       } # end of net
     } # end of common

resource r0{

       syncer {
            rate 100M;
        }

         on lab1601 {
                device     /dev/drbd0;
                disk       /dev/vg0/mirror;
                address    10.203.230.135:7788;
                meta-disk  /dev/vg0/drbdmeta;
        }

        on lab1602 {
                device    /dev/drbd0;
                disk      /dev/vg0/mirror;
                address   10.203.230.136:7788;
                meta-disk /dev/vg0/drbdmeta;
       }
     } #end


   Thank You
   Vengatesh Prabhu




-- 
Life is Beautiful:



More information about the drbd-user mailing list