Solved

Unable to Delete VM Folder from ESXi host

Posted on 2015-01-17
8
287 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:Bing CISM / CISSP
Comment Utility
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 117

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE) earned 500 total points
Comment Utility
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
Comment Utility
Totally agree, it's most likely a running process still accessing the files.
0
 
LVL 37

Expert Comment

by:Bing CISM / CISSP
Comment Utility
restarting the virtual host should work but i am wondering if this could be okay for a crticial business relying on virtualisation.
0
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!

 
LVL 117

Expert Comment

by:Andrew Hancock (VMware vExpert / EE MVE)
Comment Utility
@bbao - it's a lab server, used for training!
0
 
LVL 37

Expert Comment

by:Bing CISM / CISSP
Comment Utility
@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 117

Expert Comment

by:Andrew Hancock (VMware vExpert / EE MVE)
Comment Utility
@bbao in the Askers history of questions!
0
 

Author Closing Comment

by:cpatte7372
Comment Utility
Cheers
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

VM backup deduplication is a method of reducing the amount of storage space needed to save VM backups. In most organizations, VMs contain many duplicate copies of data, such as VMs deployed from the same template, VMs with the same OS, or VMs that h…
Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
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 Micro Tutorial steps you through the configuration steps to configure your ESXi host Management Network settings and test the management network, ensure the host is recognized by the DNS Server, configure a new password, and the troubleshooting…

763 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

8 Experts available now in Live!

Get 1:1 Help Now