I just finished upgrading my HP DL360e Gen8 server to the latest build. My HP DL360e Gen8 server was first installed using the HP VMWare image for VMWare 6. I have an 8GB SD card in a slot on the motherboard for VMWare 6. I followed the VMWare Cookbook an installed the patches and firmware for all the hardware. I like to keep my server running optimally.
How to clean up and shrink the thin provisioned disks.
When I moved stuff from one web site to another and deleted it. I needed to run this to reclaim the space in eSXi. It will save on backups.
/var/www is the apache2 folder for the virtual hosts or all my web sites. In VMWare 6, when you delete files, it doesn’t clean up after itself. The thin provisioned disks don’t shrink back down. You need to do two things. zero out each partition or disk and run the vmkfstools -K command to shrink it.
I verified the zeroes files was removed and trash was removed and emptied.
vmkfstools -K UbuntuwebWP.vmdk
vmkfstools -K UbuntuwebWP_1.vmdk
vmkfstools -K UbuntuwebWP_2.vmdk
vmkfstools -K UbuntuwebWP_3.vmdk
I ran the command on the 3 partitions. Took about an hour to do all 3. Took it down from 511 GB to 175 GB.
/var had the trash file from the web sites files moved.
I have many Linux Server VMs running on my HP DL360e Gen8 server. Cisco Virtual Lab for my Cisco CCNP simulations. My linux servers keep changing and evolving. I need to buy a newer server to support the latest version of VMWare. My Gen8 server can do VMware 6. Gen9 can do VMWare 6.5. Gen10 can do VMWare 6.7.