#Cleanup of old snapshots....

1 messages · Page 1 of 1 (latest)

opal oasis
#

We seem to have quite a lot of older snapshots that for some reason or other, should have been deleted as part of the Snapcenter policies...
Over time these old snapshot starts to fill up the storage system... It takes some time to clean up after SnapCenter using the System Manager...
It would be nice if SnapCenter had a "cleanup" feature where it could look at the snapshots on the storage system and match it up against the snapshot that it thinks it should have, and give you the option to clean up whats left over... but sadly this is not a ting, and will most likely never will be... but I am interested in how other people handle this task... are there some shareable scripts out there, like "delete all snapshot older than date"...

craggy aspen
#

Primary backups are cleaned up by thte policy retention schedule, secondary by a weekly tasks (run by Windows Task Scheduler on Sunday). That tasks looks at the secondary volume and if the snapshot is not there anymore, and the primary backup is deleted, cleans up the backup in SnapCenter. If however for some reason that task fails to start, you end up with what you describe. Rescheduling that task to a different time, usually fixes any issue that task might have. As a note, you can always do that manually with Delete-SmBackup with the -cleanupsecondary switch.

opal oasis
# craggy aspen Primary backups are cleaned up by thte policy retention schedule, secondary by a...

Yes, but SnapCenter will only delete the snapshots which it thinks it has created... And sometimes, for whatever reason you end up with snapshots, clearly created by SnapCenter, but not deleted... and it would be nice to have a feature to "match up" the two outputs and then choose to delete everything that snapcenter isn't in control of... I know that such a feature will never be created by NetApp 🙂 I have several PS scripts that delete snapshots based on creation date and/or snapmirror label etc.. I guess if I had the time I could extract information from the mysql database of SnapCenter and do this matchup my self... but seems like a lot of work... and we don't have that many customers with snapcenter issues like this... (yet) 😉