Table of ContentsLibraryView in Frames

Preparing your destination volume

Before migrating, you need to create and name a destination volume of the correct size and number of inodes.

Considerations

If the new FlexVol volume will be the root volume, it must meet the minimum size requirements for root volumes, which are based on your storage system. Data ONTAP prevents you from designating as root a volume that does not meet the minimum size requirement. For more information, see the System Administration Guide.

Steps

  1. Enter the following command to determine the amount of space your traditional volume uses:df -Ah vol_name

    Example

    sys1>df -Ah vol0
    Aggregate        total       used     avail    capacity
    vol0              24GB     1434MB      22GB          7%
    vol0/.snapshot  6220MB     4864MB    6215MB         0%
     
    

    The total space used by the traditional volume is displayed as used for the volume name.

  2. Enter the following command to determine the number of inodes your traditional volume uses:df -I vol_name

    Example

    sys1>df -I vol0
    Filesystem           iused      ifree  %iused  Mounted on
    vol0               1010214   27921855     3%   /vol/vol0

    The number of inodes your traditional volume uses is displayed as iused.

  3. Identify or create an aggregate to contain the new FlexVol volume.

    Note: To determine if an existing aggregate is large enough to contain the new FlexVol volume, you can use the df -Ah command. The space listed under avail should large enough to contain the new FlexVol volume.

  4. If you want the destination (FlexVol) volume to have the same name as the source (traditional) volume, and they are on the same storage system, you must rename the source volume before creating the destination volume. Do this by entering the following command:aggr rename vol_name new_vol_name

    Example

    aggr rename vol0 vol0trad

  5. Create the destination volume in the containing aggregate.

    Example

    vol create vol0 aggrA 90g

    Note: For root volumes, you must use the (default) volume space guarantee, because it ensures that writes to the volume do not fail due to a lack of available space in the containing aggregate.

  6. Confirm that the size of the destination volume is at least as large as the source volume by entering the following command on the target volume:df -h vol_name
  7. Confirm that the destination volume has at least as many inodes as the source volume by entering the following command on the destination volume:df -I vol_name

    Note: If you need to increase the number of inodes in the destination volume, use the maxfiles command.

You have created a destination volume with sufficient resources to accept the data from the source volume.