Skip to main content

Move the constituents of a FlexGroup volume

Contributors netapp-thomi netapp-aherbin

You can move the constituents of a FlexGroup volume from one aggregate to another to balance the load when certain constituents experience more traffic. Moving constituents also helps in freeing up space on an aggregate for resizing the existing constituents.

What you'll need

To move a FlexGroup volume constituent that is in a SnapMirror relationship, you must have initialized the SnapMirror relationship.

About this task

You cannot perform a volume move operation while the constituents of the FlexGroup volume are being expanded.

Steps
  1. Identify the FlexGroup volume constituent that you want to move:

    volume show -vserver svm_name -is-constituent true

    cluster1::> volume show -vserver vs2 -is-constituent true
    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%
    ...
  2. Identify an aggregate to which you can move the FlexGroup volume constituent:

    volume move target-aggr show -vserver svm_name -volume vol_constituent_name

    The available space in the aggregate that you select must be greater than the size of the FlexGroup volume constituent that you are moving.

    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.
  3. Verify that the FlexGroup volume constituent can be moved to the intended aggregate:

    volume move start -vserver svm_name -volume vol_constituent_name -destination-aggregate aggr_name -perform-validation-only true

    cluster1::> volume move start -vserver vs2 -volume fg1_0002 -destination-aggregate node12a_aggr3 -perform-validation-only true
    Validation succeeded.
  4. Move the FlexGroup volume constituent:

    volume move start -vserver svm_name -volume vol_constituent_name -destination-aggregate aggr_name [-allow-mixed-aggr-types {true|false}]

    The volume move operation runs as a background process.

    Beginning with ONTAP 9.5, you can move FlexGroup volume constituents from a Fabric Pool to a non-Fabric Pool, or vice versa by setting the -allow-mixed-aggr-types parameter to true. By default, the -allow-mixed-aggr-types option is set to false.

    Note

    You cannot use the volume move command for enabling encryption on FlexGroup volumes.

    cluster1::> volume move start -vserver vs2 -volume fg1_002 -destination-aggregate node12a_aggr3
    Note

    If the volume move operation fails due to an active SnapMirror operation, you should abort the SnapMirror operation by using the snapmirror abort -h command. In some cases, the SnapMirror abort operation might also fail. In such situations, you should abort the volume move operation and retry later.

  5. Verify the state of the volume move operation:

    volume move show -volume vol_constituent_name

    The following example shows the state of a FlexGroup constituent volume that completed the replication phase and is in the cutover phase of the volume move operation:

    cluster1::> volume move show -volume fg1_002
    Vserver   Volume     State    Move Phase  Percent-Complete Time-To-Complete
    --------- ---------- -------- ----------  ---------------- ----------------
    vs2       fg1_002    healthy  cutover     -                -