Hello, I hope you and your loved ones are safe and healthy.
I' am a self-funded student having a home lab as part of my final year project.
I have 4 SSDs for storage:
There are two identical VMs (not clones, and they have the same configurations, including storage) but running the same application (Elastic Stack), and it is mirror mode.
Both VMs have almost identical disk usage when checked from inside the VM.
However, when I checked in VMWare, I can see VM-1 using 200 GB more on the attached storage and project has 20 GB of logs per day. For a self-funded student this means a lot (SSDs are expensive in India).
What is the best way to recover this space? I have checked space reclamation settings, and it is at the default of 100 Mbps. There are no snapshots for the VMs.
EDIT 1:
I have followed https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.storage.doc/GUID-5E1396BE-6EA8-4A6B...and https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.storage.doc/GUID-5E1396BE-6EA8-4A6B... to reclaim space.
I tailed the hostd.log and can see blocks being freed up as part of the request (total request took 3 minutes to finish). In the end no change in the free disk space 😞
Documentation here states "To verify whether the unmap process has finished, search for unmap in the vmkernel.log file". When I searched on my instances, I cannot find this. However hostd.log clearly shows blocks being deleted.
I've solved the problem using fstrim inside the OS (Ubuntu 20.04.2 LTS).
Here is Reddit thread and the user who (westyx) suggested how to reclaim the disk space.
https://www.reddit.com/r/vmware/comments/nh0f6l/disk_space_reclamation/
Here is a good thread to read:
I've solved the problem using fstrim inside the OS (Ubuntu 20.04.2 LTS).
Here is Reddit thread and the user who (westyx) suggested how to reclaim the disk space.
https://www.reddit.com/r/vmware/comments/nh0f6l/disk_space_reclamation/
Here is a good thread to read: