Rescan all Hosts HBA’s | It’s that simple!

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




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 Kudos!

Comments are closed.

Create a website or blog at

Up ↑

%d bloggers like this: