移动 FlexGroup 卷的成分卷
可在不同聚合间移动 FlexGroup 卷的成分卷,从而在某些成分卷流量较多时平衡负载。对现有成分卷调整大小后,移动成分卷还有助于释放聚合上的空间。
开始之前
移动处于 SnapMirror 关系中的 FlexGroup 卷成分卷,您必须已初始化 SnapMirror 关系。
关于本任务
无法在扩展 FlexGroup 卷的成分卷时执行卷移动操作。
- 确定要移动的 FlexGroup 卷成分卷:volume show -vserver svm_name -is-constituent *
示例
cluster1::> volume show -vserver vs2 -is-constituent *
Vserver Volume Aggregate State Type Size Available Used%
--------- ------------ ------------ ---------- ---- ---------- ---------- -----
vs2 fg1 - online RW 400TB 15.12TB 62%
vs2 fg1__0001 aggr1 online RW 25TB 8.12MB 59%
vs2 fg1__0002 aggr2 online RW 25TB 2.50TB 90%
... - 确定要将 FlexGroup 卷的成分卷移动到的聚合:volume move target-aggr show -vserver svm_name -volume vol_constituent_name 所选聚合中的可用空间必须大于要移动的 FlexGroup 卷成分卷的大小。
示例
cluster1::> volume move target-aggr show -vserver vs2 -volume fg1_0002
Aggregate Name Available Size Storage Type
-------------- -------------- ------------
aggr2 467.9TB hdd
node12a_aggr3 100.34TB hdd
node12a_aggr2 100.36TB hdd
node12a_aggr1 100.36TB hdd
node12a_aggr4 100.36TB hdd
5 entries were displayed. - 验证是否可将 FlexGroup 卷成分卷移动到目标聚合:volume move start -vserver svm_name -volume vol_constituent_name -perform-validation-only true
示例
cluster1::> volume move start -vserver vs2 -volume fg1_0002 -destination-aggregate node12a_aggr3 -perform-validation-only true
Validation succeeded. - 移动 FlexGroup 卷的成分卷:volume move start -vserver svm_name -volume vol_constituent_name -destination-aggregate aggr_name [-allow-mixed-aggr-types {true|false}] 卷移动操作作为后台进程运行。
从 ONTAP 9.5 开始,可通过将 -allow-mixed-aggr-types 参数设置为 true,将 FlexGroup 卷的成分卷从 Fabric Pool 移到非 Fabric Pool,反之亦然。默认情况下,-allow-mixed-aggr-types 选项设置为 false 。
注无法使用volume move 命令在 FlexGroup 卷上启用加密。 示例
cluster1::> volume move start -vserver vs2 -volume fg1_002 -destination-aggregate node12a_aggr3
Troubleshooting如果活动 SnapMirror 操作导致卷移动操作失败,应使用snapmirror abort -h 命令中止 SnapMirror 操作。 在某些情况下,SnapMirror 终止操作也有可能失败。在这种情况下,应中止卷移动操作并在稍后重试。
- 验证卷移动操作的状态:volume move show -volume vol_constituent_name
示例
以下示例显示卷移动操作已完成复制阶段,正处于转换阶段的 FlexGroup 成分卷的状态:
cluster1::> volume move show -volume fg1_002
Vserver Volume State Move Phase Percent-Complete Time-To-Complete
--------- ---------- -------- ---------- ---------------- ----------------
vs2 fg1_002 healthy cutover - -
相关信息
提供反馈