Month: January 2018

Leave a reply

Reclaiming Free Space

I was tasked earlier in the week to reclaim free space from VMs that have been deleted or from snapshots that have been consolidated.

What I discovered was that from vSphere 5.0 to 5.5 had the ability but was disabled by default due to performance issues on the arrays during reclamation.  However, reclamation can still be done manually by issuing the following command

esxcli storage vmfs unmap -l <datastore name>

What is happening here is that when a VM is either deleted, moved due to SvMotion, or snapshots deleted/ consolidated, the VMFS datastore sees that space has been freed up, but not reported back to the array, and still holds on to that space.  So in the vCenter client, you’ll see the amount of free space available to you right away, but you’ll the LUN reporting a different number. I think this is normally not an issue as long as your datastores don’t fill up or if you’re running alerts against the datastores and not the array.

In any case the above command reclaims the space, but depending on how big the LUN is, it can take long time.

For example, to reclaim 50% of free space from a 8TB LUN took about 11 hours.

Good news, VMware had re-implemented the SCSI UNMAP commands in 6.5

Please keep in mind the scsi unmap command needs to be run from the host console.


Leave a reply

Trouble installing applications

The last few months I’ve had some issues installing certain applications.  Some applications would be looking for the msi in the Windows temp directory, in one instance, VAMT would fail with Error 1651.

Well, I’ve finally resolved the issue with the following:

https://support.microsoft.com/en-us/help/17588/fix-problems-that-block-programs-from-being-installed-or-removed

According to the website, the following is fixed:

    • Corrupted registry keys on 64-bit operating systems
    • Corrupted registry keys that control the update data
    • Problems that prevent new programs from being installed
    • Problems that prevent existing programs from being completely uninstalled or updated
    • Problems that block you from uninstalling a program through Add or Remove Programs (or Programs and Features) in Control Panel

To fix my issues I would select the application that is giving me a problem, select uninstall, and then re-run the installation.

 


%d bloggers like this:
Bitnami