Skip to main content
A newer release of this product is available.

volume file reservation

Contributors
Suggest changes

Get/Set the space reservation info for the named file.

Availability: This command is available to cluster and Vserver administrators at the admin privilege level.

Description

The volume file reservation command can be used to query the space reservation settings for the named file, or to modify those settings. This command is not supported on Infinite Volumes. With no further modifiers, the command will report the current setting of the space reservation flag for a file. This tells whether or not space is reserved to fill holes in the file and to overwrite existing portions of the file that are also stored in a snapshot. For symlinks, the link is followed and the command operates on the link target.

Parameters

-vserver <vserver name> - Vserver Name

Specifies the Vserver on which the volume is located. If only one data Vserver exists, you do not need to specify this parameter.

-path </vol/<volume name>/<file path>> - File Name

Specifies the complete file path for which we want to get/set the space reservation settings.

[-is-enabled <text>] - enable | disable

Specifying enable or disable will turn the reservation setting on or off accordingly for the file.

Examples

The following example enables the file reservation setting for the file named file1. The file file1 is stored in volume testvol on Vserver vs0.

node::> file reservation -vserver vs0 /vol/testvol/file1 enable
space reservations for file /vol/testvol/file1: on.