All of lore.kernel.org
 help / color / mirror / Atom feed
From: Luca Berra <bluca@comedia.it>
To: Simon <greminn@gmail.com>
Cc: linux-lvm@redhat.com
Subject: Re: [linux-lvm] Moving a lv between hosts
Date: Wed, 9 Aug 2006 09:09:33 +0200	[thread overview]
Message-ID: <20060809070933.GC22136@percy.comedia.it> (raw)
In-Reply-To: <5bdb1aa70608082254m5b51062di2141d7f95a294c81@mail.gmail.com>

On Wed, Aug 09, 2006 at 05:54:23PM +1200, Simon wrote:
>Hi Luca,

Please, keep the thread on the mailing list
(to everybody else, sorry for the full quote)

>Thanks for the responce... a quick question (see below):
>
>On 8/9/06, Luca Berra <bluca@comedia.it> wrote:
>>On Wed, Aug 09, 2006 at 03:54:01PM +1200, Simon wrote:
>> >Hi There,
>> >
>> >Is there an easy way/process to move a logical volume between hosts?
>> >(Apart from coping the data within the mounted volume).
>> >
>> >In reading thru.. vgexport and vgimport are for the volume group
>> >itself. But i would like a away to just move a lv within vg.
>>
>>if the lv is the only thing sitting onto a set of pv
>>you can just:
>>lvchange -a n on the old host
>>move the disks
>>avtivate the vg with the --partial option on the new host
>>
>>then run vgreduce --removemissing on both machines.
>
>On server1 and server2 we have a hdc1 which is a Linux LVM, i have
>created a vg called "testvg", and then a number of lvs "testlv1" to
>"testlv5" on server1  and now want to move "testlv3" (for example)
>over to server2.

then you have two different disks one in each server.

in this case you have to create a suitable vg and lv on server2
either copy the data from a mounted filesystem
or you dd the whole lv.

>(Sorry, a bit new to this and might not have the terms down yet)...
>
>If i to a "vchange -a n /dev/testvg/testlv3", which makes it now
>unavailable within the vg... when you say "move the disk" do you mean
>pysically move the disk?

ignore my previous mail, it does not apply to your case.

>Again, sorry - i didnt explain myself enough in the first place.
>
>Apprciate any help here!
>
>Simon

-- 
Luca Berra -- bluca@comedia.it
        Communication Media & Services S.r.l.
 /"\
 \ /     ASCII RIBBON CAMPAIGN
  X        AGAINST HTML MAIL
 / \

      parent reply	other threads:[~2006-08-09  7:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-09  3:54 [linux-lvm] Moving a lv between hosts Simon
     [not found] ` <20060809051644.GB22136@percy.comedia.it>
     [not found]   ` <5bdb1aa70608082254m5b51062di2141d7f95a294c81@mail.gmail.com>
2006-08-09  7:09     ` Luca Berra [this message]

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=20060809070933.GC22136@percy.comedia.it \
    --to=bluca@comedia.it \
    --cc=greminn@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 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.