When an ESXi host occasionally becomes disconnected from a LUN, it can be a little frustrating to fix. Once the LUNs are recognized by ESXi, sometimes you will find that a datastore is missing. I’m partially posting this as a way to archive the fix for myself, but I hope it helps you too.
- Enable SSH on the host
- SSH into the host
esxcfg-volume -lwithout the quotes. You will see something like the following:
- Note the VMFS UUID/label. We want the label, which is
iSCSI-DSAon my host
esxcfg-volume -M iSCSI-DSAto mount the volume persistently, or
esxcfg-volume -m iSCSI-DSAto mount it temporarily.
- Disable SSH on your host
Hope that helped!