[DRBD-user] can't mount the device?

Jean-Francois Malouin Jean-Francois.Malouin at bic.mni.mcgill.ca
Wed Mar 5 03:57:13 CET 2008

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


Total newbie here, as of few days. Be nice!
I read the fine user guide on drbd.org but still no go.

I have drbd-8.2.5 installed on debian/etch 2.6.22.2-i686-smp. 
The two nodes have logical volumes to be replicated between them.

I can't mount the volume (before or after the initial sync):

~# mount /export_www
mount: /dev/web-vg/lvweb already mounted or /export_www busy

Forgive the newbie request but what am I doing wrong?

Here's what I did on the primary node:

~# drbdadm create-md r0
v08 Magic number not found
v07 Magic number not found
v07 Magic number not found
v08 Magic number not found
Writing meta data...
initialising activity log
NOT initialized bitmap
New drbd meta data block sucessfully created.
~# drbdadm attach r0
~# drbdadm connect r0
~# drbdadm -- --overwrite-data-of-peer primary r0

A while after:

# cat /proc/drbd
version: 8.2.5 (api:88/proto:86-88)
GIT-hash: 9faf052fdae5ef0c61b4d03890e2d2eab550610c build by root at feeble-1, 2008-03-04 17:12:29

 1: cs:Connected st:Primary/Secondary ds:UpToDate/UpToDate C r---
    ns:114372316 nr:0 dw:0 dr:114372316 al:0 bm:6981 lo:0 pe:0 ua:0 ap:0
        resync: used:0/31 hits:7141289 misses:6981 starving:0 dirty:0 changed:6981
        act_log: used:0/257 hits:0 misses:0 starving:0 dirty:0 changed:0

Here's my drbd.conf

resource r0 {
    protocol C;

    on feeble-0 {
       device    /dev/drbd1;
       disk      /dev/web-vg/lvweb;
       meta-disk internal;
       address   10.0.0.1:7789;
    }

    on feeble-1 {
       device    /dev/drbd1;
       disk      /dev/web-vg/lvweb;
       meta-disk internal;
       address   10.0.0.2:7789;
    }

    disk {
        on-io-error detach; 
    }
     
    syncer {
        rate 10M;
        al-extents 257;
        verify-alg md5;
    }
    
    net {
        sndbuf-size 512k;
        max-buffers 1024;
        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)
        ko-count 4;
        cram-hmac-alg sha1;
        shared-secret blah;
    }
}

kind regards,
jf



More information about the drbd-user mailing list