linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] removing mirror images
@ 2008-04-13  2:20 ben scott
  2008-04-14 10:22 ` Bryn M. Reeves
  0 siblings, 1 reply; 2+ messages in thread
From: ben scott @ 2008-04-13  2:20 UTC (permalink / raw)
  To: linux-lvm

I posted this question about a week ago and received no
replies at all. Does anyone know the answer to this problem? 

The Problem:
I have a question about how to remove a mirror. On a test
set up I have the following mirrors:

  bedroom:~/kvpm# lvs --all --segments -o +devices
    LV               VG    Attr   #Str Type   SSize  Devices
    lvol0            trurg mwn-a-    3 mirror 23.68G lvol0_mimage_2  
(0),lvol0_mimage_1(0),lvol0_mimage_3(0)
    [lvol0_mimage_1] trurg iwi-ao    1 linear 23.68G /dev/hdg6(155008)
    [lvol0_mimage_2] trurg iwi-ao    1 linear 19.53G /dev/hde2(0)
    [lvol0_mimage_2] trurg iwi-ao    1 linear  4.15G /dev/hdg5(0)
    [lvol0_mimage_3] trurg iwi-ao    1 linear 23.68G /dev/hde3(0)
    [lvol0_mlog]     trurg lwn-ao    1 linear 64.00K /dev/hde1(0)


So to remove the mirror "[lvol0_mimage_1]" on /dev/hdg6
I do the following:

  bedroom:~/kvpm# lvconvert --mirrors -1 trurg/lvol0   /dev/hdg6
    Logical volume lvol0 converted.

  bedroom:~/kvpm# lvs --all --segments -o +devices
    LV               VG    Attr   #Str Type   SSize  Devices
    lvol0            trurg mwn-a-    2 mirror 23.68G lvol0_mimage_2
(0),lvol0_mimage_3(0)
    [lvol0_mimage_2] trurg iwi-ao    1 linear 19.53G /dev/hde2(0)
    [lvol0_mimage_2] trurg iwi-ao    1 linear  4.15G /dev/hdg5(0)
    [lvol0_mimage_3] trurg iwi-ao    1 linear 23.68G /dev/hde3(0)
    [lvol0_mlog]     trurg lwn-ao    1 linear 64.00K /dev/hde1(0)

And indeed it is gone. However when I do this:

  bedroom:~/kvpm# lvconvert --mirrors -1 trurg/lvol0   /dev/hde2
    No free extents on physical volume "/dev/hde2"
    No specified PVs have space available

Or this:

  bedroom:~/kvpm# lvconvert --mirrors -1 trurg/lvol0   /dev/hde2 /dev/hdg5
    No free extents on physical volume "/dev/hde2"
    No mirror images found using specified PVs.

So how do I delete a mirror that spans multiple segments? Wouldn't it make
sense to have a command such as:

  bedroom:~/kvpm# lvconvert --mirrors -1 trurg/lvol0  [lvol0_mimage_2]

Thank you for any help.

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

* Re: [linux-lvm] removing mirror images
  2008-04-13  2:20 [linux-lvm] removing mirror images ben scott
@ 2008-04-14 10:22 ` Bryn M. Reeves
  0 siblings, 0 replies; 2+ messages in thread
From: Bryn M. Reeves @ 2008-04-14 10:22 UTC (permalink / raw)
  To: LVM general discussion and development

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

ben scott wrote:
>   bedroom:~/kvpm# lvconvert --mirrors -1 trurg/lvol0   /dev/hde2 /dev/hdg5
>     No free extents on physical volume "/dev/hde2"
>     No mirror images found using specified PVs.

This error looks like it might be bug 440405:

https://bugzilla.redhat.com/show_bug.cgi?id=440405

I've not tried to reproduce it with -m1 though - there's a trivial patch
in the bugzilla that you can try.

Regards,
Bryn.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFIAzB36YSQoMYUY94RAnjiAKCH4a1BvMLAsxFAllRRJynGeg9llQCgv2yP
vyovEnvOAQmyVnwrtuHRtDI=
=n/pg
-----END PGP SIGNATURE-----

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

end of thread, other threads:[~2008-04-14 10:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-13  2:20 [linux-lvm] removing mirror images ben scott
2008-04-14 10:22 ` Bryn M. Reeves

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).