Yes, set the 'waste' area of the policy that applies to your VMs and Datastores to account for snapshots older than X days. Then create a view based on wasted disk space, and have a column/field for snapshot disk space.
The "Waste" capability is how you isolated snapshots based on duration. The age itself on the snapshot instantiations in v6.0.x is in UNIX time, which we cannot really interpret using SMs or otherwise... only vR Ops can apply the necessary logic to translate it to age.
Can you please explain how to enable and set the waste area on the policy?
In my policy, I have gone to Override Attributes and enabled both the State and KPI options for:
- Disk Space | Snapshot | Number of Days
- Disk Space | Reclaimable Space | Snapshot Space | Waste (%) - for Virtual Machines
The thing is I now don't understand how or where to set the x number of days? And then how I can apply this to a view?
Thanks very much for your help
1 person found this helpful
Awesome thanks very much for your help.
I managed to get that setup, I am just wondering when creating the view, do I create a filter on Disk Space Reclaimable | Snapshot Space | Reclaimable Capacity (GB) greater than 0GB?
Thanks very much
i did the same report as you did. But the funny thing is, that the report show me snapshots on machines that did not have snaps.
What about you? Is the report working?
Here's what I did & it seems to work.
In Policy, Set Virtual Machine > Reclaimable = Snapshots Older than 7 Days
Name: Snapshots Older Than 7 Days
Subjects: Virtual Machine
Data: Disk Space Reclaimable|Snapshot Space|Reclaimable Capacity
Data > Metric Label: Diskspace Reclaimable from Snapshots Older than 7 Days
Filter: Metric > Disk Space Reclaimable|Snapshot Space|Reclaimable Capacity > 'is greater than' > 0GB
Further Analysis: Compliance & Reclaimable Capacity
Hi Frank and OsburnM,
I did some testing and it seems to be working. My snapshot report is anything over 10 days, at for today it seems to be accurate.
I have changed the policy now to be 8 days, just to see if its working, but I don't seem to be seeing any additional VMs - even though there should be about 5 in the list according to my calculations.
Not sure if maybe it takes a while to apply the policy, so I might leave it over the weekend and see the results on Monday.
Will let you know.
Thanks to everyone for their responses and help!
The waste calculations aren't every 5-min, you'll have to wait for the next calculation cycle, which usually happen 1,2,3 times a day (and no, they can't be scheduled or manually initiated). I usually give it a day for waste calc's to change.
Thanks Mark, that is what I thought.
I will let you know on Monday how it goes...
Just letting you know that I have done some testing today and everything is working!
So the details are above are correct for creating a view that contains virtual machines with snapshots older than x days.
Thanks to everyone for your help
I followed the steps in this post and was able to create a view that shows snapshots older than 7 days. Thank you all for this!
I have an additional requirement though that has me stumped. I want to add columns to my view that show the snapshot date and the snapshot name or description. I've been playing with it for 2 days and can't figure it out. Any ideas?