Reclaim VM thin disk usage

Before posting something, READ the changelog, WATCH the videos, howto and provide following:
Your install is: Bare metal, ESXi, what CPU model, RAM, HD, what EVE version you have, output of the uname -a and any other info that might help us faster.

Moderator: mike

Post Reply
rustyjarz
Posts: 28
Joined: Sun Jun 14, 2020 12:53 am

Reclaim VM thin disk usage

Post by rustyjarz » Thu Jun 23, 2022 1:34 am

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.

rustyjarz
Posts: 28
Joined: Sun Jun 14, 2020 12:53 am

Re: Reclaim VM thin disk usage

Post by rustyjarz » Thu Jun 23, 2022 4:22 am

fstrim / seems to do the trick

mostafa_eve
Posts: 5
Joined: Tue Jul 30, 2019 11:00 am

Re: Reclaim VM thin disk usage

Post by mostafa_eve » Mon Apr 10, 2023 6:13 pm

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

Post Reply