Badges

gestaltitbadge

follow-me-twitter

Subscribe to me on FriendFeed

Comments / DISQUS
Feedjit.com

Search for VM Snapshots from the Service Console

There are several ways to determine if you have virtual machines with snapshots. Why you would want to know has been covered In various other posts both here at VM /ETC as well as on the other virtualization blogs. It’s so important that the virtualization community has created different tools and scripts to identify and monitor snapshot files for administrators.  So, when I read the post WWoIT – Wayne’s World of IT: Find VM snapshots in ESX/VC I had an experience that Aaron Delp described as “/HEADDESK” (when he commented on my uploading files with the VI Client post).

It may not be the fanciest of methods, but probably the quickest way to find VM snapshots is to use the ls command from the ESX Service Console. By piping the output with grep to find files with the snapshot extension, .vmsn, and using the recursive switch you can scan all the VMFS LUNs visible to an ESX host. That’s so simple it hurts!

To use the ls command to find snapshots do the following:

  1. Log in to the service console (use putty or mRemote for remote log in)
  2. Query for the snap shot files in the VMFS volumes

#ls -Ral /vmfs/volumes/* |grep .vmsn

Click the screen shot for a larger image.

Check out the whole Wayne’s World of IT post linked above for 3 other methods of finding snap shots. 

Technorati Tags: , ,

Related Posts

  • http://www.yellow-bricks.com/2008/04/21/ms-virtualization-blogs-and-vmotion/ Duncan

    i’ll usually just use the following:
    find /vmfs/volumes -iname “*delta.vmdk”

    this way even if a snapshot has gone completely haywire you will find the delta files and know something is wrong.

    And i just wrote a piece about snapshots yesterday:
    http://www.yellow-bricks.com/2008/06/23/deleting-snapshots-when-everything-else-failse/

  • http://www.yellow-bricks.com/2008/04/21/ms-virtualization-blogs-and-vmotion/ Duncan

    i’ll usually just use the following:
    find /vmfs/volumes -iname “*delta.vmdk”

    this way even if a snapshot has gone completely haywire you will find the delta files and know something is wrong.

    And i just wrote a piece about snapshots yesterday:
    http://www.yellow-bricks.com/2008/06/23/deleting-snapshots-when-everything-else-failse/

  • jamie

    theres a nice cron script called snap_hunter out there (perl?) but requires net::smtp – easy enough thanks to dags rhel3 rpms! :)

  • jamie

    theres a nice cron script called snap_hunter out there (perl?) but requires net::smtp – easy enough thanks to dags rhel3 rpms! :)

  • Sascha

    Use the free snaphunter from xtravirt.com.
    You will love it!
    http://tinyurl.com/6ddwf5

  • Sascha

    Use the free snaphunter from xtravirt.com.
    You will love it!
    http://tinyurl.com/6ddwf5

  • http://vmetc.com rbrambley

    Jamie, Sascha,

    I am aware of snaphunter and definitely recommend using it for scheduled, automated monitoring and smtp alerting of snapshots. However, as a consultant there’s a lot of times that I can’t install or configure the ESX hosts and that’s when using the command line is handy. I’m sure there are times when a quick command at the Service Console will benefit administrators too!

  • http://vmetc.com Rich

    Jamie, Sascha,

    I am aware of snaphunter and definitely recommend using it for scheduled, automated monitoring and smtp alerting of snapshots. However, as a consultant there’s a lot of times that I can’t install or configure the ESX hosts and that’s when using the command line is handy. I’m sure there are times when a quick command at the Service Console will benefit administrators too!

  • http://vmetc.com rbrambley

    Duncan,

    I always forget about the find command. Thanks!

  • http://www.vmetc.com Rich

    Duncan,

    I always forget about the find command. Thanks!

  • Evan Ramos

    Nice! Always good to know other ways in looking for snapshots via commandline.

    I like to use this command:
    find ./ -name *delta.vmdk

    Grabs all/any residing in /vmfs/volumes

  • Evan Ramos

    Nice! Always good to know other ways in looking for snapshots via commandline.

    I like to use this command:
    find ./ -name *delta.vmdk

    Grabs all/any residing in /vmfs/volumes

  • Pingback: Virtualization Short Take #12 - blog.scottlowe.org - The weblog of an IT pro specializing in virtualization, storage, and servers

  • Bruce Spies

    how about this version of what Evan posted? it will tell you the size of the snapshot as well:

    find /vmfs/volumes -type f -name ‘*.vmsn’ -exec ls -lh {} ;

  • Bruce Spies

    how about this version of what Evan posted? it will tell you the size of the snapshot as well:

    find /vmfs/volumes -type f -name ‘*.vmsn’ -exec ls -lh {\} \;

  • Pingback: ESX snapshots are like a loaded gun | VM /ETC

  • Pingback: Professional VMware » Blog Archive » ESX Snapshots – Careful Running With Those Scissors

Get My Podcast On iTunes!
Support VM /ETC
Support VMETC.com

Support VMETC.com

Free Business and Tech Magazines and eBooks
@rbrambley tweets
VMTN Roundtable Podcasts
Subscribe



Add to Google Reader or Homepage
Subscribe in NewsGator Online
Add to netvibes
Add to Plusmo