移动卷

确定存在存储容量不平衡后,可以将 FlexVol 卷移动到同一个 Storage Virtual Machine (SVM) 的其他聚合或节点(或者也可以移动到其他节点的其他聚合)以平衡存储容量。

关于此任务

管理员之前已确定正在访问卷中的数据的客户端能够承受最多 120 秒的 I/O 超时。

步骤

  1. 如果要移动的是数据保护镜像,而且尚未初始化镜像关系,请使用 snapmirror initialize 命令初始化镜像关系。
    必须先初始化数据保护镜像关系,然后才能移动其中一个卷。
  2. 使用 volume move target-aggr show 命令确定可以将卷移动到哪个聚合。
    所选聚合必须具有用于容纳该卷的足够空间;也就是说,其可用大小必须大于要移动的卷。
    示例
    以下示例显示了可以将卷 vs2 移动到列出的任意聚合:
    cluster1::> volume move target-aggr show -vserver vs2 -volume user_max
    Aggregate Name   Available Size   Storage Type
    --------------   --------------   ------------
    aggr2            467.9GB          FCAL
    node12a_aggr3    10.34GB          FCAL
    node12a_aggr2    10.36GB          FCAL
    node12a_aggr1    10.36GB          FCAL
    node12a_aggr4    10.36GB          FCAL
    5 entries were displayed.
  3. 验证是否可以将卷移动到预定聚合,方法是使用 volume move start -perform-validation-only 命令运行验证检查。
  4. 使用 volume move start 命令移动卷。
    示例
    以下命令可将 vs2 SVM 上的 user_max 卷移动到 node12a_aggr3 聚合。移动操作作为后台进程运行。
    cluster1::> volume move start -vserver vs2 -volume user_max
    -destination-aggregate node12a_aggr3 -cutover-window 120
  5. 使用 volume move show 命令确定卷移动操作的状态。
    示例
    以下示例显示了已完成复制阶段并且正处于转换阶段的卷移动的状态。
    cluster1::> volume move show                                                        
    Vserver   Volume     State    Move Phase  Percent-Complete Time-To-Complete 
    --------- ---------- -------- ----------  ---------------- ---------------- 
    vs2       user_max   healthy  cutover     -                -