joeytmann
Contributor
Contributor

Remove RDM disks

Author : Svetlana Voskoboinikova

URL : http:////docs.vmware.com/en/VMware-vSphere/6.7/com.vmware.vsphere.storage.doc/GUID-B3522FF1-76FF-419...

Topic Name : Raw Device Mapping

Publication Name : vSphere Storage

Product/Version : VMware vSphere/6.7

Question :

Retiring a VM and would like to know the best procedure for removing the RDM disks from the esxi hosts.

0 Kudos
4 Replies
SureshKumarMuth
Commander
Commander

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.

Regards, Suresh https://vconnectit.wordpress.com/
0 Kudos
joeytmann
Contributor
Contributor

So basically shutdown the guest OS of the vm, delete the vm, then go to each esxi and remove the RDM disks?

0 Kudos
SureshKumarMuth
Commander
Commander

Yes,

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.

Regards, Suresh https://vconnectit.wordpress.com/
0 Kudos
a_p_
Leadership
Leadership

The steps are explained in https://kb.vmware.com/kb/2004605​. The KB article also covers detaching a RDM from ESXi hosts.

Steps are:

  1. make sure that the RDM LUN is not in use anymore (i.e. either delete the VM, or delete the RDM from the VM's configuration)
  2. detach the RDM LUN from each host
  3. unpresent the LUN on the storage
  4. perform a rescan on the hosts
  5. do a cleanup on the hosts using the "esxcli storage core device detached ..." command

André

0 Kudos