How to Properly Remove Datastore or LUN from ESXi 5.x hosts

This post might be sounds simple that removing datastore from ESXi host but it is 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 are few additional pre-checks and post tasks like detaching the device from the host is must before we request storage administrator to unpresenting the LUN from the backend storage array. This process needs to be followed properly otherwise it may cause bad issues like APD (All Paths Down) condition on the ESXi host. Lets review what is All Path Device (APD) condition.

AS per VMware “APD is when there are no longer any active paths to a storage device from the ESX, yet the ESX continues to try to 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 partition table are sent. If the device is in APD, these commands will be retried until they time out. The problem is that hostd is responsible for a number of other tasks as well, not just opening devices. One task is ESX to vCenter communication, and if hostd is blocked waiting for a device to open, it may not respond in a timely enough fashion to these other tasks. One consequence is that you might observe your ESX hosts disconnecting from vCenter.“
VMware has did lot of improvements to how to handle APD conditions over the last number of releases, but prevention is better 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 are unregistered or moved to another datastore using storage vMotion. You can Browse the datastore and verify no objects are placed on the datatsore.

2. Ensure the Datastore is not 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 be used as a Diagnostic coredump partition.

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

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

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

Image thanks to shabiryusuf.wordpress.com

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

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”.

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 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

Image thanks to shabiryusuf.wordpress.com


6. Repeat the same steps for all 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 LUN with your storage administrator to easily identify from the storage end.

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

That’s it. I hope this post helps you 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.

时间: 2024-10-20 04:56:34

How to Properly Remove Datastore or LUN from ESXi 5.x hosts的相关文章

Detaching a datastore or storage device from multiple ESXi 5.0 hosts

Using the PowerCLI To detach a storage device using PowerCLI: Review the VMware Contributed Sample Code disclaimer, and deploy the community-supported PowerCLI script available atAutomating Datastore/Storage Device Detachment in vSphere 5. Ensure tha

esxi备份,datastore,vmdk

1)关于exsi vm的分盘问题: 存储的盘映射给esxi主机,然后esxi主机把这个meta盘新建或者扩展新的datastore,从datastore中将空间挂给vm,所以存储的lun和vm主机之间是没有直接映射关系的,lun和esxi的datastore之间有映射关系. 2)如果esxi的server的raid组下的某个lun,不管空间多大,都只能映射给一个主机或一个dtastore,例如一个1T的lun做了500G的datastore1,剩余的500多G是不可能作出另一个datastore

Linux: How to delete a disk or LUN reference from /dev

In AIX, there is rmdev command to remove a disk/LUN from /dev directory i.e to make the disk/LUN unavailable to the whole OS before physically removing it. But in Linux, there's no specific command to the same. Here's how you will actually do it: Mak

考试题目

Q1. An administrator wants to provide users restricted access. The users should only be able to perform the followingtasks:- Create and consolidate virtual machine snapshots- Add/Remove virtual disks- Snapshot ManagementWhich default role in vCenter

day12:vcp考试

Q221. An administrator is creating a new Platform Service Controller Password Policy with the followingrequirements:?Minimum length: Minimum of 8 characters.?Restrict use: 6?Character requirements: At least one upper-case letter, one number, and one

day1:vcp考试

Q1. An administrator wants to provide users restricted access. The users should only be able to perform the followingtasks:- Create and consolidate virtual machine snapshots- Add/Remove virtual disks- Snapshot ManagementWhich default role in vCenter

安装 ESXi 5.5 U1 (交互式)

一. ESXi 的硬件要求 1.1 硬件和系统资源 n 仅在安装有64 位x86 CPU 的服务器上安装和运行. n 需要在BIOS 中针对CPU 启用NX/XD 位. n 需要至少4GB 的物理RAM.至少提供8 GB 的RAM,以便能够充分利用ESXi 的功能,并在典型生产环境下运行虚拟机. n 要支持64 位虚拟机,x64 CPU 必须能够支持硬件虚拟化(Intel VT-x 或AMD RVI). n 一个或多个千兆或10GB 以太网控制器. 1.2 存储系统 n SATA 磁盘驱动器.

新版本vsphere支持最大单个vmdk超过2T,理论上支持最大62T

In vSphere 5.5, large capacity virtual disks have these conditions and limitations:An ESXi 5.5 or later host is required.The maximum supported VMDK size on an VMFS-5 datastore is increased to 62 TB. However, the maximum supported VMDK size on VMFS-3

gfs-cluster配置

所有节点: 前提配置好yum本地源,关闭iptables,selinux.修改好主机名.配置好hosts文件 more /etc/hosts|grep -v local 192.168.100.230 storage 192.168.100.231 node1 192.168.100.232 node2 #安装时间同步软件,配置互联网时间同步 cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime(修改时区) date -R(查看时区) [[ema