跳到主要内容

重定位聚合所有权

只能在 HA 对中两个节点之间更改聚合的所有权。

关于本任务

  • 因为聚合重定位操作期间会自动验证卷计数限制,所以无需手动执行此项检查。

    如果卷计数超出支持的限制,聚合重定位操作将失败,并显示相关错误消息。

  • 如果正在对源节点或目标节点执行系统级操作,不应启动聚合重定位;同样,不应在聚合重定位期间启动这些操作。

    这些操作可包括:
    • 接管
    • 交还
    • 关闭
    • 另一项聚合重定位操作
    • 更改磁盘所有权
    • 聚合或卷配置操作
    • 更换存储控制器
    • 升级 ONTAP
    • 恢复 ONTAP
  • 如果采用了 MetroCluster 配置,不应在执行灾难恢复操作(切换修复切回)期间启动聚合转移。

  • 如果采用了 MetroCluster 配置,并对切换的聚合启动聚合重定位,可能会因为超过 DR 伙伴的卷限制计数而导致操作失败。

  • 不应对已损坏或正在维护的聚合启动聚合重定位。

  • 启动聚合重定位之前,应保存源节点和目标节点上的所有核心转储。

  1. 查看节点上的聚合以确认要移动哪些聚合,然后确保这些聚合已联机且状态正常:storage aggregate show -node source-node

    示例

    以下命令显示了集群中四个节点上的六个聚合。所有聚合均已联机。Node1 和 Node3 组成一个 HA 对,Node2 和 Node4 组成一个 HA 对
    cluster::> storage aggregate show
    Aggregate Size Available Used% State #Vols Nodes RAID Status
    --------- -------- --------- ----- ------- ------ ------ -----------
    aggr_0 239.0GB 11.13GB 95% online 1 node1 raid_dp,
    normal
    aggr_1 239.0GB 11.13GB 95% online 1 node1 raid_dp,
    normal
    aggr_2 239.0GB 11.13GB 95% online 1 node2 raid_dp,
    normal
    aggr_3 239.0GB 11.13GB 95% online 1 node2 raid_dp,
    normal
    aggr_4 239.0GB 238.9GB 0% online 5 node3 raid_dp,
    normal
    aggr_5 239.0GB 239.0GB 0% online 4 node4 raid_dp,
    normal
    6 entries were displayed.
  2. 发出以下命令以启动聚合重定位:storage aggregate relocation start -aggregate-list aggregate-0, aggregate-1... -node source-node -destination destination-node
    以下命令将聚合 aggr_0 和 aggr_1 从 Node1 移到 Node3。Node3 是 Node1 的 HA 伙伴。这些聚合只能在该 HA 对内移动。
    cluster::> storage aggregate relocation start -aggregate-list aggr_0, aggr_1 -node node1 -destination node3
    Run the storage aggregate relocation show command to check relocation status.
    node1::storage aggregate>
  3. 使用 storage aggregate relocation show 命令监控聚合重定位的进度:storage aggregate relocation show -node source-node

    示例

    以下命令显示了正在移到 Node3 的聚合的进度:
    cluster::> storage aggregate relocation show -node node1 
    Source Aggregate Destination Relocation Status
    ------ ----------- ------------- ------------------------
    node1
    aggr_0 node3 In progress, module: wafl
    aggr_1 node3 Not attempted yet
    2 entries were displayed.
    node1::storage aggregate>

    重定位完成后,此命令的输出会显示每个聚合的重定位状态为 Done