Bug#533436: [lvm2] Unable to use use LVM with DRBD block devices as PV
Laurent Léonard
laurent at open-minds.org
Wed Jun 17 14:00:35 UTC 2009
Package: lvm2
Version: 2.02.44-3
Severity: normal
--- Please enter the report below this line. ---
I was unable to use a DRBD block device as a PV on an LVM-based system. See
the following commands:
debian1:~# pvcreate /dev/drbd0
Physical volume "/dev/drbd0" successfully created
debian1:~# vgcreate replicated /dev/drbd0
Volume group "replicated" successfully created
debian1:~# lvcreate --name foo --size 4G replicated
device-mapper: reload ioctl failed: Invalid argument
Aborting. Failed to activate new LV to wipe the start of it.
debian1:~# tail /var/log/syslog -n 2
Jun 17 15:50:13 debian1 kernel: [ 2108.509080] device-mapper: table: 254:3:
linear: dm-linear: Device lookup failed
Jun 17 15:50:13 debian1 kernel: [ 2108.509086] device-mapper: ioctl: error
adding target to table
At this time there is no /dev/replicated VG.
After I removed the DRBD block device and formatted it in ext3 to exclude any
problem with the DRBD block device:
debian1:~# vgremove replicated
Volume group "replicated" successfully removed
debian1:~# pvremove /dev/drbd0
Labels on physical volume "/dev/drbd0" successfully wiped
debian1:~# mkfs.ext3 /dev/drbd0
[...]
debian1:~# mount /dev/drbd0 /test
--- System information. ---
Architecture: amd64
Kernel: Linux 2.6.29-2-amd64
--
Laurent Léonard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.alioth.debian.org/pipermail/pkg-lvm-maintainers/attachments/20090617/f1d438fd/attachment.pgp>
More information about the pkg-lvm-maintainers
mailing list