|
APIs in Category: reallocate |
API version 1.6 |
reallocate-delete-schedule |
Reallocation jobs are started with reallocate-start, and later stopped with reallocate-stop. Reallocation jobs may be temporarily quiesced with reallocate-quiesce, and later restarted with reallocate-restart. Schedules for reallocation jobs may be set with reallocate-set-schedule, and deleted with reallocate-delete-schedule. Use reallocate-list-info to get information about reallocation jobs. For additional background information on reallocation please see the na_reallocate manual page. |
| reallocate-delete-schedule | [top] |
Delete a schedule for a reallocation job
Input Name Range Type Description path string
Path to large file or LUN whose reallocation schedule should be deleted. The path must start with /vol/
Errno Description EONTAPI_EINVAL EREALLOCATE_BADPATH EREALLOCATE_NOMEM EREALLOCATE_NOSCAN EREALLOCATE_BADVOL EREALLOCATE_OFF
| reallocate-list-info | [top] |
Get status for WAFL reallocation jobs
Input Name Range Type Description path string
optional
Name of a path to get status on. If specified only status for that path is returned. If not specified, information for all reallocation jobs is returned. The path must start with /vol/. verbose boolean
optional
If true, verbose output is returned. Otherwise default output is returned. Output Name Range Type Description global-status string
The system-wide status of the reallocation system on the filer. The status is of the format: "Reallocation scans are on" or "Reallocation scans are off". reallocate-jobs reallocate-job-info[]
Array of all or specified reallocation jobs.
Errno Description EREALLOCATE_BADPATH EREALLOCATE_NOMEM EREALLOCATE_NOSCAN EREALLOCATE_BADVOL EREALLOCATE_OFF
| reallocate-off | [top] |
Globally disables WAFL reallocation jobs
Output Name Range Type Description detail-status string
Detailed result status. If reallocation scans are already off the detailed status is "Reallocation scans are off". If reallocation scans will be disabled the detailed status is "Reallocation scans will be disabled."
Errno Description EONTAPI_EINVAL
| reallocate-on | [top] |
Globally enables WAFL reallocation jobs
Output Name Range Type Description detail-status string
Detailed result status. If reallocation scans are already on the detailed status is "Reallocation scans are on". If reallocation scans will be enabled the detailed status is "Reallocation scans will be enabled."
Errno Description EONTAPI_EINVAL
| reallocate-quiesce | [top] |
Quiesce a reallocation job. When a reallocation job is quiesced it will not be run until restarted, however information about the job is preserved.
Input Name Range Type Description path string
Path to large file or LUN to quiesce, starting with /vol/
Errno Description EONTAPI_EINVAL EREALLOCATE_BADPATH EREALLOCATE_NOMEM EREALLOCATE_NOSCAN
| reallocate-restart | [top] |
Restart a reallocation job that is quiesced or idle.
Input Name Range Type Description path string
Path to large file or LUN to restart reallocation on, starting with /vol/
Errno Description EONTAPI_EINVAL EREALLOCATE_BADPATH EREALLOCATE_NOMEM EREALLOCATE_NOSCAN EREALLOCATE_OFF
| reallocate-set-schedule | [top] |
Set a schedule for a reallocation job.
Input Name Range Type Description path string
Path to large file or LUN to reallocate, starting with /vol/ schedule string
Reallocation schedule, in format " ", where each field is either a number, a comma-separated range of numbers, or "*", indicating all values.
Errno Description EONTAPI_EINVAL EREALLOCATE_BADPATH EREALLOCATE_NOMEM EREALLOCATE_NOSCAN EREALLOCATE_BADVOL EREALLOCATE_BADSCHED EREALLOCATE_OFF
| reallocate-start | [top] |
Starts a new reallocation job
Input Name Range Type Description full boolean
optional
If true, perform a once-only full reallocate of the indicated file, LUN or volume (specified as /vol/VOLNAME). This option implies run-once and no-check are true. interval string
optional
The interval between repeated scans. The format is numX, where X is m, h or d, indicating minutes, hours or days. is-aggregate boolean
optional
If true, reallocate the aggregate indicated by the path. This performs block reallocation, not file reallocation. no-check boolean
optional
If true, do not check if the current layout optimization is above the threshold before reallocateing. path string
Path to large file or LUN to reallocate, starting with /vol/. If the full option is true then an entire volume may also be specified, as /vol/VOLNAME. If an aggregate, just the aggregate name must be specified. preserve-logical-bno boolean
optional
If true, reallocate the physical block location in the aggregate, but do not change the logical block number in the flexible volume. This option may only be selected for flexible volumes or files/LUNs within flexible volumes. run-once boolean
optional
If true, run the scan once then exit. threshold integer
optional
The allocation threshold before reallocation occurs. The value must be in the range 3-10, where a larger value indicates the file or LUN can be more fragmented.
Errno Description EONTAPI_EINVAL EREALLOCATE_EXISTS EREALLOCATE_BADPATH EREALLOCATE_NOMEM EREALLOCATE_BADVOL EREALLOCATE_READONLY EREALLOCATE_OFF
| reallocate-stop | [top] |
Stops a reallocation job.
Input Name Range Type Description path string
Path to large file or LUN to stop reallocation on. The path must start with /vol/
Errno Description EONTAPI_EINVAL EREALLOCATE_NOSCAN EREALLOCATE_BADPATH EREALLOCATE_NOMEM EREALLOCATE_BADVOL
| Element definition: reallocate-job-info | [top] |
Information about a specific reallocation job.
Name Range Type Description flags string
Flags associated with a reallocation job (verbose only). This is for internal use only. interval string
Interval between reallocation jobs The format for this value is as described in reallocate-start, above. layout-factor integer
Current allocation layout factor, if known. The range is from 1 (ideal layout) upwards. A value of -1 is returned if the current layout factor is unknown. path string
The path for the reallocation job. scan-detail string
If a reallocation job is running, detail on the current scan, including the progress when known. schedule string
Schedule for reallocation. The format for this value is as described in reallocate-schedule-set, above. state string
The current state of the reallocation job. The states are Idle, Checking, Reallocating, Deleting or Quiesce. threshold integer
The reallocation threshold (verbose only), as described above in reallocate-start, above.