Thanks, Is there any way to do this step by GUI? I want to permanently decomm the device.
- Perform a rescan on all ESXi hosts which had visibility to the LUN. The device is automatically removed from the Storage Adapters.
When the device is detached, it stays in an unmounted state even if the device is re-presented (that is, the detached state is persistent). To bring the device back online, the device must be attached.
If the device is to be permanently decommissioned from an ESXi host, you may have to manually remove the NAA entries from the host configuration:
- To list the permanently detached devices, run the command:
# esxcli storage core device detached list
The output is similar to:
Device UID State
------------------------------------ -----
naa.50060160c46036df50060160c46036df off
naa.6006016094602800c8e3e1c5d3c8e011 off - To permanently remove the device configuration information from the system, run the command:
# esxcli storage core device detached remove -d NAA_ID
For example:
# esxcli storage core device detached remove -d naa.50060160c46036df50060160c46036df