Wrong disk size?

asmar

Renowned Member
Nov 15, 2014
108
0
81
Hi all,

I'm trying to cleanup a little bit of disk space on a node.
During my search I found:

root@proxmox1:/var/lib/vz/images/102# ls -lah
total 91G
drwxr-xr-x 2 root root 4.0K Dec 25 14:08 .
drwxr-xr-x 11 root root 4.0K Nov 14 09:39 ..
-rw-r--r-- 1 root root 133G Dec 25 14:10 vm-102-disk-1.qcow2

It shows the dir 91GB but the .qcow2 file inside that dir is 133GB.

Now, I've just logged in to this vm and the total usage space is about 14GB:

root@:~# df -h
Filesystem Size Used Avail Use% Mounted on
rootfs 76G 14G 59G 19% /
udev 10M 0 10M 0% /dev
tmpfs 791M 256K 791M 1% /run
/dev/disk/by-uuid/1c56ce75-4d63-4489-9fce-c257d5269afa 76G 14G 59G 19% /
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 2.3G 0 2.3G 0% /run/shm

Under the 102 vm the disk space that I've allocated is 80GB.

Where on earth are the rest of the GBs that seems to be used?

I've deleted all snapshots for that VM (before that it was even more than 91GB).

Thanks
 
The example in the blog posted above it didn't work for me as I didn't have enough free space to execute the dd command.
I end up removing completely the virtual machine and then restore it from a backup.
After that worked great.

Is this a bug of proxmox?
 

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!