Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
>> 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); retcode=LDMounted; goto fail; } Thanks, Jeff -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: OpenPGP digital signature URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20061205/2f7289bb/attachment.pgp>