Dell Unity:如何创建包含两个以上规则的快照计划
Summary: 本文介绍如何使用 CLI 创建包含两个以上规则的快照计划,而这无法使用 UI 完成(用户可更正)
This article applies to
This article does not apply to
This article is not tied to any specific product.
Not all product versions are identified in this article.
Instructions
您可能需要创建包含多个规则的快照计划,例如:
- 我们保留 24 小时的每小时检查点
- 我们保留 7 天的夜间检查点
- 每周检查点,保留 4 周
但是,您无法使用 UI 执行此作,因为 UI 允许每个计划最多两个规则。
#> uemcli -no /sys/task/sched -id snapSch_19 show 1: ID = snapSch_19 Name = MySchedule Type = User Rules = SchedRule_93, SchedRule_94 #> uemcli -no /sys/task/rule -id SchedRule_93 show 1: ID = SchedRule_93 Type = HoursInterval Frequency = Every 1h Keep for = 1d Allow auto-delete = no Access = Checkpoint #> uemcli -no /sys/task/rule -id SchedRule_94 show 1: ID = SchedRule_94 Type = WeekDaysList Frequency = Every Mon, Tue, Wed, Thu, Fri, Sat, Sun at 00:00 Keep for = 7d Allow auto-delete = no Access = Checkpoint
并且最多可以为 LUN 分配一个计划,因此您无法满足要求。
但是,您可以使用 CLI 满足要求,因此在我们的示例中,我们使用 UI 创建了包含前两条规则的快照计划 (snapSch_19),然后通过以下命令使用 CLI 将第三条规则添加到计划中:
#> uemcli -no -u <username> -p <password> /sys/task/rule create -schedId snapSch_19 -type weekdayslist -days sat -at 12:00 -keepFor 31d -access ckpt
结果如下,符合我们的要求:
#> uemcli -no /sys/task/sched -id snapSch_19 show 1: ID = snapSch_19 Name = MySchedule Type = User Rules = SchedRule_93, SchedRule_94, SchedRule_95 #> uemcli -no /sys/task/rule -id SchedRule_93 show 1: ID = SchedRule_93 Type = HoursInterval Frequency = Every 1h Keep for = 1d Allow auto-delete = no Access = Checkpoint #> uemcli -no /sys/task/rule -id SchedRule_94 show 1: ID = SchedRule_94 Type = WeekDaysList Frequency = Every Mon, Tue, Wed, Thu, Fri, Sat, Sun at 00:00 Keep for = 7d Allow auto-delete = no Access = Checkpoint #> uemcli -no /sys/task/rule -id SchedRule_95 show 1: ID = SchedRule_95 Type = WeekDaysList Frequency = Every Sat at 12:00 Keep for = 31d Allow auto-delete = no Access = Checkpoint
我还能够在同一计划中添加更多规则,但 UI 仍然只能显示前两个规则!
Affected Products
Dell EMC Unity FamilyProducts
Dell Unity 300, Dell EMC Unity 300F, Dell EMC Unity 400, Dell EMC Unity 400F, Dell EMC Unity 500, Dell EMC Unity 500F, Dell EMC Unity 600, Dell EMC Unity 600F, Dell EMC Unity Family |Dell EMC Unity All Flash, Dell EMC Unity Family
, Dell EMC Unity Hybrid, Dell EMC UnityVSA Professional Edition/Unity Cloud Edition
...
Article Properties
Article Number: 000022496
Article Type: How To
Last Modified: 02 Dec 2025
Version: 4
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.