All of lore.kernel.org
 help / color / mirror / Atom feed
From: Morten Torstensen <morten@mortent.org>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] pvmove: moving a mirror logical volume not supported?
Date: Thu, 07 Sep 2006 12:47:38 +0200	[thread overview]
Message-ID: <44FFF8CA.5090906@mortent.org> (raw)
In-Reply-To: <20060906161917.GP13859@agk.surrey.redhat.com>

Alasdair G Kergon wrote:
> On Wed, Sep 06, 2006 at 11:14:13AM +0200, Jens Wilke wrote:
>> What is the reason for this?
> 
> No code to do this has yet been written.
> There should be no fundamental problems with doing it.

pvmove is a wrong approach to the problem too, imo. PVs are just storage devices 
for a VG. By moving LVs (or the PEs that the LV resides on), you accomplish the 
same. When there are no PE in use on a PV, it is easy enough to reduce the VG to 
remove the PV.

Like in this scenario when you want to move a VG from an internal disk to, let's 
say SAN volume (with pseudo-commands):

Assuming VG is pn /dev/scsi and new disk is /dev/sandisk.

# extendvg myvg /dev/sandisk
# lvmirror myvg copies=1 strict=1

(one mirror, allocate strict so copies are on different PVs)

Now check that LVs are in sync and that all is OK with the new disk...

# lvmirror myvg copies=0 remove=/dev/scsi
# reducevg myvg /dev/scsi

This strategy would assume that mirroring is done in PE/LE mapping levels.

I have no idea if Linux LVM mirroring supports this. If anyone have links to 
good LVM docs for the mirroring features that will come with LVM in RHEL5 I 
would appreciate it.


-- 

//Morten Torstensen
//Email: morten@mortent.org
//IM: Cartoon@jabber.no morten.torstensen@gmail.com

And if it turns out that there is a God, I don't believe that he is evil.
The worst that can be said is that he's an underachiever.

  reply	other threads:[~2006-09-07 11:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-06  9:14 [linux-lvm] pvmove: moving a mirror logical volume not supported? Jens Wilke
2006-09-06 16:19 ` Alasdair G Kergon
2006-09-07 10:47   ` Morten Torstensen [this message]
2006-09-07 15:35   ` Jens Wilke

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=44FFF8CA.5090906@mortent.org \
    --to=morten@mortent.org \
    --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.