[linux-lvm] how to copy a snapshot, or restore snapshot without deleting it

Davis, Matthew Matthew.Davis.2 at team.telstra.com
Tue Jan 15 23:03:21 UTC 2019

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
  [lvol0_pmspare] centos ewi------- 760.00m
  pool00          centos twi-aotz--  <1.46t               0.18   3.14
  [pool00_tdata]  centos Twi-ao----  <1.46t
  [pool00_tmeta]  centos ewi-ao---- 760.00m
  root            centos Vwi-aotz--  <1.46t pool00        0.16
  swap            centos -wi-ao----   4.00g
  v01             centos Vwi---tz-k  <1.46t pool00 root


-----Original Message-----
From: Zdenek Kabelac [mailto:zkabelac at redhat.com] 
Sent: Tuesday, 15 January 2019 9:50 PM
To: LVM general discussion and development <linux-lvm at redhat.com>; Davis, Matthew <Matthew.Davis.2 at team.telstra.com>; Zdenek Kabelac <zkabelac at redhat.com>
Subject: Re: how to copy a snapshot, or restore snapshot without deleting it

Dne 14. 01. 19 v 23:44 Davis, Matthew napsal(a):
> Hi Zdenek,
> `sudo lvs --version` says :
>    LVM version:     2.02.180(2)-RHEL7 (2018-07-20)
>    Library version: 1.02.149-RHEL7 (2018-07-20)
>    Driver version:  4.37.1
> So that means it's version 2, right?
> (I'm running the latest version of CentOS.)

Hmm - version looks fine

>>       $sudo lvconvert --merge centos/mySnap1
>>       centos/mySnap1 is not a mergeable logical volume
> Hi
> Aren't you using some quite ancient version of lvm2 ?
> You need to use lvm2 which does support thin volume merging

Can you paste 'lvs -a' prior this operation ?

If the lvm2 tells you that 'mySnap1' is not mergable LV - then it likely has no 'origin' to merge into.


More information about the linux-lvm mailing list