linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] I can't have the mirror_log mirrored, LVM complains "there is no suitable space"
@ 2013-07-02  0:14 Alessandro MACUZ
  2013-07-02 16:08 ` Alessandro MACUZ
  2013-07-04 11:18 ` Alasdair G Kergon
  0 siblings, 2 replies; 10+ messages in thread
From: Alessandro MACUZ @ 2013-07-02  0:14 UTC (permalink / raw)
  To: LVM general discussion and development

[-- Attachment #1: Type: text/plain, Size: 4213 bytes --]

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@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@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@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@Microknoppix:/home/knoppix# lvconvert -m0 /dev/lvgrptstnlvm/root
/dev/sdb1*

  /sbin/dmeventd: stat failed: No such file or directory

  Logical volume root converted.

*
*

*root@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@Microknoppix:/home/knoppix# lvconvert -m1 /dev/lvgrptstnlvm/root
/dev/sdb1*

  lvgrptstnlvm/root: Converted: 0.5%

[...SKIP...]
  lvgrptstnlvm/root: Converted: 100.0%

*
*

*root@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@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@Microknoppix:/home/knoppix#*

[-- Attachment #2: Type: text/html, Size: 8256 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2013-07-04 16:40 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-02  0:14 [linux-lvm] I can't have the mirror_log mirrored, LVM complains "there is no suitable space" Alessandro MACUZ
2013-07-02 16:08 ` Alessandro MACUZ
2013-07-02 16:24   ` Alessandro MACUZ
2013-07-03 22:44     ` Alessandro MACUZ
2013-07-04 10:55       ` matthew patton
2013-07-04 12:45         ` Alessandro MACUZ
2013-07-04 11:18 ` Alasdair G Kergon
2013-07-04 11:43   ` Alessandro MACUZ
2013-07-04 14:27     ` Alessandro MACUZ
2013-07-04 16:40       ` Alasdair G Kergon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).