Hi all,
I have create a Thin lvm and installed a guest os on it,
Now when i cloned that lvm using virt-clone
# virt-clone --prompt --force --original lvm_thin1 --name lvm_thin2 --file /dev/volgrp/lvm_thin2
The cloned Disk lvm_thin2 size is fully expanded , But I want a thin Lvm cloned image
Well according to my best of knowledge , It could be because the when lvm is getting cloned, The zero are read from the original image
#lvs
LV |
VG |
Attr |
LSize |
Pool Origin |
Data% |
lvm_thin1 |
Volgrp |
Vwi-aotz |
8.00g |
pool |
12.18 |
lvm_thin2 |
volgrp |
Vwi-a-tz |
8.00g |
pool |
100.00 |
pool |
volgrp |
twi-a-tz |
100.00g |
|
8.97 |
As you can see above the original LVM utilize only 12.18% disk space from the pool, but the cloned lvm_thin2 is fully expanded.
Is there is any way how can I clone a THIN LVM without fully expanding it ? Or Is there any way to shrink the cloned LVM to that size without loss of data.
Regards
Pankaj Rawat