I am comparing running esxcfg-rescan <vmkernel SCSI adapter name> from the host via the console/SSH to using powercli, logging into the host and running Get-VMHostStorage -RescanAllHba. Do these two commands use the same mechanism to do the rescan or are they separate mechanisms that accomplish the same goal?
The reason for asking this question is that running the rescan all from vCenter or Get-VMHostStorage -RescanAllHba while connected vCenter to discover new LUNs doesn't always work. The new LUNs will not appear on all the hosts. Only by restarting the host or running esxcfg-rescan <vmkernel SCSI adapter name> from the host resolves this issue.