Solved

Unable to Delete VM Folder from ESXi host

Posted on 2015-01-17
8
298 Views
Last Modified: 2015-01-27
Hello Experts,

I have deleted a VM from my ESXi host, I'm prevented from deleting the file from my datastore, see image.

asa
Can someone help?

Cheers
0
Comment
Question by:cpatte7372
8 Comments
 
LVL 37

Expert Comment

by:bbao
ID: 40555554
have you already checked this official KB against the issue? please do follow the steps and check the logs first.

Cloning or migrating virtual machine files fail with the error: Error caused by file
(2009097)
http://kb.vmware.com/selfservice/microsite
s/search.do?language=en_US&cmd=displayKC&externalId=2009097
0
 
LVL 119

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) earned 500 total points
ID: 40556051
If there is a SWAP (VSWP) file present, which is shown in your screenshot, it's possible the VM is still running, or the process is still running?

You can try and check what process is running and kill it, but often it's easier to restart the HOST, and try deleting the files and folder again.

this is the VMware KB

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

often, you can spend ages and waste time trying this, but I've listed it here for training and educational purposes, just in case you want to have a dabble, and then you'll restart the host! (it's quicker!)

(restarting will shutdown all running processes)
0
 
LVL 5

Expert Comment

by:Uni Kitty
ID: 40558036
Totally agree, it's most likely a running process still accessing the files.
0
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 
LVL 37

Expert Comment

by:bbao
ID: 40558860
restarting the virtual host should work but i am wondering if this could be okay for a crticial business relying on virtualisation.
0
 
LVL 119
ID: 40558869
@bbao - it's a lab server, used for training!
0
 
LVL 37

Expert Comment

by:bbao
ID: 40559285
@andrew where can i see it is a lab server used for training please?

BTW, just repost the URL as the link was broken in my first comment posted from mobile phone.

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2009097
0
 
LVL 119
ID: 40559571
@bbao in the Askers history of questions!
0
 

Author Closing Comment

by:cpatte7372
ID: 40574105
Cheers
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
In this article, I will show you HOW TO: Perform a Physical to Virtual (P2V) Conversion the easy way from a computer backup (image).
Teach the user how to delpoy the vCenter Server Appliance and how to configure its network settings Deploy OVF: Open VM console and configure networking:
Teach the user how to install log collectors and how to configure ESXi 5.5 for remote logging Open console session and mount vCenter Server installer: Install vSphere Core Dump Collector: Install vSphere Syslog Collector: Open vSphere Client: Config…

813 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

11 Experts available now in Live!

Get 1:1 Help Now