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

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to