Table of ContentsLibraryView in Frames

Defining a LUN, file, or volume reallocation scan

After reallocation is enabled on your storage system, you define a reallocation scan for the LUN, file, or volume on which you want to perform a reallocation scan.

Step

  1. On the storage system’s command line, enter the following command: reallocate start [-t threshold] [-n] [-p] [-i interval] pathname

    • -t threshold is a number between 3 (layout is moderately optimal) and 10 (layout is not optimal). The default is 4.
      A scan checks the block layout of a LUN, file, or volume before reallocating blocks. If the current layout is below the threshold, the scan does not reallocate blocks in the LUN, file, or volume. If the current layout is equal to or above the threshold, the scan reallocates blocks in the LUN, file, or volume.
      Note: Because Data ONTAP also includes “hot spots” in its calculation of whether to start a LUN, file, or volume reallocation, the system might start a reallocation when the average optimization is better than the threshold but a small percentage of the total data is very poorly optimized.
    • -n reallocates blocks in the LUN, file, or volume without checking its layout.
    • -p reallocates user data on the physical blocks in the aggregate while preserving the logical block locations within a flexible volume. You can use this option only with flexible volumes or with files and LUNs within flexible volumes.
    • -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.

    • pathname is the path to the LUN, file, or volume on which you want to perform a reallocation scan.

    Example

    The following commands create a new LUN and a normal reallocation scan that runs every 24 hours. lun create -s 100g /vol/vol2/lun0reallocate start /vol/vol2/lun0