Table of ContentsView in Frames

Defining an aggregate reallocation scan

If reallocation has been enabled on your storage system, you can initiate an aggregate reallocation scan to optimize the location of physical blocks in the aggregate, thus increasing contiguous free space in the aggregate.

About this task

An aggregate reallocation scan reallocates free space and is not the same as file reallocation. In particular, after adding new disks to an aggregate, if you want to ensure that blocks are laid out sequentially throughout the aggregate, you should use reallocate start -f on each volume instead of reallocate start -A on the aggregate.

Note: Do not run an aggregate reallocation scan if free space reallocation is enabled on the aggregate.

Because blocks in an aggregate Snapshot copy will not be reallocated, consider deleting aggregate Snapshot copies before performing aggregate reallocation to allow the reallocation to perform better.

Step

  1. On the command line for the storage system, enter the following command:
    reallocate start -A [-i interval] aggr_name

    • -i  interval is the interval, in hours, minutes, or days, at which the scan is performed.

      The default interval is 24 hours. You specify the interval as follows:

      [m | h | d]

      For example, 30m is a 30-minute interval.

      The countdown to the next scan begins only after the first scan is complete. For example, if the interval is 24 hours and a scan starts at midnight and lasts for an hour, the next scan begins at 1:00 a.m. the next day—24 hours after the first scan is completed.

    • aggr_name is the name of the aggregate on which you want to perform a reallocation scan.

    Example

    The following example initiates an aggregate reallocation scan that runs every 24 hours:

    reallocate start -A my_aggr