- Datastore do not show up after rescanning HBAs and VMFS even though all the paths are there
- Trying to add a new datastore will show all the LUNs, but attempting to add the datastore while preserving VMFS signatures results in an error
- VMs all show up as inaccessible
- LUN numbers appear to have been changed on the storage
The last point regarding the LUN number change was the crucial finding. After a bit of googling, it appears that you would need to manually remount the datastores. Here's how to do it via vCLI.
First, get the host object for the affected host (you'll have to do it one at a time or combine the following commands in a script).
$esxcli = Get-EsxCli -VMHost "vm-host1.local"
Next, list the datastores it has detected that has been unmounted.
The list of datastores should now be displayed. Mount each of them using the following command.
Repeat this process for all the affected hosts and all your datastores should be properly mounted and working again.