Posts Tagged ‘lun’

So out of a sudden you notice a few LUNs are missing from one or more of your ESX servers. Strange isn’t it? So you do a storage scan / refresh and they still do not automatically appear. You look for additional LUNs to add to your ESX server but as you’re adding them you are told that they will be formatted, this is obviously not an option if you have any data in them!

To solve this problem log into your ESX4 server and become root:

$ sudo su –

Find the LUNS that have been unmounted:
# esxcfg-volume -l
Find the VMFS3 UUID/label and perform the command:
Rescan the LUNs, where XX is the number of the software iSCSI adapter, 32, 33, etc…
# esxcfg-rescan vmhbaXX
That’s it. you’re done! Your LUNs will reappear in your ESX and you can go have a beer after work with your buddies, no data lost!