细化NetApp磁盘阵列基础策略的触发间隔

 Translate this page into English

NetApp自带策略任务的触发间隔默认为 日-Daily / 周-Weekly / 月-Monthly,对于一个高负载的存储阵列,这样的间隔幅度还是比较长的。我们可以细化策略至每小时/24,来分散任务执行时对系统负载的压力。

全局按小时触发的计划任务

$ job schedule cron create -name 0 -minute 0 -hour 0
$ job schedule cron create -name 1 -minute 0 -hour 1
$ job schedule cron create -name 2 -minute 0 -hour 2
$ job schedule cron create -name 3 -minute 0 -hour 3
$ job schedule cron create -name 4 -minute 0 -hour 4
$ job schedule cron create -name 5 -minute 0 -hour 5
$ job schedule cron create -name 6 -minute 0 -hour 6
$ job schedule cron create -name 7 -minute 0 -hour 7
$ job schedule cron create -name 8 -minute 0 -hour 8
$ job schedule cron create -name 9 -minute 0 -hour 9
$ job schedule cron create -name 10 -minute 0 -hour 10
$ job schedule cron create -name 11 -minute 0 -hour 11
$ job schedule cron create -name 12 -minute 0 -hour 12
$ job schedule cron create -name 13 -minute 0 -hour 13
$ job schedule cron create -name 14 -minute 0 -hour 14
$ job schedule cron create -name 15 -minute 0 -hour 15
$ job schedule cron create -name 16 -minute 0 -hour 16
$ job schedule cron create -name 17 -minute 0 -hour 17
$ job schedule cron create -name 18 -minute 0 -hour 18
$ job schedule cron create -name 19 -minute 0 -hour 19
$ job schedule cron create -name 20 -minute 0 -hour 20
$ job schedule cron create -name 21 -minute 0 -hour 21
$ job schedule cron create -name 22 -minute 0 -hour 22
$ job schedule cron create -name 23 -minute 0 -hour 23

按小时触发的效率策略

配合重复数据删除功能用,按时触发在后台执行,减轻重删对系统服务性能的影响。

要在所有SVM上分别建立所有策略。

需替换变量:SVM_Name为实际的SVM名称;Efficiency_Prefix为自定义的效率策略名称前缀。

$ efficiency policy create -vserver {SVM_Name} -policy {Efficiency_Prefix}0 -type scheduled -schedule 0 -duration 22 -qos-policy background -enabled true
$ efficiency policy create -vserver {SVM_Name} -policy {Efficiency_Prefix}1 -type scheduled -schedule 1 -duration 22 -qos-policy background -enabled true
$ efficiency policy create -vserver {SVM_Name} -policy {Efficiency_Prefix}2 -type scheduled -schedule 2 -duration 22 -qos-policy background -enabled true
$ efficiency policy create -vserver {SVM_Name} -policy {Efficiency_Prefix}3 -type scheduled -schedule 3 -duration 22 -qos-policy background -enabled true
$ efficiency policy create -vserver {SVM_Name} -policy {Efficiency_Prefix}4 -type scheduled -schedule 4 -duration 22 -qos-policy background -enabled true
$ efficiency policy create -vserver {SVM_Name} -policy {Efficiency_Prefix}5 -type scheduled -schedule 5 -duration 22 -qos-policy background -enabled true
$ efficiency policy create -vserver {SVM_Name} -policy {Efficiency_Prefix}6 -type scheduled -schedule 6 -duration 22 -qos-policy background -enabled true
$ efficiency policy create -vserver {SVM_Name} -policy {Efficiency_Prefix}7 -type scheduled -schedule 7 -duration 22 -qos-policy background -enabled true
$ efficiency policy create -vserver {SVM_Name} -policy {Efficiency_Prefix}8 -type scheduled -schedule 8 -duration 22 -qos-policy background -enabled true
$ efficiency policy create -vserver {SVM_Name} -policy {Efficiency_Prefix}9 -type scheduled -schedule 9 -duration 22 -qos-policy background -enabled true
$ efficiency policy create -vserver {SVM_Name} -policy {Efficiency_Prefix}10 -type scheduled -schedule 10 -duration 22 -qos-policy background -enabled true
$ efficiency policy create -vserver {SVM_Name} -policy {Efficiency_Prefix}11 -type scheduled -schedule 11 -duration 22 -qos-policy background -enabled true
$ efficiency policy create -vserver {SVM_Name} -policy {Efficiency_Prefix}12 -type scheduled -schedule 12 -duration 22 -qos-policy background -enabled true
$ efficiency policy create -vserver {SVM_Name} -policy {Efficiency_Prefix}13 -type scheduled -schedule 13 -duration 22 -qos-policy background -enabled true
$ efficiency policy create -vserver {SVM_Name} -policy {Efficiency_Prefix}14 -type scheduled -schedule 14 -duration 22 -qos-policy background -enabled true
$ efficiency policy create -vserver {SVM_Name} -policy {Efficiency_Prefix}15 -type scheduled -schedule 15 -duration 22 -qos-policy background -enabled true
$ efficiency policy create -vserver {SVM_Name} -policy {Efficiency_Prefix}16 -type scheduled -schedule 16 -duration 22 -qos-policy background -enabled true
$ efficiency policy create -vserver {SVM_Name} -policy {Efficiency_Prefix}17 -type scheduled -schedule 17 -duration 22 -qos-policy background -enabled true
$ efficiency policy create -vserver {SVM_Name} -policy {Efficiency_Prefix}18 -type scheduled -schedule 18 -duration 22 -qos-policy background -enabled true
$ efficiency policy create -vserver {SVM_Name} -policy {Efficiency_Prefix}19 -type scheduled -schedule 19 -duration 22 -qos-policy background -enabled true
$ efficiency policy create -vserver {SVM_Name} -policy {Efficiency_Prefix}20 -type scheduled -schedule 20 -duration 22 -qos-policy background -enabled true
$ efficiency policy create -vserver {SVM_Name} -policy {Efficiency_Prefix}21 -type scheduled -schedule 21 -duration 22 -qos-policy background -enabled true
$ efficiency policy create -vserver {SVM_Name} -policy {Efficiency_Prefix}22 -type scheduled -schedule 22 -duration 22 -qos-policy background -enabled true
$ efficiency policy create -vserver {SVM_Name} -policy {Efficiency_Prefix}23 -type scheduled -schedule 23 -duration 22 -qos-policy background -enabled true

按小时触发的快照策略

配合快照功能用。其中snapmirror-label标签为可选,当配置了SnapMirror时,可直接在对等端上放置快照。

要在所有SVM上分别建立所有策略。

需替换变量:SVM_Name为实际的SVM名称;Snapshot_Prefix为自定义的效率策略名称前缀;Label_Name为Snapmirror对等端名称(可选)。

$ snapshot policy create -policy {Snapshot_Prefix}0 -enabled true -schedule1 0 -count1 5 -vserver {SVM_Name} -snapmirror-label1 {Label_Name}
$ snapshot policy create -policy {Snapshot_Prefix}1 -enabled true -schedule1 1 -count1 5 -vserver {SVM_Name} -snapmirror-label1 {Label_Name}
$ snapshot policy create -policy {Snapshot_Prefix}2 -enabled true -schedule1 2 -count1 5 -vserver {SVM_Name} -snapmirror-label1 {Label_Name}
$ snapshot policy create -policy {Snapshot_Prefix}3 -enabled true -schedule1 3 -count1 5 -vserver {SVM_Name} -snapmirror-label1 {Label_Name}
$ snapshot policy create -policy {Snapshot_Prefix}4 -enabled true -schedule1 4 -count1 5 -vserver {SVM_Name} -snapmirror-label1 {Label_Name}
$ snapshot policy create -policy {Snapshot_Prefix}5 -enabled true -schedule1 5 -count1 5 -vserver {SVM_Name} -snapmirror-label1 {Label_Name}
$ snapshot policy create -policy {Snapshot_Prefix}6 -enabled true -schedule1 6 -count1 5 -vserver {SVM_Name} -snapmirror-label1 {Label_Name}
$ snapshot policy create -policy {Snapshot_Prefix}7 -enabled true -schedule1 7 -count1 5 -vserver {SVM_Name} -snapmirror-label1 {Label_Name}
$ snapshot policy create -policy {Snapshot_Prefix}8 -enabled true -schedule1 8 -count1 5 -vserver {SVM_Name} -snapmirror-label1 {Label_Name}
$ snapshot policy create -policy {Snapshot_Prefix}9 -enabled true -schedule1 9 -count1 5 -vserver {SVM_Name} -snapmirror-label1 {Label_Name}
$ snapshot policy create -policy {Snapshot_Prefix}10 -enabled true -schedule1 10 -count1 5 -vserver {SVM_Name} -snapmirror-label1 {Label_Name}
$ snapshot policy create -policy {Snapshot_Prefix}11 -enabled true -schedule1 11 -count1 5 -vserver {SVM_Name} -snapmirror-label1 {Label_Name}
$ snapshot policy create -policy {Snapshot_Prefix}12 -enabled true -schedule1 12 -count1 5 -vserver {SVM_Name} -snapmirror-label1 {Label_Name}
$ snapshot policy create -policy {Snapshot_Prefix}13 -enabled true -schedule1 13 -count1 5 -vserver {SVM_Name} -snapmirror-label1 {Label_Name}
$ snapshot policy create -policy {Snapshot_Prefix}14 -enabled true -schedule1 14 -count1 5 -vserver {SVM_Name} -snapmirror-label1 {Label_Name}
$ snapshot policy create -policy {Snapshot_Prefix}15 -enabled true -schedule1 15 -count1 5 -vserver {SVM_Name} -snapmirror-label1 {Label_Name}
$ snapshot policy create -policy {Snapshot_Prefix}16 -enabled true -schedule1 16 -count1 5 -vserver {SVM_Name} -snapmirror-label1 {Label_Name}
$ snapshot policy create -policy {Snapshot_Prefix}17 -enabled true -schedule1 17 -count1 5 -vserver {SVM_Name} -snapmirror-label1 {Label_Name}
$ snapshot policy create -policy {Snapshot_Prefix}18 -enabled true -schedule1 18 -count1 5 -vserver {SVM_Name} -snapmirror-label1 {Label_Name}
$ snapshot policy create -policy {Snapshot_Prefix}19 -enabled true -schedule1 19 -count1 5 -vserver {SVM_Name} -snapmirror-label1 {Label_Name}
$ snapshot policy create -policy {Snapshot_Prefix}20 -enabled true -schedule1 20 -count1 5 -vserver {SVM_Name} -snapmirror-label1 {Label_Name}
$ snapshot policy create -policy {Snapshot_Prefix}21 -enabled true -schedule1 21 -count1 5 -vserver {SVM_Name} -snapmirror-label1 {Label_Name}
$ snapshot policy create -policy {Snapshot_Prefix}22 -enabled true -schedule1 22 -count1 5 -vserver {SVM_Name} -snapmirror-label1 {Label_Name}
$ snapshot policy create -policy {Snapshot_Prefix}23 -enabled true -schedule1 23 -count1 5 -vserver {SVM_Name} -snapmirror-label1 {Label_Name}

END

0