在 MetroCluster 配置中移动元数据卷

您可以将元数据卷从 MetroCluster 配置中的一个聚合移动到另一个聚合。如果源聚合被停用或取消镜像,或者由于其他原因而使此聚合不再符合条件,则您可能需要移动元数据卷。

开始之前

步骤

  1. Set the privilege level to advanced: 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_14C00D4AC9F311E7922800 A0984395F1聚合节点 _A_1_aggR1 移动聚合节点 _A1_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. Return to the admin privilege level: set -privilege admin