Hi there
I have a couple of vm using the local-lvm storage.
I attached a directory storage and when move the disk of the vm from local-lvm to the directory storage, using qcow2, the disk image fill all the qcow2 image.
Is that right?
For instance, I have a VM with has the disk image about 100G size, but the VM using only 50G.
In the Data column I saw 50% consumed with the lvs command.
But now, when I migrate the disk vm from local-lvm to the directory storage, the virtual disk and the disk itself are 100GB!
On the other hand, if I use raw format, then the disk image in the directory storage remains de same.
Any ideas?
Thanks.
[UPDATE]
I did a fstrim using qm guest cmd VMID fstrim and the disk size goes wild!
qemu-img info vm-102-disk-1.raw
image: vm-102-disk-1.raw
file format: raw
virtual size: 100 GiB (107374182400 bytes)
disk size: 0.981 TiB
Child node '/file':
filename: vm-102-disk-1.raw
protocol type: file
file length: 100 GiB (107374182400 bytes)
disk size: 0.981 TiB
I have a couple of vm using the local-lvm storage.
I attached a directory storage and when move the disk of the vm from local-lvm to the directory storage, using qcow2, the disk image fill all the qcow2 image.
Is that right?
For instance, I have a VM with has the disk image about 100G size, but the VM using only 50G.
In the Data column I saw 50% consumed with the lvs command.
But now, when I migrate the disk vm from local-lvm to the directory storage, the virtual disk and the disk itself are 100GB!
On the other hand, if I use raw format, then the disk image in the directory storage remains de same.
Any ideas?
Thanks.
[UPDATE]
I did a fstrim using qm guest cmd VMID fstrim and the disk size goes wild!
qemu-img info vm-102-disk-1.raw
image: vm-102-disk-1.raw
file format: raw
virtual size: 100 GiB (107374182400 bytes)
disk size: 0.981 TiB
Child node '/file':
filename: vm-102-disk-1.raw
protocol type: file
file length: 100 GiB (107374182400 bytes)
disk size: 0.981 TiB
Last edited: