You should see these messages in the /var/log/vmkernel.log file:
<YYYY-MM-DD>T<time>Z cpuXX:XXXXX)WARNING: NMP: nmpDeviceTaskMgmt:XXXX: Attempt to issue lun reset on device LUN_ID . This will clear any SCSI-2 reservations on the device.
<YYYY-MM-DD>T<time>Z cpuXX:XXXXX)Resv: 631: Executed out-of-band lun reset on LUN_ID <YYYY-MM-DD>T<time>Z cpuXX:XXXXX)ScsiCore: 1486: Power-on Reset occurred on vmhbaX:CX:TX:LXXX</time></time></time>
Run this command to reclaim the LUN:
esxcli storage core claiming reclaim -d LUN_ID Note: This command will fail if there is I/O currently being sent to the device.
If the virtual machine is still unable to write to the LUN, try each of these options individually:
Note: This command may fail if there is I/O currently being sent to the device and a host reboot may be required.
Unpresent and re-present the LUN to the ESXi host from the storage array side.
Important: If you are uncertain of the consequences/impact this action will have on your environment, contact your storage vendor for further assistance.
Impact/Risks: * Changing the LUN write state from Read Write to Read Only "on the fly" while it is still being in use might cause data corruption on the device filesystem so this kind of change should never be done on a live datastore/Raw Device Map.