Just a quick reference to bookmark, may someone think it’s useful.
Spending time to rescan HBA’s on all hosts in a cluster is time consuming and not worth the work. It is possible to rescan all HBA’s with a simple PowerCLI line:
Get-Cluster -Name “Clustername” | Get-VMHost | Get-VMHostStorage -RescanAllHba
or if you have more clusters you could simply use the “Get-Datacenter” command.
Get-Datacenter -Name “Datacentername” | Get-VMHost | Get-VMHostStorage -RescanAllHba
Done!
You also want to expand the datastore by the unused capacity after the rescan? Check out the blog post of @LucD22 using his “VMFSIncrease module” at http://www.lucd.info/2016/07/29/vmfs-datastores-expand-and-extend/ Kudos!