2

I'd like to know how it's possible using the lvm cli tool to clone an existing lvm thin volume, creating another thin-volume with the same contents (but possibly a larger size) as the original one.

So something like LXC does when you execute lxc-clone.

The only information I could find about creating a thin volume with another as its origin was about creating snapshots.

2 Answers 2

1

Apparently, this is done by simply creating a new volume and then copying over the data from the original one with:

dd if=/dev/mapper/original_thin_volume of=/dev/mapper/new_thin_volume conv=sparse 
0

Best way:

virt-sparsify indisk outdisk 

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.