Hello everyboy,
I'm playing with QCOW2 files / qm snapshot feature for our VMs and i've noticed that some QCOW2 files can became bigger than the VM HDD defined size.
For example, VM 202 with a 60Gb QCOW2 HDD :
After shrinking with the wiki method, no problem, the file goes to 19G :
Is there a way to prevent QCOW2 files from growing, especially when using qm snapshots ?
Is it possible to store the snapshot in a separate file, and merge it to the main file when deleting, like on ESXi ?
Regards,
Thomas
I'm playing with QCOW2 files / qm snapshot feature for our VMs and i've noticed that some QCOW2 files can became bigger than the VM HDD defined size.
For example, VM 202 with a 60Gb QCOW2 HDD :
Code:
qemu-img info /mnt/pve/nas20/images/202/vm-202-disk-1.qcow2
image: /mnt/pve/nas20/images/202/vm-202-disk-1.qcow2
file format: qcow2
virtual size: 60G (64424509440 bytes)
disk size: 62G
cluster_size: 65536
Format specific information:
compat: 1.1
lazy refcounts: false
After shrinking with the wiki method, no problem, the file goes to 19G :
Code:
qemu-img info /mnt/pve/nas20/images/202/vm-202-disk-1.qcow2
image: /mnt/pve/nas20/images/202/vm-202-disk-1.qcow2
file format: qcow2
virtual size: 60G (64424509440 bytes)
disk size: 19G
cluster_size: 65536
Format specific information:
compat: 1.1
lazy refcounts: false
Is there a way to prevent QCOW2 files from growing, especially when using qm snapshots ?
Is it possible to store the snapshot in a separate file, and merge it to the main file when deleting, like on ESXi ?
Regards,
Thomas