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

Philipp Reisner philipp.reisner at linbit.com
Mon Oct 2 15:32:49 CEST 2006


Am Montag, 2. Oktober 2006 13:58 schrieb Ralf Schenk:
> Hello !
>
> I try to use drbd 8.0pre5 (fetched from SVN) on a ubuntu machine with
> kernel 2.6.16.29. I want to use drbd on LVM2 Volumes. My Data Volume is
> /dev/xeon2/vm01, I have a separate volume for metadata dev/xeon2/drbd,
> big enough for multiple drbd devices. The drbd devices will host XEN
> Domains.
>
> 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.
>
> Thats what I do:
> root at xeon2:~/DOWNLOAD# modprobe drbd
> root at xeon2:~/DOWNLOAD# drbdadm -v up all
> drbdsetup /dev/drbd0 disk /dev/xeon2/vm01 /dev/xeon2/drbd 0
> --set-defaults --create-device --on-io-error=detach
> Failure: (114) Lower device is already mounted.
> drbdsetup /dev/drbd0 syncer --set-defaults --create-device --rate=50M
> drbdsetup /dev/drbd0 net 10.10.10.2:7789 10.10.10.3:7789 C
> --set-defaults --create-device --cram-hmac-alg=sha1 --shared-secret=XXXXX

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;
        }


And see what ends up in the kernel log ?

-Philipp
-- 
: Dipl-Ing Philipp Reisner                      Tel +43-1-8178292-50 :
: LINBIT Information Technologies GmbH          Fax +43-1-8178292-82 :
: Schönbrunnerstr 244, 1120 Vienna, Austria    http://www.linbit.com :



More information about the drbd-user mailing list