Page 1 of 1

Reclaim VM thin disk usage

Posted: Thu Jun 23, 2022 1:34 am
by rustyjarz
Hi,

Environment
ESXi + Virtual Center
Datastore 1TB
EVE-NG VM thin provisioned virtual disks

I'm seeing many posts on how to expand an EVE disk, but I need to go the other way and reclaim EVE VM Thin disk usage.

We had a guy setup a Windows VM, but didn't follow the guide and the Windows VM blew out the overall disk usage and I need to reclaim this. So if the EVE VM supports this just how do I go about reclaiming this wasted capacity on the ESXi Datastore? We don't have another datastore to storage vmotion to.

Cheers.

Re: Reclaim VM thin disk usage

Posted: Thu Jun 23, 2022 4:22 am
by rustyjarz
fstrim / seems to do the trick

Re: Reclaim VM thin disk usage

Posted: Mon Apr 10, 2023 6:13 pm
by mostafa_eve
same I faced the same issue I used vmkfstool it reduced the disk size but the solution should also include dd command to wipeout zero in the partition. as I've seen in vmware forum.

1- dd if=/dev/zero of=/dev/sdX2 bs=1M #replace X with the target drive letter
2- go to eve-ng disk directory then issue the command
vmkfstools -K disk_name.vmdk #note that K is capital letter#
for more information you can visit the below link for the mentioned problem
https://kb.vmware.com/s/article/2136514