Is there a way to assign multiple snapshot schedules to a unity NAS FS? I would like to have two schedules for one FS. In the VNX we had for example: one schedule would take a daily snapshot at 6PM and save it for a month. Another schedule would take 2 more daily snapshots (10 AM, 1 PM) and save them for 7 days. In the Unity GUI allows only selection of one snapshot schedule / filesystem.
With support's help I got this to work as we had on the VNX. We just must do one schedule with multiple rules on the schedule. This is possible from the command line.
Here is an example for the next person who needs it
One schedule to do snapshot of FS: (gmt+2)
Every Monday, Friday, Thursday, Wednesday and Tuesday at 8:16 AM, retain for 7 days
and every Monday, Friday, Thursday, Wednesday and Tuesday at 4:16 PM, retain for 14 days
and every Tuesday, Friday, Thursday, Wednesday and Monday at 1:16 PM, retain for 7 days
Annoyingly if you use the hourlist rule, you can only have 2 hours in one rule. If you add more than two you'll get an error: Exceeded number of snapshots for the rule. Each rule may have a max of 2 snapshot hours ... (You can create more rules to compensate), but still.. only 2 snapshots per hourlist??? WHY?
mikko1
19 Posts
2695
0
Posted August 28th, 2016 07:00
Hi to all,
With support's help I got this to work as we had on the VNX. We just must do one schedule with multiple rules on the schedule. This is possible from the command line.
Here is an example for the next person who needs it
One schedule to do snapshot of FS: (gmt+2)
Every Monday, Friday, Thursday, Wednesday and Tuesday at 8:16 AM, retain for 7 days
and every Monday, Friday, Thursday, Wednesday and Tuesday at 4:16 PM, retain for 14 days
and every Tuesday, Friday, Thursday, Wednesday and Monday at 1:16 PM, retain for 7 days
uemcli -d [FQDN] -u Local/admin -p [password] /sys/task/rule create -schedName [name] -type weekdayslist -days "Mon,Tue,Wed,Thu,Fri" -at 14:16 -keepFor 14d
uemcli -d [FQDN] -u Local/admin -p [password] /sys/task/rule create -schedId [checktheID form 1st comand result set] -type weekdayslist -days "Mon,Tue,Wed,Thu,Fri" -at 11:16 -keepFor 7d
uemcli -d [FQDN] -u Local/admin -p [password] /sys/task/rule create -schedId [checktheID from 1st command result set] -type weekdayslist -days "Mon,Tue,Wed,Thu,Fri" -at 06:16 -keepFor 7d
uemcli uses gmt time
Then assign this schedule to the FS.
Easy to do, after you get the idea how it works.
Annoyingly if you use the hourlist rule, you can only have 2 hours in one rule. If you add more than two you'll get an error: Exceeded number of snapshots for the rule. Each rule may have a max of 2 snapshot hours ... (You can create more rules to compensate), but still.. only 2 snapshots per hourlist??? WHY?
Updated with correct time values.