[DRBD-user] drbd 8.0pre5 Lower device is already mounted

Lars Ellenberg Lars.Ellenberg at linbit.com
Tue Dec 5 18:32:27 CET 2006

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


/ 2006-12-05 08:49:00 -0600
\ Jeff Fisher:
> >> I cant set it up because drbdadm always states that the device is
> >> already mounted. I know that the kernel may claim the device or anything
> >> else but I didn't find anything and I deactivated the volumes with evmsn
> >> management tool but it stays the same. The two machines are connected vi
> >> a private gigabit link for drbd.
> 
> > Could you please retry with this pach:
> > 
> > phil at mescal:~/src/drbd08/drbd$ svn diff
> > Index: drbd_nl.c
> > ===================================================================
> > --- drbd_nl.c   (revision 2482)
> > +++ drbd_nl.c   (working copy)
> > @@ -671,6 +671,8 @@
> > 
> >         nbc->backing_bdev = inode->i_bdev;
> >         if (bd_claim(nbc->backing_bdev, mdev)) {
> > +               WARN("Backing device hold by: %s\n",
> > +                    nbc->backing_bdev->bd_holder);
> >                 retcode=LDMounted;
> >                 goto fail;
> >         }
> > 
> 
> I'm having the same issue but with drbd 8.0pre6 running under Xen 3.0.3
> (2.6.16.29-xen_3.0.3.0).
> 
> I setup /dev/VolGroup00/drbdtest, which is 2gigs and I created the
> metadata. I setup the drbd.conf and tried to start drbd and this is what
> happens:
> 
> [root at xen2(~)]: modprobe drbd
> [root at xen2(~)]: drbdadm -v up all
> drbdsetup /dev/drbd0 disk /dev/VolGroup00/drbdtest
> /dev/VolGroup00/drbdtest internal --set-defaults --create-device
> --on-io-error=detach
> Failure: (114) Lower device is already mounted.
> Command 'drbdsetup /dev/drbd0 disk /dev/VolGroup00/drbdtest
> /dev/VolGroup00/drbdtest internal --set-defaults --create-device
> --on-io-error=detach' terminated with exit code 10
> 
> So I patched DRBD and this is the error in the kernel log:
> 
> Dec  5 08:40:22 xen2 kernel: drbd0: Backing device hold by:
> 
> To be sure my line is right, here is my patched code:
> 
>         if (bd_claim(nbc->backing_bdev, mdev)) {
>                 WARN("Backing device hold by: %s\n",
> nbc->backing_bdev->bd_holder);

in addition to %s, please try %p, too...

there has been some strange bd_claim patch in some kernels,
there have been ubuntu users complaining about that before.


-- 
: Lars Ellenberg                                  Tel +43-1-8178292-0  :
: LINBIT Information Technologies GmbH            Fax +43-1-8178292-82 :
: Schoenbrunner Str. 244, A-1120 Vienna/Europe   http://www.linbit.com :
__
please use the "List-Reply" function of your email client.



More information about the drbd-user mailing list