跳转到主内容

什么是自动平衡聚合?

Views:
13
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
core
Last Updated:

可不使用  

适用于

  • ONTAP 9 
  • 集群模式 Data ONTAP 8.3    
     

问题与解答

什么是自动平衡聚合?

集群模式 Data ONTAP 提供通过 CLI 和 ZAPI 进行无中断卷移动的功能。
卷移动旨在供管理员使用、以无中断的方式在卷之间移动卷、原因有多种、包括聚合开始用尽空间。

传统上,监控和响应低空间条件是系统管理员的责任。
Data ONTAP 8.3 和更高版本中的自动平衡聚合( ABA )功能会在需要在聚合之间移动卷时通知系统管理员,以实现此工作流的自动化。
启用后、平衡器将持续监控聚合的可用空间并在超过可配置阈值时采取措施。

在从 Data ONTAP 8.3 开始的当前发行版中:

  1. 默认情况下, ABA 将被禁用。
  2. 默认情况下,所有聚合都将被删除。
    客户必须选择要由平衡器监控的聚合。
  3. 启用后,它将默认为推荐模式。它不会启动移动;而是会生成一个建议移动列表。
  4. 建议在当前的 ABA 发行版中仅使用“推荐”模式
  5. 平衡器存储的所有信息都将是内核信息、而不是持久性信息。在对管理网关进程进行任何重置后、平衡器将需要重构并初始化它所使用的任何数据。 
聚合和卷选择规则:

所有健康的证券及期货聚合及其灵活卷均有资格获得自动平衡聚合。

如果满足以下一个或多个条件,则不会选择聚合:

  1. 聚合不健康
  2. 聚合已分区
  3. 聚合处于镜像关系中
  4. 聚合是 CFO 聚合

如果满足以下一个或多个条件,则不会选择灵活卷:

  1. 它涉及 SnapMirror 关系
  2. 它可以是克隆或具有克隆
  3. 已在最近 48 小时内移动
  4. 已超过 100 IOPS 阈值(诊断选项volume-activity-threshold
  5. 在过去 24 小时内超过了上述 IOPS 阈值( diag 选项volume-inactive-delay-threshold
  6. 是 cserver 元数据卷

注意:在聚合上启用自动平衡功能时,将自动为其上的所有卷启用该功能。用户可以通过运行以下命令按卷禁用该功能:

cluster_name::*> vol modify -volume <volume_name> -is-autobalance-eligible false
 

注:无限卷将被排除,因为它们可以使用自动平衡卷功能进行平衡。 

如何启用聚合自动平衡:


cluster-us1::> set advanced

Warning: These advanced commands are potentially dangerous; use them only when
         directed to do so by NetApp personnel.
Do you want to continue? {y|n}: y

cluster-us1::*>
cluster-us1::*> autobalance aggregate config modify -is-enabled true -aggregate-unbalanced-threshold-percent 70 -aggregate-available-threshold-percent 40
cluster-us1::*>
cluster-us1::*> autobalance aggregate config show
                 Is the Auto Balance Aggregate Feature Enabled: true
         Threshold When Aggregate Is Considered Unbalanced (%): 70
           Threshold When Aggregate Is Considered Balanced (%): 40

cluster-us1::*>
 

如何在启用自动平衡的情况下创建聚合:


cluster-us1::*> aggr create -aggregate adb_aggr1 -diskcount 12 -is-autobalance-eligible true -node cluster-us1-01

如何在现有聚合上启用自动平衡:


cluster-us1::*> aggr modify -aggregate adb_aggr3 -is-autobalance-eligible true

如何检查聚合的自动平衡状态:


cluster-us1::*> autobalance aggregate show-aggregate-state
                      Aggregate: aggr0
                     Total Size: 753.2GB
                      Used Size: 718.5GB
                  Outgoing Size: 0B
                  Incoming Size: 0B
 Aggregate Used Space Threshold: 527.2GB
                      RAID Type: raid_dp
                Home Cluster ID: b6044cc9-71e4-11e5-b2a3-00a09873b152
                     Attributes: CFO
                                 Excluded
                                 Mroot

                      Aggregate: adb_aggr1
                     Total Size: 224.1GB
                      Used Size: 147.GB
                  Outgoing Size: 0B
                  Incoming Size: 0B
 Aggregate Used Space Threshold: 156.9GB
                      RAID Type: raid_dp
                Home Cluster ID: b6044cc9-71e4-11e5-b2a3-00a09873b152
                     Attributes: Balancer Eligible
                                 Target For Balancing

                      Aggregate: adb_aggr3
                     Total Size: 224.1GB
                      Used Size: 160GB
                  Outgoing Size: 0B
                  Incoming Size: 0B
 Aggregate Used Space Threshold: 156.9GB
                      RAID Type: raid_dp
                Home Cluster ID: b6044cc9-71e4-11e5-b2a3-00a09873b152
                     Attributes: Balancer Eligible
                                 Target For Balancing


3 entries were displayed.

cluster-us1::*>

如何检查卷移动建议:

当聚合达到预先配置的阈值时,控制台消息将被发送出去。EMS 日志中将报告类似以下内容的 EMS 消息:

Fri Oct 16 11:39:27 UTC [cluster-us1: mgwd: mgmt.aba.move.unbalanced:info]: Auto Balance Aggregate has detected that aggregate adb_aggr1 has exceeded the threshold of 118325182509056. The aggregate currently shows a usage of 109960713981952.
 

此外、运行以下命令以手动验证:

cluster-us1::*> volume move recommend show
(volume move recommend show)

                                  Source       Src%     Destination     Dst %
Vserver     Volume      Time Stamp         Aggregate     After    Aggregate      After
----------- ----------- -----------------   -----------   -----    -----------     -----
vs0        volA        3/2/2013 21:11:00    adb_aggr1    35     adb_aggr3         35
1 entries were displayed.

cluster-us1::*> autobalance aggregate show-unbalanced-volume-state

               Last Checked On: 9/29/2015 15:40:20

                        Volume: volA
                     Footprint: 20.20MB
 Last Time Over IOPS Threshold: -
                   Last Placed: 9/28/2015 14:18:15
                    Attributes: Ready

                   Volume: test                                           
                Footprint: 20.20MB                                        
 Last Time Over IOPS Threshold: 9/12/2015 16:20:18                             
                   Last Placed: 9/11/2015 10:16:42                             
                    Attributes: Over IOPS Threshold                            
                                In Mirror                                      
                                Stabilizing                                    
                  

cluster-us1::*>

其他信息

相关链接
ONTAP 9.x :自动平衡聚合配置命令