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

Davis, Matthew Matthew.Davis.2 at team.telstra.com
Mon Jan 14 22:44:13 UTC 2019


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

Regards,
Matt

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

Dne 10. 01. 19 v 7:23 Davis, Matthew napsal(a):
> Hi Marian,
> 
> I'm trying to do it with thin snapshots now. It's all very confusing, and I can't get it to work.
> I've read a lot of the documentation about thin stuff, and it isn't clear what's happening.
> 
> I took a snapshot with
> 
>      sudo lvcreate -s --name mySnap1 centos/root
> 
> Then I copied that snapshot with
> 
>      sudo lvcreate -s --name mySnap2 centos/mySnap1
> 
> When I try to restore mySnap1 it says:
> 
>      $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

Regards

Zdenek





More information about the linux-lvm mailing list