ESX Virtualization

VMware ESXi, vSphere, VMware Backup, Hyper-V... how-to, videos....

Nakivo Backup and Replication - #1 Backup solution for Virtual, physical, cloud, NAS and SaaS

Menu
  • Certification
      • VCP-DCV vSphere 8
          • vcp2024-125.
        • Close
    • Close
  • VMware
    • Configuration Maximums
    • vSphere
      • vSphere 8.0
      • vSphere 7.0
      • vSphere 6.7
      • vSphere 6.5
      • vSphere 6.0
      • Close
    • VMworld
      • VMware EXPLORE 2024
      • VMware EXPLORE 2023
      • VMware EXPLORE 2022
      • VMworld 2019
      • VMworld 2018
      • VMworld 2017
      • VMworld 2016
      • VMworld 2015
      • VMworld 2014
      • VMworld 2013
      • VMworld 2012
      • VMworld 2011
      • Close
    • Close
  • Microsoft
    • Windows Server 2012
    • Windows Server 2016
    • Windows Server 2019
    • Close
  • Categories
    • Tips – VMware, Microsoft and General IT tips and definitions, What is this?, How this works?
    • Server Virtualization – VMware ESXi, ESXi Free Hypervizor, VMware vSphere Server Virtualization, VMware Cloud and Datacenter Virtualization
    • Backup – Virtualization Backup Solutions, VMware vSphere Backup and ESXi backup solutions.
    • Desktop Virtualization – Desktop Virtualization, VMware Workstation, VMware Fusion, VMware Horizon View, tips and tutorials
    • How To – ESXi Tutorials, IT and virtualization tutorials, VMware ESXi 4.x, ESXi 5.x and VMware vSphere. VMware Workstation and other IT tutorials.
    • Free – Free virtualization utilities, ESXi Free, Monitoring and free backup utilities for ESXi and Hyper-V. Free IT tools.
    • Videos – VMware Virtualization Videos, VMware ESXi Videos, ESXi 4.x, ESXi 5.x tips and videos.
    • Home Lab
    • Reviews – Virtualization Software and reviews, Disaster and backup recovery software reviews. Virtual infrastructure monitoring software review.
    • Close
  • Partners
    • NAKIVO
    • StarWind
    • Zerto
    • Xorux
    • Close
  • This Web
    • News
    • ESXi Lab
    • About
    • Advertise
    • Archives
    • Disclaimer
    • PDFs and Books
    • Close
  • Free
  • Privacy policy

What to do when you can’t delete snapshot

By Vladan SEGET | Last Updated: November 1, 2014

Shares

When you can't delete snapshot. What to do?

You know that one of the great features of VMware ESX is a possibility to take snapshot of your system on a regular basics. When something goes wrong, you just revert to the snapshot and here you go. But when the snapshot get's stuck? You want to delete a snapshot, but the task never ends.  You can't power On the VM, it does not work…. and you can't stop the task of deleting snapshot either…

Here what you should try:

1. Connect to the ESX Host via SSH.
2. Run this command “Service mgmt-vmware restart” to restart the service.
3. If then the VM works, just leave like this,  otherwise try to restart the ESX Host.
4. Open the snapshot manager of the VM and create a new snapshot.  After, delete all previous snapshots and power On the VM.

Also there is a VMware kB article, which discusses this topic. Here is an extract from there:

Usually it's because of locked files. To resolve this issue, determine which process is holding the lock, then kill the process.

Note: The lock may also be held by a backup solution such as VMware Data Recovery or a Third party backup solution that has the vmdk mounted.

To determine which process is holding the lock, Run one of these commands:

lsof file

Or

lsof | grep -i file

For example:

# lsof | grep EAMTest02-flat.vmdk

You should see an output similar to:

COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
71fd60b6- 3631 root 4r REG 0,9 10737418240 23533 EAMTest02-flat.vmdk

Note: If there are no results, run the command from the host where the virtual machine was previously (you can find that information on the virtual machine's Tasks & Events tab).

Check the process with the PID returned in step 1 with the command:

# ps -ef | grep

For example:

# ps -ef | grep 3631

The output appears similar to:

root 3631 3497 0 Jul11 pts/2 00:00:00 /tmp/.vzbin/146aa95d-a634-4c79-95c3-cbeb558fe1df/ac4cb87c-75c2-4142-9d15-b9f65b537c4a.bin -sBkDiff -F/vmfs/volumes/Disk-002/EAM01/EAM01_1-flat.vmdk -IP10.9.90.50 -P49153 -S256
To kill the process, run the command:
# kill

Shares
5/5 - (2 votes)

| Filed Under: Server Virtualization Tagged With: ESX Deleting snapshot fails, ESX snapshots, trouble deleting snapshot, VMWare ESX, VMware vSphere

About Vladan SEGET

This website is maintained by Vladan SEGET. Vladan is as an Independent consultant, professional blogger, vExpert x16, Veeam Vanguard x9, VCAP-DCA/DCD, ESX Virtualization site has started as a simple bookmarking site, but quickly found a large following of readers and subscribers.

Connect on: Facebook. Feel free to network via Twitter @vladan.

Comments

  1. Malaysia VMware says

    July 20, 2009 at 4:51 am

    You can clone your VM and delete existing VM to solve the snapshot problem. Personally I would suggest not try to keep snapshot file bigger that 10G – Jas

  2. Vladan SEGET says

    July 20, 2009 at 6:15 am

    Can I start cloning when there is a task in progress with the same VM? I don’t think so… -:)

  3. Keme says

    April 6, 2016 at 12:59 am

    Hi Vladan – we tried delete all option but snapshot still exist in snapshot manager, we tried consolidate and it didn’t work, it suppose to merge it in to parent file,but no luck…. later we found out that it was our vcenter database sql server..and there is some issue with vmware itself when you snapshot a heavy iops database server, performance wise- you should do a article to explain consolidation vs delete all in snapshot…when have time- and thanks for your informative post like alaways.

    • Vladan SEGET says

      April 6, 2016 at 3:27 pm

      Hi Keme,

      Thanks for your input. It’s an older post, I might update it with some fresh content, concerning snapshots.

      Yeah, snapshots can get out of control quite easy. In vSphere 6.0 the snapshot consolidation process uses a mirror driver. With the mirror driver mechanism, the changes to the VM as such are written to the active VMDK and the base disk during consolidation. A snapshot consolidations shall be completing in 1 pass, with minimal or no helper disks. This shall dramatically shorter stun time and offer a lower chance to have consolidation failure.

  4. Matjaž Antloga says

    April 14, 2016 at 1:00 am

    it’s not always stucked, it can stay at 99% for a long time, my advice is to check .vmdk file sizes and times and see if there are any changes in a given time period. If there are, you better off leaving it to finish it’s job before doing anything stupid. Best regards, Matjaž

Private Sponsors

Featured

  • Thinking about HCI? G2, an independent tech solutions peer review platform, has published its Winter 2023 Reports on Hyperconverged Infrastructure (HCI) Solutions.
  • Zerto: One Platform for Disaster Recovery, Backup & Cloud Mobility: Try FREE Hands-On Labs Today!
Click to Become a Sponsor

Most Recent

  • Veeam confirming vSphere 9.0 and ESXi 9 upcoming support
  • Veeam Backup & Replication v13 Beta: A Game-Changer with Linux
  • What is Veeam Data Cloud Vault and how it can help SMBs
  • Nakivo Backup and Replication – Malware Scan Feature
  • Zerto 10 U7 released with VMware NSX 4.2 Support
  • XorMon NG 1.9.0 Infrastructure Monitoring – now also with Veeam Backup Support
  • Heartbeat vs Node Majority StarWind VSAN Failover Strategy
  • Vulnerability in your VMs – VMware Tools Update
  • FREE version of StarWind VSAN vs Trial of Full version
  • Commvault’s Innovations at RSA Conference 2025 San Francisco

Get new posts by email:

 

 

 

 

Support us on Ko-Fi

 

 

Buy Me a Coffee at ko-fi.com

Sponsors

Free Trials

  • DC Scope for VMware vSphere – optimization, capacity planning, and cost management. Download FREE Trial Here.
  • Augmented Inline Deduplication, Altaro VM Backup v9 For #VMware and #Hyper-V – Grab your copy now download TRIAL.

VMware Engineer Jobs

VMware Engineer Jobs

YouTube

…

Find us on Facebook

ESX Virtualization

…

Copyright © 2025 ·Dynamik-Gen · Genesis Framework · Log in