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
DISCLAIMER:
-----------------------------------------------------------------------------------------------------------------------
The contents of this e-mail and any attachment(s) are confidential and
intended
for the named recipient(s) only.
It shall not attach any liability on the originator or NECHCL or its
affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect the
opinions of NECHCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification,
distribution and / or publication of
this message without the prior written consent of the author of this e-mail is
strictly prohibited. If you have
received this email in error please delete it and notify the sender
immediately. .
-----------------------------------------------------------------------------------------------------------------------
--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list