VMware Cloud Community
InflxxEC
Contributor
Contributor

Error trying to delete Datastore

Has anyone seen the attached error when trying to delete a datastore? I have svmotioned all VMs and nothing is running on them.

Is there a way to do this from the command line in ESXi 4.1?

Thanks.

0 Kudos
5 Replies
ZMR
Contributor
Contributor

Browse Data store itself and check to make sure no vmk, vmx or other similiar files have not be left behind during storage migration, you will have to migrate it to where VM is at. Also check to see if any orphan files are left which you have to delete manully. Once in a blue moon during storage migration I noticed VMX file and VMDK where on two different luns after migration, one on source datastore and other on distination. But mostly orphan files on datastore that had to be deleted. ALWAYS ensure before you delete orphan file that VM has that file in current datastore. Deletion without confirmation can lead to big prob giving heads up

0 Kudos
john23
Commander
Commander

check for some lock is there. use vmkfstools -L reserve and then try to release it

Thanks -A Read my blogs: www.openwriteup.com
0 Kudos
Samcer
Expert
Expert

if you have already checked your Datastore is free, rescan your storage twice then delete your datastore.

My 2 cents

Sam

samcer| http://about.me/samcer | http://www.vm-support.it/ | @samuelecerutti
0 Kudos
a_p_
Leadership
Leadership

Did the datastore contain any ISO files? If there are still VM's pointing to the datastore you will not be able to delete it, even though the ISO do not exist anymore. Depending on the number of VM's you have, you may use e.g. RVTools (http://www.robware.net/) to check the VM's settings.

André

0 Kudos
InflxxEC
Contributor
Contributor

Finally was able to get rid of it after a reboot of the host.

Thanks for all the responses!

0 Kudos