How to properly Remove Datastore or LUNs from ESXi 5.x hosts

Source: Internet
Author: User
Tags apd

This post might was sounds simple, removing datastore from ESXi host but it's not actually simple as it sounds. VMware Administrators might think that right-click the Datastore and unmounting. It is not only the process to remove LUN from ESXi hosts but there be few additional pre-checks and post tasks like Detac Hing the device from the host was must before we request storage Administrator to unpresenting the LUN from the backend sto Rage Array. This process needs to being followed properly otherwise it may cause bad issues like APD (all Paths off) condition on the ES Xi host. Lets review What are all Path Device (APD) condition.

As per VMware"APD is when there was no longer any active paths to a storage device from the ESX, yet the ESX continues to try T o Access that device. When Hostd tries to open a disk device, a number of commands such as read capacity and read requests to validate the Parti tion table is sent. If the device is in APD, these commands'll be retried until they time out. The problem is this HOSTD is responsible for a number of other tasks as well, not just opening devices. One task is an ESX to vCenter communication, and if hostd are blocked waiting for a device to open, it may isn't respond in a ti Mely enough fashion to these other tasks. One consequence is the might observe your ESX hosts disconnecting from VCenter.
VMware has do lot of improvements to how to handle APD conditions over the last number of releases, but prevention is bet ter than cure, so I wanted to use this post to explain you the best practices of removing the LUN from ESXi host.

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 is unregistered or moved to another datastore using storage vMotion. You can Browse the Datastore and verify no objects is placed on the datatsore.

2. Ensure the Datastore is not a used for VSphere HA heartbeat.

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

4. Datastore should not being used as a Diagnostic coredump partition.

5. Storage I/O control should is disabled for the datastore.

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

7. If The LUN is being used as a 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's not selected, and click OK. Note: This destroys the mapping file, and not the LUN content.

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

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

2. Select the ESXi host-> configuration-> storage-> datastores. Note the NAA ID for that datastore. Which starts something like NAA. Xxxxxxxxxxxxxxxxxxxxx.

650) this.width=650; "class=" Size-full wp-image-2381 aligncenter "alt=" Remove LUNs from ESXi host-1 "src=" HTTP://WWW.VMW Arearena.com/wp-content/uploads/2015/06/remove-luns-from-esxi-host-1.jpg "width=" 885 "height=" 98 "/>Image Thanks to shabiryusuf.wordpress.com

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

650) this.width=650; "class=" Size-full wp-image-2382 aligncenter "alt=" Remove LUNs from ESXi host-2 "src=" HTTP://WWW.VMW Arearena.com/wp-content/uploads/2015/06/remove-luns-from-esxi-host-2.jpg "width=" 877 "height=" 407 "/>Image Thanks to shabiryusuf.wordpress.com

4. 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".

650) this.width=650; "class=" Size-full wp-image-2383 aligncenter "alt=" Remove LUNs from ESXi host-3 "src=" HTTP://WWW.VMW Arearena.com/wp-content/uploads/2015/06/remove-luns-from-esxi-host-3.jpg "width=" 538 "height=" 408 "/>Image Thanks to shabiryusuf.wordpress.com

5.Select the ESXi host-> configuration-> storage-> Devices. Match the devices with the Naa.id (NAA. XXXXXXXX) which you has noted down 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

650) this.width=650; "class=" Size-full wp-image-2384 aligncenter "alt=" Remove LUNs from ESXi host-4 "src=" HTTP://WWW.VMW Arearena.com/wp-content/uploads/2015/06/remove-luns-from-esxi-host-4.jpg "width=" 853 "height=" 198 "/>Image Thanks to shabiryusuf.wordpress.com

650) this.width=650; "class=" Size-full wp-image-2385 aligncenter "alt=" Remove LUNs from ESXi host-5 "src=" HTTP://WWW.VMW Arearena.com/wp-content/uploads/2015/06/remove-luns-from-esxi-host-5.jpg "width=" 525 "height=" 397 "/>
6. Repeat the same steps for any ESXi hosts, where you want to unpresent this datastore.

7. 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 LUNs with your storage administrator to easily identify from the storage end.

8. Rescan the ESXi host and verify detached LUNs is disappeared from the ESXi host.

That ' s it. I hope this post helps your understand the detailed procedure to properly remove the Datastore or LUN from your ESXi host. Thanks for Reading!!!. Be social and Share it in social media. If you feel worth sharing it.

How to properly Remove Datastore or LUNs from ESXi 5.x hosts

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.