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

Jean-Francois Malouin Jean-Francois.Malouin at bic.mni.mcgill.ca
Wed Mar 5 13:05:48 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.


* Pascal Charest <pascal.charest at gmail.com> [20080305 01:02]:
> Hi,
> 
> I think the problem would be around the fact that you try to mount the
> underlying device of your drbd array. You should be mounting
> /dev/drbd1 not your LVM volume. (The volume most be available
> thought).

Yep, I thought I had tried that! Florian and you have it right.

> Btw, syncer at 10M is kinda low. You should consider using 1Gbps
> network card and an higher value for your cross-link.

Thank you for the tip. The nodes are connected with point-to-point
GigE so I'll tweak that.

regards,
jf

> 
> Pascal
> 
> -- 
> Pascal Charest, Free software consultant (GNU/linux)
> http://blog.pacharest.com & http://www.mass-storage.org
> 
> 
> On Tue, Mar 4, 2008 at 9:57 PM, Jean-Francois Malouin
> <Jean-Francois.Malouin at bic.mni.mcgill.ca> wrote:
> > 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
> >  _______________________________________________
> >  drbd-user mailing list
> >  drbd-user at lists.linbit.com
> >  http://lists.linbit.com/mailman/listinfo/drbd-user
> >

-- 
<° ><



More information about the drbd-user mailing list