[SOLVED] Really strange disk usage !?

iriseden

New Member
Jan 2, 2020
1
0
1
24
Good morning all,

I am posting here because there is something that I have never seen and that I cannot understand. I have a VM with an 800 GB virtual disk, however, when I make a "df -h" in the Vm, there is 800 GB available but only 265 GB used. But when I make a backup of this VM or I do a "du -h" on the disk from my proxmox host this VM is more than 650GB. Has anyone ever seen this or knows where this difference can come from?

Thanks in advance,
iriseden
 

Attachments

  • Capture.PNG
    Capture.PNG
    17.6 KB · Views: 17
  • HOST.PNG
    HOST.PNG
    5.2 KB · Views: 17
  • VM.PNG
    VM.PNG
    9.6 KB · Views: 17
1. deleting files inside the vm, does not necessarily free up space on the host, for this you would have to set 'discard' on the disk and do a trim inside (or write zeroes)
2. the config only ever shows the allocated space, never the one actually used
3. qcow2 files are sparse, so they only take up the space they need

i hope this explains the difference :)
 
  • Like
Reactions: iriseden

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!