Discard Win Client on Cephs

maydo

New Member
Jul 20, 2019
5
0
1
47
Hi,

after moving a win 10 client from P2V, i need to get rid of some unused space on the client.
Guest Partition is cleaned up and there is some large unused space

20201113163708.jpg

running on a 4 nodes cluster with cephs rbd, latest version

root@pve11:~# pveversion
pve-manager/6.2-15/48bd51b6 (running kernel: 5.4.65-1-pve)

vm config
qm config 117
balloon: 8000
bios: ovmf
boot: dcn
bootdisk: scsi0
cores: 4
efidisk0: pool2:vm-117-disk-1,size=128K
ide2: none,media=cdrom
memory: 16000
name: dell2015
net0: virtio=5E:4D:D2:05:80:20,bridge=vmbr0,firewall=1
numa: 0
ostype: win10
scsi0: pool2:vm-117-disk-0,discard=on,size=1002587M
scsihw: virtio-scsi-pci
smbios1: uuid=1e2d36f2-e752-40bc-ad8f-cbf71c7c7531
sockets: 2
vmgenid: b344d232-ebe9-4424-a637-5227e88c66b5

Using Virtio scsi controller with discard enabled on scsi disk

I have tried re-adding disk, on guest side maintenance mode etc,.
discard is not working

there must be something im doing wrong
any ideas ?
 
scsi0: pool2:vm-117-disk-0,discard=on,size=1002587M
You may need to run fsutil behavior set DisableDeleteNotify 0 on the Win10 machine. Depending on previous system, Windows might not have activated TRIM.
 
i have checked this
You may need to run fsutil behavior set DisableDeleteNotify 0 on the Win10 machine
i have checked this multiple times

PS C:\WINDOWS\system32> fsutil behavior query DisableDeleteNotify
NTFS DisableDeleteNotify = 0 (Deaktiviert)
ReFS DisableDeleteNotify = 0 (Deaktiviert)
PS C:\WINDOWS\system32> fsutil behavior set DisableDeleteNotify 0
NTFS DisableDeleteNotify = 0 (Deaktiviert)
PS C:\WINDOWS\system32> fsutil behavior query DisableDeleteNotify
NTFS DisableDeleteNotify = 0 (Deaktiviert)
ReFS DisableDeleteNotify = 0 (Deaktiviert)

Im a lil confused about the output "Deaktiviert" this means not active (german)
 

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!