Solved

How to remove datastore entry from vCenter

Posted on 2015-02-09
9
164 Views
Last Modified: 2015-02-15
Datastore is removed by the Storage Admin and its showing "inactive" in Datastore under vCenter. How can I remove entry showing under vCenter? I cant unmount now but when I try to delete datastore it gives me I/O error.
0
Comment
Question by:Hitesh
  • 5
  • 2
  • 2
9 Comments
 
LVL 5

Expert Comment

by:GG VP
ID: 40600117
The datastore should have been first unmounted and then the storage admin should have reclaimed the unused LUN,

Best Practice: How to correctly remove a LUN from an ESX host

From the above blog post,

01. Unregister all objects from the datastore including VMs and Templates

02. Ensure that no 3rd party tools are accessing the datastore

03. Ensure that no vSphere features, such as Storage I/O Control or Storage DRS, are using the device

04. Detach the device from the ESX host; this will also initiate an unmount operation

05. Physically unpresent the LUN from the ESX host using the appropriate array tools

06. Rescan the SAN


Since your scenario is different, we have to remove the datastore hard way. The only option I think is to using CLI to find the volume and delete, need to careful here, else you may end up deleting wrong datastore!
0
 
LVL 119
ID: 40600211
datastore is still in use. track down what VM has access to it.

if it's helpful select the datastore view, select the datastore, and it should show what has access to it.

sometimes, you may find, it could be ESXi locker files, logs or VMware HA ?
0
 

Author Comment

by:Hitesh
ID: 40602218
As such now there is no storage attached to it because storage guy has already removed from his end. We might have to go through the hard way (CLI). Going through this article from Vmware to resolve the matter.

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2008507

New questions is that - is it okay to restart storageRM services during day time or I need to do this during non office hours.
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
LVL 5

Accepted Solution

by:
GG VP earned 500 total points
ID: 40602500
Restarting service could/can impact the running VMs on the host, better to do it during non office hours!
0
 
LVL 119
ID: 40602611
Restart the Network Management Agents on the Host, this will not affect running VMs.

If this does not clear the datastore, restart the host.

However, if there is a reference to this datastore, in any of the VMs, it will still remain as a reference.
0
 

Author Comment

by:Hitesh
ID: 40611503
I've requested that this question be closed as follows:

Accepted answer: 0 points for Hitesh's comment #a40602218

for the following reason:

•      Connect to HOST via putty
•      Run this command  stop the SIOC service  - /etc/init.d/storageRM stop
•      In the vSphere Client, select the host and then click the Configuration tab/ Click Rescan All.
•      After the rescan completes, ensure the disconnected datastore is removed from this particular host
•      On the host, Start the SIOC service - /etc/init.d/storageRM start
•      Repeat the above steps for each host

VMware KB article - http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2011220
0
 

Author Comment

by:Hitesh
ID: 40611501
.
0
 

Author Comment

by:Hitesh
ID: 40611502
Thanks for help
0
 

Author Closing Comment

by:Hitesh
ID: 40611504
Thanks restarting SIOC services resolved the matter
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If we need to check who deleted a Virtual Machine from our vCenter. Looking this task in logs can be painful and spend lot of time, so the best way to check this is in the vCenter DB. Just connect to vCenter DB(default DB should be VCDB and using…
In this article, I will show you HOW TO: Suppress Configuration Issues and Warnings Alert displayed in Summary status for ESXi 6.5 after enabling SSH or ESXi Shell.
Teach the user how to convert virtaul disk file formats and how to rename virtual machine files on datastores. Open vSphere Web Client: Review VM disk settings: Migrate VM to new datastore with a thick provisioned (lazy zeroed) disk format: Rename a…
Teach the user how to use vSphere Update Manager to update the VMware Tools and virtual machine hardware version Open vSphere Client: Review manual processes for updating VMware Tools and virtual hardware versions: Create a new baseline group in vSp…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question