Table of ContentsView in Frames

Resizing a FlexVol volume

You can increase or decrease the amount of space that an existing FlexVol volume is allowed to occupy in its containing aggregate. A FlexVol volume can grow to the size you specify as long as the containing aggregate has enough free space to accommodate that growth.

Steps

  1. Check the available space of the containing aggregate by entering the following command:df -A aggr_name
  2. If you want to determine the current size of the volume, enter one of the following commands:vol size vol_namedf vol_name
  3. Enter the following command to resize the volume:vol size vol_name [+|-] n{k|m|g|t}

    If you include the + or -, n{k|m|g|t} specifies how many kilobytes, megabytes, gigabytes or terabytes to increase or decrease the volume size. If you do not specify a unit, size is taken as bytes and rounded up to the nearest multiple of 4 KB.

    If you omit the + or -, the size of the volume is set to the size you specify, in kilobytes, megabytes, gigabytes, or terabytes. If you do not specify a unit, size is taken as bytes and rounded up to the nearest multiple of 4 KB.

    Note: If you attempt to decrease the size of a FlexVol volume to less than the amount of space that it is currently using, the command fails.

    Decreasing the size of a FlexVol volume does not decrease the space reserved for metadata for the volume (it remains .5 percent of the original nominal size of the volume).

  4. You can verify the success of the resize operation by entering the following command:vol size vol_name