How to Properly Remove Datastore or LUN from ESXi

Pre-Checks before unmounting the Datastore:

1.If the LUN is being used as a VMFS datastore, all objects (such as virtual machines, snapshots, and templates) stored on the VMFS datastore are unregistered or moved to another datastore using storage vMotion. You can Browse the datastore and verify no objects are placed on the datatsore.

  1. Ensure the Datastore is not used for vSphere HA heartbeat.

  2. Ensure the Datastore is not part of a Datastore cluster and not managed by Storage DRS.

  3. Datastore should not be used as a Diagnostic coredump partition.

  4. Storage I/O control should be disabled for the datastore.

  5. No third-party scripts or utilities are accessing the datastore.

  6. If the LUN is being used as an RDM, remove the RDM from the virtual machine. Click Edit Settings, highlight the RDM hard disk, and click Remove. Select Delete from disk if it is not selected, and click OK.
    Note: This destroys the mapping file, but not the LUN content.

Procedure to Remove Datastore or LUN from ESXi 5.X hosts:

  1. Ensure you have reviewed all the pre-checks as mentioned above for the datastore ,which you are going to unmount.

  2. Select the ESXi host-> Configuration-> Storage-> Datastores. Note down the naa id for that datastore. Which starts something like naa.XXXXXXXXXXXXXXXXXXXXX.

How to Properly Remove Datastore or LUN from ESXi

3.Right-click the Datatsore, which you want to unmount and Select Unmount.

How to Properly Remove Datastore or LUN from ESXi

  1. Confirm Datastore unmount pre-check is all marked with Green Check mark and click on OK. Monitor the recent tasks and Wait till the VMFS volume shows as “unmounted”.

How to Properly Remove Datastore or LUN from ESXi

5.Select the ESXi host-> Configuration-> Storage-> Devices. Match the devices with the naa.id (naa.XXXXXXXX) which you have noted down in step 2 with the Identifier. Select the device which has same naa.id as the unmounted datastore. Right-click the device and Detach. Verify all the Green checks and click on Ok to detach the LUN

How to Properly Remove Datastore or LUN from ESXi

How to Properly Remove Datastore or LUN from ESXi

  1. Repeat the same steps for all ESXi hosts, where you want to unpresent this datastore.

  2. Inform your storage administrator to physically unpresent the LUN from the ESXi host using the appropriate array tools. You can even share naa.id of the LUN with your storage administrator to easily identify from the storage end.

  3. Rescan the ESXi host and verify detached LUNs are disappeared from the ESXi host.
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章