I'm running Ubuntu 12.04 and have just added 2 new hard drives into my server. The idea being that I would create a volume group that would include them and create a bunch of logical volumes on them that would be mirrored.
I've partitioned the 2 drives to have a a primary partition on each of type 8E (LVM):
/dev/sdc1 2048 3907029167 1953513560 8e Linux LVM /dev/sdd1 2048 3907029167 1953513560 8e Linux LVM
Then added them as physical devices, created a volume group and added the to the volume group:
--- Volume group --- VG Name vmdata System ID Format lvm2 Metadata Areas 2 Metadata Sequence No 8 VG Access read/write VG Status resizable MAX LV 0 Cur LV 0 Open LV 0 Max PV 0 Cur PV 2 Act PV 2 VG Size 3.64 TiB PE Size 4.00 MiB Total PE 953862 Alloc PE / Size 0 / 0 Free PE / Size 953862 / 3.64 TiB VG UUID 2zdfc7-1fj2-kMdy-7OUq-eadi-AsF2-Sujbes --- Physical volumes --- PV Name /dev/sdc1 PV UUID kAU93m-4S5V-MD1V-EkTA-m0u7-bmQn-3pyVmk PV Status allocatable Total PE / Free PE 476931 / 476931 PV Name /dev/sdd1 PV UUID erVnaJ-vp5S-0LHW-oRSx-joer-VXPX-KG0uDb PV Status allocatable Total PE / Free PE 476931 / 476931
When I try to create a new logical volume of type RAID 1 it fails:
$ lvcreate --type raid1 -m 1 -L 64G -n fred vmdata WARNING: Unrecognised segment type raid1 Insufficient suitable allocatable extents for logical volume : 16384 more required Unable to allocate extents for mirror(s).
When I try to create it as a plain mirror it also fails:
$ lvcreate -m 1 -L 64G -n fred vmdata Insufficient suitable allocatable extents for logical volume : 16384 more required Unable to allocate extents for mirror(s).
What am I missing?