跳到主要内容

执行聚合修复以及恢复镜像(MetroCluster FC 配置)

更换硬件并分配磁盘后,可以执行 MetroCluster 修复操作。然后,必须确认聚合已镜像,并在必要时重新启动镜像。

  1. 在灾难站点上执行两个修复阶段(聚合修复和根修复):

    示例

    cluster_B::> metrocluster heal -phase aggregates

    cluster_B::> metrocluster heal -phase root aggregates

  2. 监控修复状态并验证聚合处于 resyncing 还是 mirrored 状态:storage aggregate show -node local
    如果聚合显示此状态...则...
    resyncing无需任何操作。

    让聚合完成再同步。

    mirror degraded继续执行3
    mirrored, normal无需任何操作。
    unknown, offline如果已更换灾难站点上的所有磁盘,则根聚合会显示此状态。

    示例

    cluster_B::> storage aggregate show -node local 

    Aggregate Size Available Used% State #Vols Nodes RAID Status
    --------- -------- --------- ----- ------- ------ ---------- ------------
    node_B_1_aggr1
    227.1GB 11.00GB 95% online 1 node_B_1 raid_dp,
    resyncing
    NodeA_1_aggr2
    430.3GB 28.02GB 93% online 2 node_B_1 raid_dp,
    mirror
    degraded
    node_B_1_aggr3
    812.8GB 85.37GB 89% online 5 node_B_1 raid_dp,
    mirrored,
    normal
    3 entries were displayed.

    cluster_B::>

    在以下示例中,三个聚合都处于不同的状态:

    Node(节点)State
    node_B_1_aggr1resyncing
    node_B_1_aggr2mirror degraded
    node_B_1_aggr3mirrored, normal
  3. 如果一个或多个丛保持脱机状态,则需要执行额外的步骤来重建镜像。

    在上表中,必须重建 node_B_1_aggr2 的镜像。

    1. 查看聚合的详细信息以确定是否有任何发生故障的丛:storage aggregate show -r -aggregate node_B_1_aggr2

      示例

      在以下示例中,丛 /node_B_1_aggr2/plex0 处于故障状态:

      cluster_B::> storage aggregate show -r -aggregate node_B_1_aggr2

      Owner Node: node_B_1
      Aggregate: node_B_1_aggr2 (online, raid_dp, mirror degraded) (block checksums)
      Plex: /node_B_1_aggr2/plex0 (offline, failed, inactive, pool0)
      RAID Group /node_B_1_aggr2/plex0/rg0 (partial)
      Usable Physical
      Position Disk Pool Type RPM Size Size Status
      -------- ------------------------ ---- ----- ------ -------- -------- ----------

      Plex: /node_B_1_aggr2/plex1 (online, normal, active, pool1)
      RAID Group /node_B_1_aggr2/plex1/rg0 (normal, block checksums)
      Usable Physical
      Position Disk Pool Type RPM Size Size Status
      -------- ------------------------ ---- ----- ------ -------- -------- ----------
      dparity 1.44.8 1 SAS 15000 265.6GB 273.5GB (normal)
      parity 1.41.11 1 SAS 15000 265.6GB 273.5GB (normal)
      data 1.42.8 1 SAS 15000 265.6GB 273.5GB (normal)
      data 1.43.11 1 SAS 15000 265.6GB 273.5GB (normal)
      data 1.44.9 1 SAS 15000 265.6GB 273.5GB (normal)
      data 1.43.18 1 SAS 15000 265.6GB 273.5GB (normal)
      6 entries were displayed.

      cluster_B::>
    2. 删除发生故障的丛:storage aggregate plex delete -aggregate aggregate-name -plex plex
    3. 重新建立镜像:storage aggregate mirror -aggregate aggregate-name
    4. 监控丛的再同步和镜像状态,直到重新建立所有镜像并且所有聚合都显示 mirrored, normal 状态:storage aggregate show