Solved

How to remove datastore entry from vCenter

Posted on 2015-02-09
9
144 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 118
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
 
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
Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
Last article we focus in how to VMware: How to create and use VMs TAGs – Part 1 so before follow this article and perform the next tasks, you should read the first article how to create the TAG before using them in Veeam Backup Jobs.
Teach the user how to install ESXi 5.5 and configure the management network System Requirements: ESXi Installation:  Management Network Configuration: Management Network Testing:
Teach the user how to rename, unmount, delete and upgrade VMFS datastores. Open vSphere Web Client: Rename VMFS and NFS datastores: Upgrade VMFS-3 volume to VMFS-5: Unmount VMFS datastore: Delete a VMFS datastore:

744 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now