Symptoms:
VMware vSphere ESXi 6.x
VMware vSphere ESXi 7.x
VMware vSphere ESXi 8.x
This issue occurs when cached INQUIRY data is not updated with the new LUN state and is passed to the guest OS.
To resolve this issue reset the LUN to the actual LUN ID in which the state was changed:
If the state of the LUN needs to change from Read Only (RO) to Read Write (RW), or vice versa, do it before presenting the LUN to the ESXi host - or unmount the datastore/RDM before making the state change on the storage side see, How to detach a LUN device from ESXi hosts
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.