I am reclaiming storage at this point doing the following
ssh to the esxi
and run esxcli storage vmfs unmap -l DS
can I accomplish the same using PSC to connect to the esxi host and run that command and not SSH to it
I can connect to the esxi by connect-viserver but I dont know how to run the esxcli storage vmfs unmap -l DS from within Powershell cli
Thanks for any help
You would need to provide more info about the storage and its backing.
In KB2048466 it says
"The VAAI primitive UNMAP only works on SAN arrays where the partition offset is a multiple of 1 MB"
VMFS 6 requires unmap granularity of 1MB.
It could be that your SAN has a larger unmap granularity block size than 1MB.
Any specific reason for that?
That is a very old version.
Can you upgrade?
See Welcome PowerCLI to the PowerShell Gallery – Install Process Updates for detailed instructions.
I am getting somewhere!!!
after running the script (while on vcenter)
I got the following error
Then I connected to the esxi directly and ran the script again but now I get the following