When adding iSCSI or Fiber Channel LUNs to your vSphere cluster, you’ll need to rescan the vHBA on all of your hosts. Here’s a quick snippet to facilitate that in PowerCLI.
Single Host
1 | Get-VMHost | Get-VMHostStorage -RescanAllHba |
Entire Cluster
1 | Get-Cluster -Name “GC” | Get-VMHost | Get-VMHostStorage -RescanAllHba |