[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1544
  • Last Modified:

VMware Snapshot Delete

I have one prod VM and i cretaed one snapshot. Now i wants to delete the snapshot without committing to the original  vmdk. ( After creating snapshot applied patches and os is currepted, so need to revert to original vmdk by online)
1 Solution
you don't actually want to delete the snapshot,
what VMware solution are you using ?
Danny McDanielClinical Systems AnalystCommented:
then don't choose delete, choose revert(Go To) in the snapshot manager.
kbjijoAuthor Commented:

If i am not deleted the snapsht, then  present operation will happens on snpashot only!
So i wants to work on original vmdk from time which snapshot taken
Transaction-level recovery for Oracle database

Veeam Explore for Oracle delivers low RTOs and RPOs with agentless transaction log backup and transaction-level recovery of Oracle databases. You can restore the database to a precise point in time, even to a specific transaction.

Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Delete = Committ.

Revert = Get Rid of Current State. (and the snapshot will be gone!)
kbjijoAuthor Commented:
ok thanks for the reply.
If i have multiple (eg:3 snapshots) snapshots, and i wants to revert to original vmdk(base disk) without committing . How can i do it

"Vm->Snapshots->Revert to snapshots" which disk it will pointing to

Also please let me know to revert the snapshot in command line
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
select the top snashot

what version of VMware are you using?
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
top snapshot
kbjijoAuthor Commented:
i have esxi 4.1 & esx 4.0

Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
To consolidate snapshots on an ESX/ESXi host:

    Log in as root to the ESX/ESXi service console through iLO/DRAC. To log in to ESXi hosts using SSH, see Tech Support Mode for Emergency Support(1003677) and Using Tech Support Mode in ESXi 4.1 (1017910).
    Navigate to the virtual machine directory containing the .vmdk files.
    Run this command to list the files in the directory:

     ls -al

    Locate any VM_NAME-00000#.vmdk or VM_NAME-00000#-delta.vmdk snapshot files. Look for numbered files following the hyphen (-) in the name. Also, verify that the timestamp is current on the delta files.
    Run this command to get a list of virtual machines and the VMID for each virtual machine:
    vim-cmd vmsvc/getallvms

    ,Make a note of the VMID for the specific virtual machine.
    To verify if the snapshot exists, run this command and check the Snapshot Name, Snapshot Created On, and Snapshot State:

    vim-cmd vmsvc/snapshot.get [VMID]

    You see an output similar to:

    Get Snapshot:
    --Snapshot Name        : Test
    --Snapshot Desciption  :
    --Snapshot Created On  : 8/27/2009 13:49:55
    --Snapshot State       : powered on

    Run this command to remove all snapshots:

    vim-cmd vmsvc/snapshot.removeall [VMID]

    If the removeall fails with the error cannot find vmid, run this command to create a new snapshot:

    vim-cmd vmsvc/snapshot.create [VmId] [snapshotName]

    Run this command and try to remove all snapshots again:

    vim-cmd vmsvc/snapshot.removeall [VmId]  


Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now