When space reservation is enabled for one or more files, Data ONTAP reserves enough space in the volume so that writes to a those files do not fail because of a lack of disk space (ENOSPC error). Other operations such as snapshots or the creation of new files can occur only if there is enough available unreserved space; other operations are restricted from using reserved space.
Writes to new or existing unreserved space in a volume will fail when the total amount of free space in the volume is less than the amount needed according to the current file reserve values. Once free space in a volume goes below this value, only writes to files with reserved space are guaranteed to succeed.
File space reservation is persistent across filer reboots and across takeovers and givebacks, but does not persist through reversions to an earlier Data ONTAP software version.
Note
This manual does not discuss enabling space reservation for LUNs on NetApp appliances configured for block storage. For details on enabling space reservation for LUNs, see the Block Access Management Guide for FCP or the Block Access Management Guide for iSCSI.
In volumes that keep snapshot data, files with space reservation require disk space in addition to their file size:
Note
In volumes that do not keep snapshots, files with space reservation require no extra disk space.
To enable space reservation for a file, complete the following step.
Turning on space reservation for a file will fail if there is not enough free space in the volume for the new reservation.
To find out the status of space reservation for files in a volume, complete the following step.
| 1 |
file reservation file_name file_name is the file in which file reservations are set. Example:file reservation myfile |
You can use the create_reserved parameter on the vol options command to enable default file space reservation for specified volumes. When default file space reservation is enabled on a volume, all subsequent files created in that volume are, by default, enabled for space reservation.
Caution
Enabling default file space reservation for a volume, means that all subsequent files created for that volume will require the extra volume space described in File space reservation disk space requirements. You can disable files for space reservation only one at a time through the file reservation file_name disable command.
To set space reservation values for new files in a specified volume, complete the following step.
To find out the status of space reservation for a volume, complete the following step.
You can use the qtree reservation command to enable default file space reservation for specified qtrees. When default file space reservation is enabled for a qtree, all subsequent files created in or copied to that qtree are, by default, enabled for space reservation.
Caution
Enabling default file space reservation for a qtree means that all subsequent files created for that qtree will require the extra volume space described in File space reservation disk space requirements. You can disable files for space reservation only one at a time through the file reservation filename disable command.
To set space reservation values for new files in a specified qtree, complete the following step.
Default file space reservation can be set for volumes as well as for qtrees.
To find out the status of space reservation for a qtree, complete the following step.
| 1 |
qtree reservation qtree_name |
Copyright © 1994-2003, Network Appliance, Inc. All rights
reserved.
Part No. 210-00472
File: data-o25.htm
Last updated: 11/17/03 16:57:17