All of lore.kernel.org
 help / color / mirror / Atom feed
From: ben scott <benscott@nwlink.com>
To: linux-lvm@redhat.com
Subject: [linux-lvm] removing mirror images
Date: Sat, 12 Apr 2008 19:20:25 -0700	[thread overview]
Message-ID: <200804121920.25946.benscott@nwlink.com> (raw)

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.

             reply	other threads:[~2008-04-13  2:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-13  2:20 ben scott [this message]
2008-04-14 10:22 ` [linux-lvm] removing mirror images Bryn M. Reeves

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=200804121920.25946.benscott@nwlink.com \
    --to=benscott@nwlink.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.