linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Alessandro MACUZ <alessandro.macuz@gmail.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: [linux-lvm] I can't have the mirror_log mirrored, LVM complains "there is no suitable space"
Date: Tue, 2 Jul 2013 02:14:01 +0200	[thread overview]
Message-ID: <CAFrGbuW1NDnsZfm7S5f=wsTbZ4rcb6huPX7MMv_AiZF95xDYSQ@mail.gmail.com> (raw)

[-- 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 --]

             reply	other threads:[~2013-07-02  0:14 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-02  0:14 Alessandro MACUZ [this message]
2013-07-02 16:08 ` [linux-lvm] I can't have the mirror_log mirrored, LVM complains "there is no suitable space" 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAFrGbuW1NDnsZfm7S5f=wsTbZ4rcb6huPX7MMv_AiZF95xDYSQ@mail.gmail.com' \
    --to=alessandro.macuz@gmail.com \
    --cc=linux-lvm@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).