VMware Cloud Community
papahendo31
Contributor
Contributor

esxcli storage core device remove - Reattaches RDMs!

Hello all,

I have a bunch of old RDM devices to remove form my ESXi hosts.   I have already deleted them from the Windows vms that were using them.  They were used for some VMAX testing of some sort.  I am trying to detach and remove from all they were attached to.  There are a lot of RDMs and a lot of hosts so I use:

esxcli storage core device set --off -d naa.IDxxxxxx;

esxcli storage core device set --off -d naa.IDxxxxxx;

esxcli storage core device set --off -d naa.IDxxxxxx;

etc etc etc

The detach works fine and if I keep checking the devices stay detached.  I have waited several hours and refreshed and they are still detached.  So I proceed to:

esxcli storage core device detached remove -all

Not only does this not remove the devices from the hosts, the device actually show as attached after that.  The same happens if I run the remove individually per device.

ESXi 931334 - Yeah its old but we are preparing for decom which is why this cleanup is being done.  Anyone seen this?  They are going to be unmasked soon so I do not want the hosts freaking out when that happens so I would like to get them removed. 

Thanks in advance

Reply
0 Kudos
0 Replies