How do I rescann all hbas in a cluster with -runasync command?
I tried
get-cluster | get-vmhost | get-vmhoststorage -rescanallhba
but only does it one host at a time. and -runasync is not an option
You can't, and this is not a PowerCLI limitation, it's vSphere I'm afraid.
The reason is that there no async version for the RescanVmfs method.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference