We're running into storage issues within our VC, and one of the reasons for this is excessive use of snapshots. I have a script that lists all of the snapshots for all of our VMs, but I haven't found a way to be able to programmatically determine file size of the snapshots (we have over 1000 VMs in 4 different VC's, so doing it manually isn't really an option). I attempted to get this information using a datastore file search (HostDatastoreBrowserSearchSpec, SearchDatastore, then total up the file size), but this method was unsuccessful. I'd very much like to be able to do this to be able to get a good understanding of how much space is being used on disk by snapshots. So, has anyone done this before? If so, how did you manage it? By the way, we're using ESX 3.5 with the 1.6 Perl Toolkit.
↧