-->

VMware: Unmount a datastore/volume from an ESXi/vCenter.

 cannot unmount volume 'datastore' because one or more virtual machines are still registered on it. correct the problem and retry the operation.

I recently encountered this problem; I attempted to unmount but received this error.

Examine the datastore to see if there are any virtual machines or files.

--Ensure that there are no VMs or VM templates in that datastore, as well as that there are no VCLs VMs.

--All CD/DVD images on the VMFS datastore must be unmounted/unregistered from the virtual machines as well.

-- Connect to the ESXi host via SSH

--grep datastore-name | lsof

--lsof | grep datastore uuid

--lsof | grep datastore LUN-id (naa.xxx)

--All three of the preceding commands should generate no output== indicating that no active process is accessing the datastore.

--Run the storage core device world command using the esxcli command.

--Run esxcli storage core device world list -d naa.XX to ensure that no active threads access the LUN. 

- used to unmount the datastore from each host 

storage filesystem unmount -l datastore-name esxcli

--The dismount was successful.

--started a cluster-level re-scan

My case study The VCLS VMs are in the datastore. I disabled VCLS virtual machines at the cluster level.



To collect domain ID, when we selected the  any cluster , it will display the one domain ID in main page URL. 

Note: each cluster having own domain ID.



> VM's are powered and deleted automatically when I made change from true to False.

> Unmount the datastore from vCenter/Esxi hosts.

>  Enable again those settings from False to True.

> VCLS VMs are redeployed on cluster and working fine.



VMware: Unmount a datastore/volume from an ESXi/vCenter. VMware: Unmount a datastore/volume from an ESXi/vCenter. Reviewed by Virtulization on April 18, 2023 Rating: 5

No comments:

Home - PageNavi (show/hide)

hide
Powered by Blogger.