quest free space and local-lvm free space not equal

laci020

New Member
Feb 10, 2021
8
0
1
33
Dear forum members!

I have a problem with my proxmox and win2012 server

The used space is not real in the quest manager.

I have dell poweredge r710 and 6x4 tb ssd with raid 10.

Please help me
 

Attachments

  • 2.PNG
    2.PNG
    22.6 KB · Views: 7
  • 1.PNG
    1.PNG
    8.5 KB · Views: 7
if a vm writes a block on the virtual disk, that block is also allocated on the lv.
simply deleting a file from the vm does not free the block, you have to select 'discard' in the disk options of the vm
and let the guest os do a 'trim' or 'discard' operation

edit:

also if you have snapshots they will take up space
 
Dear dcsapak, the discard option is ticked, but no any change
 

Attachments

  • 3.PNG
    3.PNG
    30.3 KB · Views: 4
yes you have to initial a trim from inside the guest...
 
do you have snapshots on that vm?
 
can you post the output of 'lvs' ?
 
lvs /dev/sdb: open failed: No medium found /dev/sdc: open failed: No medium found LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert data pve twi-aotz-- <6.84t 58.06 12.12 root pve -wi-ao---- 96.00g swap pve -wi-ao---- 8.00g vm-100-disk-0 pve Vwi-aotz-- 70.00g data 18.52 vm-101-disk-0 pve Vwi-aotz-- 5.37t data 73.66
 
the lvs output shows that the disk in fact uses 3.9TiB. as i said this is probably due to the guest not marking it as free to the storage
how did you run the 'trim' in the guest?
 
I can't run a trim, because the quest not see this is ssd, think is hdd
in windows Optimize-Volume not working

I checked with trimcheck.exe and the trim isn't enabled.
Can i detach the virtio harddisk, and attach sata hard disk with ssd emulation?
 
Last edited:
Can i detach the virtio harddisk, and attach sata hard disk with ssd emulation?
i don't know if windows likes that, i guess if it is the bootdisk, it could make problems

you can make a backup and restore it though
sorry that would not help you...
 
Last edited:

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!