[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 548
  • Last Modified:

How to remove datastore entry from vCenter

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
Hitesh
Asked:
Hitesh
  • 5
  • 2
  • 2
1 Solution
 
GG VPCommented:
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
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
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
 
HiteshAuthor Commented:
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
Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

 
GG VPCommented:
Restarting service could/can impact the running VMs on the host, better to do it during non office hours!
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
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
 
HiteshAuthor Commented:
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
 
HiteshAuthor Commented:
.
0
 
HiteshAuthor Commented:
Thanks for help
0
 
HiteshAuthor Commented:
Thanks restarting SIOC services resolved the matter
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 5
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now