[linux-lvm] export/migrate - but only a LV - how?

Brassow Jonathan jbrassow at redhat.com
Fri Jul 22 13:12:42 UTC 2016


> On Jul 18, 2016, at 3:28 PM, Xen <list at 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 at 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




More information about the linux-lvm mailing list