Re: how to copy a snapshot, or restore snapshot without deleting it

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dne 16. 01. 19 v 0:03 Davis, Matthew napsal(a):
Hi Zdenek,

Here's what I see with `sudo lvs -a`. (My snapshots are actually called `fresh` and `fresh2` not `mySnap`)

```
   LV              VG     Attr       LSize   Pool   Origin Data%  Meta%  Move Log Cpy%Sync Convert
   fresh           centos Vwi---tz-k  <1.46t pool00
   fresh2          centos Vwi---tz-k  <1.46t pool00 fresh

So these both LVs are snapshots (since they were created with s(k)ipped activation - however 'fresh' LV cannot be merged anymore as it's origin is already gone.

But 'lvconvert --merge centos/fresh2' should work - yet you need to manually drop 'k' flag (via lvchange).

So to have 'working' merge - you have to see something in the 'Origin' field.
If the Origin field is already 'empty' you can't be merging such LV even when it was originally created as 'snapshot'.

Also note that thin snapshot merging is nothing else then a bit more 'smart' rename.

Zdenek

_______________________________________________
linux-lvm mailing list
linux-lvm@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/



[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux