[linux-lvm] I can't have the mirror_log mirrored, LVM complains "there is no suitable space"
Alessandro MACUZ
alessandro.macuz at gmail.com
Tue Jul 2 16:08:22 UTC 2013
2013/7/2 Alessandro MACUZ <alessandro.macuz at gmail.com>
> The process here below is self-explanatory of what happens.
>
>
> Starting with one volume (on /dev/sda1) I'd like to mirror it on /dev/sdb1
> and having the mirror_log mirrored as well.
>
>
> Though I think there is plenty of PE I get the error message
>
>
> Insufficient suitable allocatable extents for logical volume : 1536 more
> required
>
> Unable to allocate extents for mirror(s).
>
>
> I mean the mirror_log is one PE, i.e. 4 Megabytes...
>
>
> Why "*lvconvert -i 5 -m1 --mirrorlog mirrored /dev/lvgrptstnlvm/root
> /dev/sdb1*" doesn't work whereas
>
> "*lvconvert -m1 /dev/lvgrptstnlvm/root /dev/sdb1*" does? The space to be
> allocated differs by just one PE.
>
>
> I'm using Knoppix to fix a system due to other problems, I have noticed
> there was a (human) design problem with LVM and I want to achieve the goal
> of one volume mirrored in 2 parts and 2 mirrors logs each on one disk.
>
>
> Thanks,
>
>
> Alex
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>
> *root at Microknoppix:/home/knoppix# lvs -a -o +devices,lv_size*
>
> LV VG Attr LSize Pool Origin Data% Move
> Log Copy% Convert Devices LSize
>
> root lvgrptstnlvm mwi-aom- 6.00g
> root_mlog 100.00 root_mimage_0(0),root_mimage_1(0) 6.00g
>
> [root_mimage_0] lvgrptstnlvm iwi-aom-
> 6.00g
> /dev/sda1(0) 6.00g
>
> [root_mimage_1] lvgrptstnlvm iwi-aom-
> 6.00g
> /dev/sdb1(0) 6.00g
>
> [root_mlog] lvgrptstnlvm lwi-aom-
> 4.00m
> /dev/sdb1(1536) 4.00m
>
> *
> *
>
> *root at Microknoppix:/home/knoppix# pvs -v -o +pv_pe_count,pv_pe_alloc_count
> *
>
> Scanning for physical volume names
>
> PV VG Fmt Attr PSize PFree DevSize PV
> UUID PE Alloc
>
> /dev/sda1 lvgrptstnlvm lvm2 a-- 9.00g 3.00g 9.00g
> 5h4peZ-7SVd-MKrH-IQNJ-UACQ-mM7Q-6CVeo5 2303 1536
>
> /dev/sdb1 lvgrptstnlvm lvm2 a-- 7.07g 1.06g 9.00g
> VlGEw0-JaqC-THbz-G4mv-yHq5-9Y80-N5ANNQ 1809 1537
>
> *
> *
>
> *root at Microknoppix:/home/knoppix# lvs -a -o +devices,lv_size*
>
> LV VG Attr LSize Pool Origin Data% Move
> Log Copy% Convert Devices LSize
>
> root lvgrptstnlvm mwi-aom- 6.00g
> root_mlog 100.00 root_mimage_0(0),root_mimage_1(0) 6.00g
>
> [root_mimage_0] lvgrptstnlvm iwi-aom-
> 6.00g
> /dev/sda1(0) 6.00g
>
> [root_mimage_1] lvgrptstnlvm iwi-aom-
> 6.00g
> /dev/sdb1(0) 6.00g
>
> [root_mlog] lvgrptstnlvm lwi-aom-
> 4.00m
> /dev/sdb1(1536) 4.00m
>
> *
> *
>
> *root at Microknoppix:/home/knoppix# lvconvert -m0 /dev/lvgrptstnlvm/root
> /dev/sdb1*
>
> /sbin/dmeventd: stat failed: No such file or directory
>
> Logical volume root converted.
>
> *
> *
>
> *root at Microknoppix:/home/knoppix# lvconvert -i 5 -m1 --mirrorlog mirrored
> /dev/lvgrptstnlvm/root /dev/sdb1*
>
> Insufficient suitable allocatable extents for logical volume : 1536 more
> required
>
> Unable to allocate extents for mirror(s).
>
> *
> *
>
> *root at Microknoppix:/home/knoppix# lvconvert -m1 /dev/lvgrptstnlvm/root
> /dev/sdb1*
>
> lvgrptstnlvm/root: Converted: 0.5%
>
> [...SKIP...]
> lvgrptstnlvm/root: Converted: 100.0%
>
> *
> *
>
> *root at Microknoppix:/home/knoppix# lvs -a -o +devices,lv_size*
>
> LV VG Attr LSize Pool Origin Data% Move
> Log Copy% Convert Devices LSize
>
> root lvgrptstnlvm mwi-aom- 6.00g
> root_mlog 100.00 root_mimage_0(0),root_mimage_1(0) 6.00g
>
> [root_mimage_0] lvgrptstnlvm iwi-aom-
> 6.00g
> /dev/sda1(0) 6.00g
>
> [root_mimage_1] lvgrptstnlvm iwi-aom-
> 6.00g
> /dev/sdb1(0) 6.00g
>
> [root_mlog] lvgrptstnlvm lwi-aom-
> 4.00m
> /dev/sdb1(1536) 4.00m
>
> *
> *
>
> *root at Microknoppix:/home/knoppix# pvs -v -o +pv_pe_count,pv_pe_alloc_count
> *
>
> Scanning for physical volume names
>
> PV VG Fmt Attr PSize PFree DevSize PV
> UUID PE Alloc
>
> /dev/sda1 lvgrptstnlvm lvm2 a-- 9.00g 3.00g 9.00g
> 5h4peZ-7SVd-MKrH-IQNJ-UACQ-mM7Q-6CVeo5 2303 1536
>
> /dev/sdb1 lvgrptstnlvm lvm2 a-- 7.07g 1.06g 9.00g
> VlGEw0-JaqC-THbz-G4mv-yHq5-9Y80-N5ANNQ 1809 1537
>
> *
> *
>
> *root at Microknoppix:/home/knoppix#*
>
Same result if done from a Debian LiveCD. If there are a lot of PEs why LVM
complains it is not suitable, in my case it needs just 1 PE.
I used --alloc anywherebut it noticed the two mirror-logs were on the same
disk, thing that I don't want of course...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/linux-lvm/attachments/20130702/e9d9c9d3/attachment.htm>
More information about the linux-lvm
mailing list