Author : Svetlana Voskoboinikova
Topic Name : Raw Device Mapping
Publication Name : vSphere Storage
Product/Version : VMware vSphere/6.7
Retiring a VM and would like to know the best procedure for removing the RDM disks from the esxi hosts.
Once you have the RDM Lun list, you can directly detach the devices from ESXi host. ESXi host generally dont do any read write on physical RDM luns.
1. Shutdown the VM
2. Identify the RDM LUN details from VM settings.
3. Once you have the RDM details ,delete the VM
4. Detach the LUNs from ESXi storage devices tab.
The steps are explained in https://kb.vmware.com/kb/2004605. The KB article also covers detaching a RDM from ESXi hosts.