Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Remove snapshot stuck for more than 20 hours - ESXi 5.0

Posted on 2013-01-16
5
Medium Priority
?
15,033 Views
Last Modified: 2013-01-16
Yesterday tried to remove VM snapshots on ESXi 5.0, and the process is stuck for more than 20 hours.
Running  vim-cmd vimsvc/task_list of this host it shows:
(ManagedObjectReference) [
   'vim.Task:haTask-44-vim.VirtualMachine.removeAllSnapshots-12580485'

The VM is unresponsive, no shutdown, does not even allow to rename the VM, any task gets an error "another task is already in progress", no problems manipulating with any other VMs.

I have no problem to lose this particular VM, but the host is in production cluster.

Thanks
0
Comment
Question by:Vasilax50
  • 2
  • 2
5 Comments
 
LVL 124

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) earned 2000 total points
ID: 38783907
this is how you should proceed:-

1. Restart Network Management Agents on the Host Server, hosting the VM.
2. Restart vCenter Server Server service on the vCenter Server.

It would appear that a Task has Hung which needs clearing.

The above functions are safe, and will not affect any of the VMs running in production.

then we can proceed with the snapshot issue, if you wish.

Please see my EE Article

HOW TO: VMware Snapshots :- Be Patient
0
 
LVL 14

Expert Comment

by:RickEpnet
ID: 38784081
I would do this only as a last resort but you can try what is outlined here but read through it all.

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

Author Comment

by:Vasilax50
ID: 38784296
Looks like your, hanccocka, solution works :)
Restarted Network Management Agents on host and VCenter Service and the process gone

But now in inventory I have inaccessible virtual machine named "Unknown 37" , if I try to remove from inventory, it created another, "Unknown 38" VM
Also, I cannot delete the the old VM folder from the Datastore

Thank you
0
 
LVL 124
ID: 38784371
was this the VM that had the snapshot issue.

its looking likely that there is a lock on the VM, which is no surprise

there are two ways to get rid of locks, the short way restart the host, the long way, login via console or ssh, find the lock, using lsof, kill the process.
0
 

Author Closing Comment

by:Vasilax50
ID: 38784530
Thank you !
0

Featured Post

Fill in the form and get your FREE NFR key NOW!

Veeam is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

Question has a verified solution.

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

If your vDisk VHD file gets deleted from the image store accidentally or on purpose, you won't be able to remove the vDisk from the PVS console. There is a known workaround that is solid.
This article outlines why you need to choose a backup solution that protects your entire environment – including your VMware ESXi and Microsoft Hyper-V virtualization hosts – not just your virtual machines.
Teach the user how to use vSphere Update Manager to update the VMware Tools and virtual machine hardware version Open vSphere Client: Review manual processes for updating VMware Tools and virtual hardware versions: Create a new baseline group in vSp…
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…

963 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