跳转到主内容

什么是聚合?

Views:
310
Visibility:
Public
Votes:
1
Category:
data-ontap-8
Specialty:
core
Last Updated:

可不使用  

适用场景

  • 集群模式 Data ONTAP
  • Data ONTAP 7-模式

问题解答

什么是聚合?

聚合是一组磁盘(或分区),排列在一个或多个 RAID 组中。  它是 ONTAP 中最基本的存储对象,需要它才能为已连接的主机配置空间。

如何创建聚合?
  • 在 7- 模式[1]中,使用带有所需参数的 aggr create 命令。
  • 在集群模式 Data ONTAP 中,使用[2]集群 Shell 中的 storage aggregate create 命令以及所需的参数

请注意,要在给定节点上创建聚合,所有所需磁盘都必须归相应节点所有。

聚合是否可以包含来自不同磁盘架的磁盘?

可以、可以使用不同磁盘架上的磁盘创建聚合。

如何查看聚合详细信息?

可以使用多个命令来查看聚合详细信息。  具体命令取决于所需信息的类型。  最常见的命令如图所示。

  • 要确定聚合的物理大小,请使用 df -a <aggregate name> 查看相关聚合的空间使用量。
  • 要查看给定聚合中的物理磁盘,可以使用类似于的输出运行 aggr status -r <aggregate name> 命令:
7-模式:

示例:

controller> aggr status -r aggr0
Aggregate aggr0 (online, raid_dp) (block checksums)
  Plex /aggr0/plex0 (online, normal, active)
   RAID group /aggr0/plex0/rg0 (normal)

    RAID Disk Device      HA  SHELF BAY CHAN Pool Type  RPM  Used (MB/blks)   Phys (MB/blks)
    --------- ------      ------------- ---- ---- ---- ----- --------------   --------------
    dparity   0a.16       0a   1   0   FC:A   -  FCAL 15000 136000/278528000  137104/280790184
    parity   0a.17       0a   1   1   FC:A   -  FCAL 15000 136000/278528000  137104/280790184
    data    0c.00.1      0c   0   1   SA:B   -  SAS  15000 136000/278528000  280104/573653840

集群模式 Data ONTAP

示例:

cluster1::> aggr status -r aggr1_node1
Owner_Node: cluster1-01
 Aggregate: aggr1_node1 (online, raid_dp) (block checksums)
  Plex: /aggr1_node1/plex0 (online, normal, active, pool0)
  RAID Group /aggr1_node1/plex0/rg0 (normal, block checksums)
                                Usable Physical
   Position Disk             Pool Type    RPM    Size    Size Status
   -------- --------------------------- ---- ----- ------ -------- -------- ----------
   dparity  1.1.0             0   BSAS   7200   2.42TB   2.43TB (normal)
   parity   1.1.1             0   BSAS   7200   2.42TB   2.43TB (normal)
   data    1.1.2             0   BSAS   7200   2.42TB   2.43TB (normal)
   data    1.1.3             0   BSAS   7200   2.42TB   2.43TB (normal)
   data    1.1.5             0   BSAS   7200   2.42TB   2.43TB (normal)
   data    1.1.6             0   BSAS   7200   2.42TB   2.43TB (normal)
6 entries were displayed.​

要查看特定聚合详细信息,请使用以下命令:

7- 模式:
controller> aggr status -v <aggr name>

集群模式 Data ONTAP :
cluster1::> node run -node <node name> -command "aggr status -v <aggr name>"

cluster1::> aggr show <aggr name> -instance

如何处理失败的聚合?

当一个或多个 RAID 组脱机时,聚合可能已失败。在聚合恢复联机之前,需要确定并修复根发生原因 。
请致电 NetApp 技术支持以获得帮助。

如何处理外部聚合?

在集群模式 Data ONTAP 中,将磁盘架从其他集群(或 7- 模式系统)添加到节点,任何现有聚合或聚合的部分时,该磁盘架上的磁盘将标记为外部磁盘,属于该聚合的驱动器将标记为孤立磁盘。更换故障磁盘后,也可能会遇到此问题描述 。

例如,聚合可以在aggr status命令下显示如下:

aggr0(1) failed

这是由于磁盘未置零(且包含 RAID 标签),因此会保留早期 / 不同系统中的聚合信息而导致的。只有在使用节点 Shell 时,才会显示这些外部聚合。

我创建了一个聚合,但它不会显示在 OnCommand System Manager 中用于创建卷的列表中。

检查新聚合是否位于可用于此 SVM 的聚合列表中:

cluster1::> vserver show -vserver <name> -fields aggr-list

导致聚合降级的原因是什么?

当磁盘出现故障时,Data ONTAP 可以继续提供数据,但必须使用 RAID 奇偶校验重建故障磁盘的数据。如果没有可用的备用磁盘来启动重建,则聚合将降级。

在以下情况下,RAID 组将进入降级模式:

  • RAID4 组中有单个磁盘出现故障。
  • RAID-DP RAID 组中的一个或两个磁盘出现故障。

注意:如果某个聚合至少包含一个 RAID 组,其中存在未进行重建的双磁盘故障(仅限 RAID-DP 聚合),则该聚合将处于双降级状态。

  • Data ONTAP 已使磁盘脱机(例如 磁盘固件更新)。 

将脱机磁盘重新联机后,RAID 组恢复正常模式。

如何识别降级的聚合?

以下示例显示了一个 RAID 组,其中包含 1 个故障磁盘,没有可用于重建的备用磁盘。

集群模式 Data ONTAP

Cluster::*> aggr show aggr1 -fields state,raidstatus
aggregate raidstatus                     state
--------- ------------------------------ ------
aggr1     raid_dp, reconstruct, degraded online


7-模式:

Node> aggr status aggr1
           Aggr State           Status                Options
          aggr1 online          raid_dp, aggr         nosnap=on
                                reconstruct
                                degraded
                                64-bit

                Plex /aggr1/plex0: online, normal, active
                    RAID group /aggr1/plex0/rg0: reconstruction 5% completed, block checksums
    
    
Node> sysconfig -r                  (Note: aggr status -r provides the same output)
Aggregate aggr1 (online, raid_dp, reconstruct, degraded) (block checksums)
  Plex /aggr1/plex0 (online, normal, active, pool0)
    RAID group /aggr1/plex0/rg0 (reconstruction 17% completed, block checksums)


以下示例显示了一个降级聚合,其中包含一个降级和双降级 RAID 组。 
(注意:要查看双降级 RAID 组,必须从 nodeshell 运行命令。这些命令与 7- 模式中使用的命令相同)

Cluster::*> aggr show aggr2 -fields state,raidstatus
aggregate raidstatus        state
--------- ----------------- ------
aggr2     raid_dp, degraded online

Cluster::*> node run -node node_name aggr status -r aggr2
Aggregate aggr2 (online, raid_dp, degraded) (block checksums)
  Plex /aggr2/plex0 (online, normal, active, pool0)
    RAID group /aggr2/plex0/rg0 (degraded, block checksums)

      RAID Disk Device          HA  SHELF BAY CHAN Pool Type  RPM  Used (MB/blks)    Phys (MB/blks)
      --------- ------          ------------- ---- ---- ---- ----- --------------    --------------
      dparity   FAILED                  N/A                        2538546/ -
      parity    3c.10.11        3c    10  11  SA:B   0  BSAS  7200 2538546/5198943744 2543634/5209362816
      data      3c.10.12        3c    10  12  SA:B   0  BSAS  7200 2538546/5198943744 2543634/5209362816
      data      3c.10.13        3c    10  13  SA:B   0  BSAS  7200 2538546/5198943744 2543634/5209362816
      data      3c.10.14        3c    10  14  SA:B   0  BSAS  7200 2538546/5198943744 2543634/5209362816

    RAID group /aggr2/plex0/rg1 (double degraded, block checksums)

      RAID Disk Device          HA  SHELF BAY CHAN Pool Type  RPM  Used (MB/blks)    Phys (MB/blks)
      --------- ------          ------------- ---- ---- ---- ----- --------------    --------------
      dparity   FAILED                  N/A                        2538546/ -
      parity    3c.10.16        3c    10  16  SA:B   0  BSAS  7200 2538546/5198943744 2543634/5209362816
      data      FAILED                  N/A                        2538546/ -
      data      3c.10.18        3c    10  18  SA:B   0  BSAS  7200 2538546/5198943744 2543634/5209362816
      data      3c.10.19        3c    10  19  SA:B   0  BSAS  7200 2538546/5198943744 2543634/5209362816

如果 aggr 已降级,该怎么办?

更换故障磁盘。将磁盘重建到备用磁盘后, RAID 组将恢复正常模式。

 

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.