linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] export/migrate - but only a LV - how?
@ 2016-07-12 15:23 lejeczek
  2016-07-18 15:50 ` Brassow Jonathan
  0 siblings, 1 reply; 5+ messages in thread
From: lejeczek @ 2016-07-12 15:23 UTC (permalink / raw)
  To: linux-lvm

.. if possible?

hi users,

I'd like to ask, while reading different docs, whether it's 
possible to migrate/export just a LV?

What I'm hoping to achieve is to take a LV out of a VG and 
move it over to another system so a can restore that LV and 
carry on using it, while having a reduced VG on original, 
source system.

I see there some docs tell how to do a VG, how only a LV can 
be migrated?

many thanks

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

* Re: [linux-lvm] export/migrate - but only a LV - how?
  2016-07-12 15:23 [linux-lvm] export/migrate - but only a LV - how? lejeczek
@ 2016-07-18 15:50 ` Brassow Jonathan
  2016-07-18 20:28   ` Xen
  0 siblings, 1 reply; 5+ messages in thread
From: Brassow Jonathan @ 2016-07-18 15:50 UTC (permalink / raw)
  To: LVM general discussion and development

maybe pvmove the LV to a unique device and then vgsplit?

 brassow

> On Jul 12, 2016, at 10:23 AM, lejeczek <peljasz@yahoo.co.uk> wrote:
> 
> .. if possible?
> 
> hi users,
> 
> I'd like to ask, while reading different docs, whether it's possible to migrate/export just a LV?
> 
> What I'm hoping to achieve is to take a LV out of a VG and move it over to another system so a can restore that LV and carry on using it, while having a reduced VG on original, source system.
> 
> I see there some docs tell how to do a VG, how only a LV can be migrated?
> 
> many thanks
> 
> 
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

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

* Re: [linux-lvm] export/migrate - but only a LV - how?
  2016-07-18 15:50 ` Brassow Jonathan
@ 2016-07-18 20:28   ` Xen
  2016-07-22 13:12     ` Brassow Jonathan
  0 siblings, 1 reply; 5+ messages in thread
From: Xen @ 2016-07-18 20:28 UTC (permalink / raw)
  To: LVM general discussion and development

Brassow Jonathan schreef op 18-07-2016 17:50:
> maybe pvmove the LV to a unique device and then vgsplit?
> 
>  brassow
> 
>> On Jul 12, 2016, at 10:23 AM, lejeczek <peljasz@yahoo.co.uk> wrote:
>> 
>> .. if possible?


Shouldn't you in general just recreate the LV with the same amount of 
extents and then perform a DD?

I realize an atomic move operation for an LV could conceptually be nice 
but apart from the mental effort required to do this recreation 
manually, there is not much practically in the way of doing it yourself.

In the end, it would be nothing more than a shell script doing an 
LVCREATE, DD, and LVREMOVE?

Regards.

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

* Re: [linux-lvm] export/migrate - but only a LV - how?
  2016-07-18 20:28   ` Xen
@ 2016-07-22 13:12     ` Brassow Jonathan
  2016-07-22 13:49       ` Xen
  0 siblings, 1 reply; 5+ messages in thread
From: Brassow Jonathan @ 2016-07-22 13:12 UTC (permalink / raw)
  To: LVM general discussion and development


> On Jul 18, 2016, at 3:28 PM, Xen <list@xenhideout.nl> wrote:
> 
> Brassow Jonathan schreef op 18-07-2016 17:50:
>> maybe pvmove the LV to a unique device and then vgsplit?
>> brassow
>>> On Jul 12, 2016, at 10:23 AM, lejeczek <peljasz@yahoo.co.uk> wrote:
>>> .. if possible?
> 
> 
> Shouldn't you in general just recreate the LV with the same amount of extents and then perform a DD?
> 
> I realize an atomic move operation for an LV could conceptually be nice but apart from the mental effort required to do this recreation manually, there is not much practically in the way of doing it yourself.
> 
> In the end, it would be nothing more than a shell script doing an LVCREATE, DD, and LVREMOVE?

One advantage is that pvmove allows you to keep the device online...  We are also working on a feature ATM called “duplicate”.  It allows you to create a duplicate of any LV stack, create the duplicate where you want, and even change the segment type in the process.  For example, you could move a whole RAID5 LV, or thin-p, in one go.

 brassow

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

* Re: [linux-lvm] export/migrate - but only a LV - how?
  2016-07-22 13:12     ` Brassow Jonathan
@ 2016-07-22 13:49       ` Xen
  0 siblings, 0 replies; 5+ messages in thread
From: Xen @ 2016-07-22 13:49 UTC (permalink / raw)
  To: linux-lvm

Brassow Jonathan schreef op 22-07-2016 15:12:

> One advantage is that pvmove allows you to keep the device online...

Right, that is pretty advanced. Good going.


> We are also working on a feature ATM called “duplicate”.  It allows
> you to create a duplicate of any LV stack, create the duplicate where
> you want, and even change the segment type in the process.  For
> example, you could move a whole RAID5 LV, or thin-p, in one go.

I think one important "trouble spot" is that there is no operation 
yet(?) to create a duplicate of a PV that will not ruin the system 
unless you do pvchange -u and vgchange -u ;-).

It took quite a bit of time for me to realize what was going on ;-).

Is PVMOVE supposed to be a backup task? I don't think so? How are you 
supposed to back something up if you are planning to move your system to 
a new disk?

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

end of thread, other threads:[~2016-07-22 13:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-12 15:23 [linux-lvm] export/migrate - but only a LV - how? lejeczek
2016-07-18 15:50 ` Brassow Jonathan
2016-07-18 20:28   ` Xen
2016-07-22 13:12     ` Brassow Jonathan
2016-07-22 13:49       ` Xen

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