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.
Reclaim VM thin disk usage
Moderator: mike
-
- Posts: 28
- Joined: Sun Jun 14, 2020 12:53 am
Re: Reclaim VM thin disk usage
fstrim / seems to do the trick
-
- Posts: 5
- Joined: Tue Jul 30, 2019 11:00 am
Re: Reclaim VM thin disk usage
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
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