Discard option not working?

killmasta93

Renowned Member
Aug 13, 2017
973
58
68
31
Hi
Currently i have a VM on ubuntu 18.04 which shows it has 202 gigs, i added on the vm another 125 gigs on the proxmox web interface
but when i check on proxmox it shows that the vm is eating the 379 gigs so im lost howcome it not working the discard option?

this is the ubuntu VM

Code:
/dev/vda1                 344G  202G  125G  62% /

and the proxmox server in ZFS

Code:
rpool/data/vm-101-disk-0        379G  1.55T      288G  -

Thank you
 
discard on virtio disk (vda), is really new, I'm not sure that ubuntu 18.04 is suporting it.
try with virtio-scsi disk, it's supported since years.

(and also, enable discard option in your guest /etc/fstab or use fstrim command in cron )
 
thanks for the reply, i tried before on another vm and it works with scsi so whats really the differce between those two?
 

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!