Table of ContentsLibraryView in Frames

Creating a reallocation scan schedule

You can run reallocation scans according to a schedule. The schedule you create replaces any interval you specified when you entered the reallocate start command or the reallocate start -A command.

Considerations

If the reallocation scan job does not already exist, use reallocate start first to define the reallocation scan.

Step

  1. Enter the following command: reallocate schedule [-s schedule] pathname | aggr_name

    -s schedule is a string with the following fields:

    minute hour day_of_month day_of_week

    • minute is a value from 0 to 59.
    • hour is a value from 0 (midnight) to 23 (11:00 p.m.).
    • day_of_month is a value from 1 to 31.
    • day_of_week is a value from 0 (Sunday) to 6 (Saturday).

    A wildcard character (*) indicates every value for that field. For example, a * in the day_of_month field means every day of the month. You cannot use the wildcard character in the minute field.

    You can enter a number, a range, or a comma-separated list of values for a field. For example, entering “0,1” in the day_of_week field means Sundays and Mondays. You can also define a range of values. For example, “0-3” in the day_of_week field means Sunday through Wednesday.

    pathname is the path to the LUN, file, or volume for which you want to create a reallocation scan schedule.

    aggr_name is the name of the aggregate for which you want to create a reallocation scan schedule.

    Example

    The following example schedules a LUN reallocation scan for every Saturday at 11:00 PM. reallocate schedule -s “0 23 * 6” /vol/myvol/lun1