lvcreate fails with mirror raid1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lvm2 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: lvm2
This happens with Feisty. I think it's an lvm2 problem, but it may be related to the dm-mirror.ko module...
Versions:
linux-image-
lvm-common 1.5.20ubuntu12
lvm2 2.02.06-2ubuntu9
libdevmapper1.02 1.02.08-1ubuntu10
Problem:
Having enough space to do so, lvcreate fails to create a mirrored (raid 1) lv, stating that there's not enogh space. Module dm-mirror is loaded.
# pvdisplay
--- Physical volume ---
PV Name /dev/mapper/sdc2
VG Name VMWare
PV Size 116,44 GB / not usable 0
Allocatable yes
PE Size (KByte) 4096
Total PE 29809
Free PE 27249
Allocated PE 2560
PV UUID XA7vtE-
--- Physical volume ---
PV Name /dev/mapper/sdb4
VG Name TEST
PV Size 445,57 GB / not usable 0
Allocatable yes
PE Size (KByte) 4096
Total PE 114066
Free PE 114066
Allocated PE 0
PV UUID dNbjqI-
--- Physical volume ---
PV Name /dev/mapper/sda4
VG Name TEST
PV Size 445,62 GB / not usable 0
Allocatable yes
PE Size (KByte) 4096
Total PE 114078
Free PE 114078
Allocated PE 0
PV UUID vEd5dP-
# lvcreate -m1 -L1G -n my_mirror TEST /dev/mapper/sda4 /dev/mapper/sdb4
Not enough PVs with free space available for parallel allocation.
Consider --alloc anywhere if desperate.
LVM needs 3 devices for a mirror device: two for the mirror devices and one for the disk log.
The error message is not very straightforward, however, this should be fixed upstream if it really needs a fix.
For further information please read the lvcreate(8) manual page.