So it appears that out of the box the standard system task of cleaning up expired snaps/vv's is pretty useless and does not work on snaps created from a vvset. Nice touch, super helpful.
The support guys said we should create a new schedule which runs every hour just before the standard system task, and use the -cascade option to remove all expired snaps from vv-sets.
Something like this:-
createsched “removevv -f -expired -cascade" "22 * * * *" removevv_expired_cascade
After checking the cli reference it says "
–cascade
Remove all the descendent volumes as long as none has an active VLUN. It will remove any VLUN
templates as long as there were no active VLUNs. It will remove the volumes from all the volume
sets. If the -expired option is specified, all expired volumes and their descendent volumes will
be removed regardless if they are expired or not."
Im a little dubious this might result in something unexpected, are we OK to go ahead with this custom schedule to remove expired snaps from our vv-sets?!
Gulp! This is in prod now, and there cannot be any f-ups!