Wrong disk space/storage

asmar

Active Member
Nov 15, 2014
108
0
36
Hi all,

I've migrate a few VMs to a new server and since then the storage that the GUI outputs (is the correct) is different that the one from the terminal.
To be more specific, over the GUI the space is 30GB while on terminal direct with a du output is 84GB!

root@thoukididis /nvme/images/102 # du -csh vm-102-disk-0.raw
84G vm-102-disk-0.raw
84G total

The correct storage is around 30GB. Any ideas how I can troubleshoot that?

Thanks a lot
 
HI,

From inside the VM it is 30GB which is the correct:

root@eshop1:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/loop2 196G 30G 157G 16% /
none 492K 0 492K 0% /dev
tmpfs 6.3G 24M 6.3G 1% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 4.8G 0 4.8G 0% /run/shm
cgroup 12K 0 12K 0% /sys/fs/cgroup
tmpfs 6.3G 0 6.3G 0% /run/user/0
tmpfs 6.3G 0 6.3G 0% /run/user/108
tmpfs 6.3G 0 6.3G 0% /run/user/1008
tmpfs 6.3G 0 6.3G 0% /run/user/1000
tmpfs 6.3G 0 6.3G 0% /run/user/1002
tmpfs 6.3G 0 6.3G 0% /run/user/1004
tmpfs 6.3G 0 6.3G 0% /run/user/1010
 
Sorry can't understand what you are saying. You want to see the output of the host node?
If yes here it is:
root@thoukididis ~ # df -h
Filesystem Size Used Avail Use% Mounted on
udev 32G 0 32G 0% /dev
tmpfs 6.3G 936K 6.3G 1% /run
/dev/md2 20G 2.7G 16G 15% /
tmpfs 32G 40M 32G 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 32G 0 32G 0% /sys/fs/cgroup
/dev/md1 488M 87M 376M 19% /boot
/dev/mapper/nvme-nvme 468G 393G 52G 89% /nvme
/dev/mapper/ssd-ssd 167G 72G 87G 46% /var/lib/vz

The wrong reported size is on /nvme partition and most specific to the above VM which is 84GB instead of 30.
 
Try "fstrim" and check if the virtual disks has Discard enabled, but it only works if it's scsi. Otherwise convert it to qcow2.
 

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!