Remove Inactive Datastore From Vcenter

May 7, 2022

Remove Inactive Datastore From Vcenter. So the customer just deleted the lun from the storagebox expecting the datastore to disappear from the inventory. This has helped me to remove the stale entry.

Solved Re How to Delete inactive datastore in vCenter 6.... VMware
Solved Re How to Delete inactive datastore in vCenter 6…. VMware from communities.vmware.com

If there are virtual machines located on the datastore when the unplanned pdl occurs, the virtual machines must be stopped and unregistered from vcenter server. If the name of the nfs storage contains spaces, it has to be enclosed in quotes. Select * from vpx_ds_assignment where ds_id = 523575;

For These User Operations, The Vsphere Ha Agent Closes All The Files That It Has Opened, For Example, Heartbeat Files.

Once this is done you will need to ssh into the host and navigate to the virtual machine configuration file location we noted earlier. This has helped me to remove the stale entry. Specifies the host to which the datastore you want to remove belongs.

Restart Management Agents In The Esxi Host, Or Restart The Esxi Host Itself.

Specifies the datastores you want to remove. Make sure you select all hosts. I had another one to remove and managed to figure out how to do it correctly by adding another step after 2.

Inside This File You Should Be Able To Find The Three Lines Which Define The Disk That We Cannot Remove.

“no connected and accessible host is attached to the datastore.” at a client’s we encountered a rather classical error, a dismounted datastore that couldn’t be removed/distroyed. Wait for the vsphere task to complete. In esxi 4.x command is as follows:

Now That I Have The Datastore Id, Check Where It Is Still Used.

So the customer just deleted the lun from the storagebox expecting the datastore to disappear from the inventory. If the nfs datastore isn’t removed from the vsphere client, click the refresh button in the esxi storage section. Make sure it detached with esxcli storage core device detached list.

To Unmount The Nfs Storage:

Here you will find the list of all replicated group of datastore note: You can also restart the management agents from the esxi host console. If there are virtual machines located on the datastore when the unplanned pdl occurs, the virtual machines must be stopped and unregistered from vcenter server.

See also  Suite B 55 Staples Center