?
Solved

How to remove datastore entry from vCenter

Posted on 2015-02-09
9
Medium Priority
?
287 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 122
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
What Is Blockchain Technology?

Blockchain is a technology that underpins the success of Bitcoin and other digital currencies, but it has uses far beyond finance. Learn how blockchain works and why it is proving disruptive to other areas of IT.

 
LVL 5

Accepted Solution

by:
GG VP earned 2000 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 122
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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

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…
This article outlines why you need to choose a backup solution that protects your entire environment – including your VMware ESXi and Microsoft Hyper-V virtualization hosts – not just your virtual machines.
Advanced tutorial on how to run the esxtop command to capture a batch file in csv format in order to export the file and use it for performance analysis. He demonstrates how to download the file using a vSphere web client (or vSphere client) and exp…
This video shows you how to use a vSphere client to connect to your ESX host as the root user. Demonstrates the basic connection of bypassing certification set up. Demonstrates how to access the traditional view to begin managing your virtual mac…
Suggested Courses

770 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