VMware Cloud Community
tdubb123
Expert
Expert

rescan all hbas runasync

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

0 Kudos
1 Reply
LucD
Leadership
Leadership

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

0 Kudos