Before you start moving a volume through the command-line interface, you must identify the aggregate to which you will move the volume. The volume move target-aggr show command identifies all possible destination aggregates for you to evaluate for your specific situation.
Steps
- Identify the volume's SVM and its current aggregate (known as the source aggregate) by using the volume show command with the -volume and -instance parameters.
Example
cluster1::> volume show -volume vol1 -instance
Vserver Name: SVM1
Volume Name: vol1
Aggregate Name: aggr1
...
- Display all aggregates that are potential destinations for this volume by using the volume move target-aggr show command.
The output includes only data aggregates with enough available capacity for the volume.
Example
cluster1::> volume move target-aggr show -vserver SVM1 -volume vol1
Aggregate Name Available Size Storage Type
-------------- -------------- ------------
aggr3 763.8GB SSD
aggr4 345.5GB SSD
- Select a possible destination aggregate from the list.
- Ensure that the destination aggregate is assigned to the SVM:
- Determine whether the SVM has aggregates assigned to it by using the vserver show command with the -vserver and -fields aggr-list parameters.
If the list of aggregates is empty, aggregate assignment is not a factor in choosing a destination aggregate.
Example
The following output displays
an SVM with an empty list of aggregates:
cluster1::> vserver show -vserver SVM1 -fields aggr-list
vserver aggr-list
------- ---------
SVM1 -
- If the aggr-list contains aggregates and the destination aggregate is not among them, select a different aggregate or use the vserver add-aggregates command to assign more aggregates to the SVM.
- Ensure that the destination aggregate is on the desired node:
- Identify the node of the source aggregate by using the storage aggregate show command with the -aggregate and -fields node parameters.
Example
cluster1::> storage aggregate show -aggregate aggr1 -fields node
aggregate node
--------- -------------
aggr1 node-1-1
- Identify the node of the destination aggregate by using the storage aggregate show command with the -aggregate and -fields node parameters.
Example
cluster1::> storage aggregate show -aggregate aggr3 -fields node
aggregate node
--------- -------------
aggr3 node-1-2
- If the aggregate is not on the desired node—for example, if the destination aggregate is on the same node as the source aggregate—select a different aggregate.
- If the cluster contains more than one disk type, ensure that the destination aggregate is of the desired disk type.
- Identify the storage type of the source aggregate by using the storage aggregate show command with the -aggregate and -fields aggregate-type parameters.
Example
cluster1::> storage aggregate show -aggregate aggr1 -fields aggregate-type
aggregate storage-type
--------- ------------
aggr1 SSD
- Identify the disk type of the destination aggregate by using the storage aggregate show command with the -fields aggregate-type parameter.
Example
cluster1::> storage aggregate show -aggregate aggr3 -fields aggregate-type
aggregate storage-type
--------- ------------
aggr3 SSD
- If the aggregate does not have the desired storage type, select a different aggregate.
For example, if the goal is to alter performance characteristics of the volume, you must select the aggregate with the desired disk type.