qcow2 file is bigger as hdd config

informant

Renowned Member
Jan 31, 2012
841
12
83
Hi all, a small question, my qcow2 files are bigger as i have set in configuration, most 1-75-2x bigger as configured. no snapshots are available in this. fallocate -d vm.qcow2 i have done already, same issue. what is the problem, why files are bigger as in configuration. how can i solve it? any ideas here?
i mean it was old crap but qemu-img convert -O qcow2 vm-5137-disk-0.qcow2 vm-5137-disk-0_clean.qcow2 dont help too. need other way.
regards

example screens in attachment!
 

Attachments

  • 1789975240789.png
    1789975240789.png
    33.3 KB · Views: 10
  • 1789975248861.png
    1789975248861.png
    11.4 KB · Views: 10
  • 1789975285153.png
    1789975285153.png
    28.8 KB · Views: 10
  • 1789975346997.png
    1789975346997.png
    6.7 KB · Views: 10
Hi,
what does qemu-img info --output=json /path/to/your/volume.qcow2 show? What about qm rescan?
 
hi here of a exsample:
qemu-img info --output=json vm-5130-disk-1.qcow2
{
"children": [
{
"name": "file",
"info": {
"children": [
],
"virtual-size": 452044718080,
"filename": "vm-5130-disk-1.qcow2",
"format": "file",
"actual-size": 259927232512,
"format-specific": {
"type": "file",
"data": {
}
},
"dirty-flag": false
}
}
],
"virtual-size": 268435456000,
"filename": "vm-5130-disk-1.qcow2",
"cluster-size": 65536,
"format": "qcow2",
"actual-size": 259927232512,
"format-specific": {
"type": "qcow2",
"data": {
"compat": "1.1",
"compression-type": "zlib",
"lazy-refcounts": false,
"refcount-bits": 16,
"corrupt": false,
"extended-l2": false
}
},
"dirty-flag": false
}