Hello guys,
I'm having problems to mirror a logical volume to two different PV.
Code:
membit:~ # pvscan
PV /dev/sdb2 VG rootvg lvm2 [465.67 GB / 12.70 GB free]
PV /dev/sda1 VG datavg lvm2 [149.05 GB / 149.05 GB free]
PV /dev/sdc1 VG datavg lvm2 [372.61 GB / 342.61 GB free]
Total: 3 [987.32 GB] / in use: 3 [987.32 GB] / in no VG: 0 [0 ]
membit:~ # pvdisplay /dev/sda1 /dev/sdc1
--- Physical volume ---
PV Name /dev/sda1
VG Name datavg
PV Size 149.05 GB / not usable 1.31 MB
Allocatable yes
PE Size (KByte) 4096
Total PE 38156
Free PE 38156
Allocated PE 0
PV UUID uDXi31-5AX9-LRDl-W9sN-nEGK-XYfX-QCYXLl
--- Physical volume ---
PV Name /dev/sdc1
VG Name datavg
PV Size 372.61 GB / not usable 3.56 MB
Allocatable yes
PE Size (KByte) 4096
Total PE 95387
Free PE 87707
Allocated PE 7680
PV UUID jU7spD-Kad7-7oUC-16nd-ipiT-dj5c-gBqOBx
membit:~ # lvdisplay datavg/mirroredlv
--- Logical volume ---
LV Name /dev/datavg/mirroredlv
VG Name datavg
LV UUID Ttd1cF-6hQO-s619-fhCQ-ZUo2-qTeb-4EspEh
LV Write Access read/write
LV Status available
# open 0
LV Size 30.00 GB
Current LE 7680
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:6
OK, now if I try to add a mirror to the LV:
Code:
membit:~ # lvconvert -m 1 datavg/mirroredlv
Insufficient suitable allocatable extents for logical volume : 7680 more required
Unable to allocate extents for mirror(s).
HW/OS specs:
Code:
Kernel: 2.6.27.23-0.1-pae
Distro: OpenSUSE 11.1 x86
HDD:
/dev/sda = P-ATA 160GB
/dev/sdc = S-ATA 2 400GB
What am I doing wrong??
