跳到主要内容

在 MetroCluster 配置中移动元数据卷

可以将元数据卷从 MetroCluster 配置中的一个聚合移动到另一个聚合。您可能希望在源聚合已停用或取消镜像的情况下移动元数据卷,或者出于其他导致聚合不合格的原因进行此操作。

开始之前

  • 必须具有集群管理员权限才能执行此任务。

  • 目标聚合必须是镜像聚合,不应处于降级状态。

  • 目标聚合中的可用空间必须大于要移动的元数据卷。

  1. 将权限级别设置为高级:set -privilege advanced
  2. 确定应移动的元数据卷:volume show MDV_CRS*

    示例

    Cluster_A::*> volume show MDV_CRS*
    Vserver Volume Aggregate State Type Size Available Used%
    --------- ------------ ------------ ---------- ---- ---------- ---------- -----
    Cluster_A
    MDV_CRS_14c00d4ac9f311e7922800a0984395f1_A
    Node_A_1_aggr1
    online RW 10GB 9.50GB 5%
    Cluster_A
    MDV_CRS_14c00d4ac9f311e7922800a0984395f1_B
    Node_A_2_aggr1
    online RW 10GB 9.50GB 5%
    Cluster_A
    MDV_CRS_15035e66c9f311e7902700a098439625_A
    Node_B_1_aggr1
    - RW - - -
    Cluster_A
    MDV_CRS_15035e66c9f311e7902700a098439625_B
    Node_B_2_aggr1
    - RW - - -
    4 entries were displayed.

    Cluster_A::>

  3. 确定符合条件的目标聚合:metrocluster check config-replication show-aggregate-eligibility

    示例

    以下命令将确定 cluster_A 中可以托管元数据卷的聚合:

    Cluster_A::*> metrocluster check config-replication show-aggregate-eligibility

    Aggregate Hosted Config Replication Vols Host Addl Vols Comments
    ------------ ------------------------------------------ -------------- --------
    Node_A_1_aggr0 - false Root Aggregate
    Node_A_2_aggr0 - false Root Aggregate
    Node_A_1_aggr1 MDV_CRS_1bc7134a5ddf11e3b63f123478563412_A true -
    Node_A_2_aggr1 MDV_CRS_1bc7134a5ddf11e3b63f123478563412_B true -
    Node_A_1_aggr2 - true
    Node_A_2_aggr2 - true
    Node_A_1_Aggr3 - false Unable to determine available space of aggregate
    Node_A_1_aggr5 - false Unable to determine mirror configuration
    Node_A_2_aggr6 - false Mirror configuration does not match requirement
    Node_B_1_aggr4 - false NonLocal Aggregate


    在前面的示例中,Node_A_1_aggr2 和 Node_A_2_aggr2 符合条件。
  4. 开始卷移动操作:volume move start -vserver svm_name -volume metadata_volume_name -destination-aggregate destinataion_aggregate_name

    示例

    以下命令将元数据卷 MDV_CRS_14c00d4ac9f311e7922800a0984395f1aggregate Node_A_1_aggr1 移动到 aggregate Node_A_1_aggr2
    Cluster_A::*> volume move start -vserver svm_cluster_A -volume MDV_CRS_14c00d4ac9f311e7922800a0984395f1 
    -destination-aggregate aggr_cluster_A_02_01

    Warning: You are about to modify the system volume
    "MDV_CRS_9da04864ca6011e7b82e0050568be9fe_A". This may cause severe
    performance or stability problems. Do not proceed unless directed to
    do so by support. Do you want to proceed? {y|n}: y
    [Job 109] Job is queued: Move "MDV_CRS_9da04864ca6011e7b82e0050568be9fe_A" in Vserver
    "svm_cluster_A" to aggregate "aggr_cluster_A_02_01".
    Use the "volume move show -vserver svm_cluster_A -volume
    MDV_CRS_9da04864ca6011e7b82e0050568be9fe_A" command to view the status of this operation.
  5. 验证卷移动操作的状态:volume move show -volume vol_constituent_name
  6. 恢复为管理员权限级别:set -privilege admin