6.0 HP StorageWorks X9000 File Serving Software CLI Reference (TA768-96040, October 2011)

ibrix_edquota
Sets and manages file system quotas for users, groups, and directory trees.
Description
The ibrix_edquota command sets, lists, and deletes storage quotas for users or groups on a
specific file system. It also sets directory tree quotas, which limit the amount of storage and the
number of files that can be created on a file system located at a specific directory tree. By default,
quotas are not set.
The recommended order for handling quotas is as follows:
1. Enable quotas when creating the file system. Quotas must be enabled before quota limits can
be set. (You can also enable quotas on an existing file system. First, unmount the file system,
and then enable quotas with ibrix_fs -q -E -f FSNAME.)
2. Mount the file system.
3. Set quota limits with ibrix_edquota -s.
A quota is delimited by hard and soft storage limits defined either in megabytes of storage or as
a number of files. The hard limit is the maximum storage (in terms of file size and number of files)
allotted to a user or group. The soft limit specifies the number of megabytes or files that, when
reached, starts a countdown timer that runs until the hard storage limit is reached or the grace
period elapses, whichever happens first. (The default grace period is seven days.) When the timer
stops for either reason, the user or group cannot store any more data and the system issues quota
exceeded messages at each write attempt.
When setting quotas, no UID or GID can exceed 2,147,483,647. Setting user quotas to zero
removes the quotas.
Quotas information can be imported into the system from a file. The existing quotas information
can also be exported to a file. See the HP X9000 File Serving Software File System User Guide
for information about the quotas file.
NOTE: When a new NIS user is added, you will need to restart the Fusionmanager services
before assigning quotas to the user:
/etc/init.d/ibrix_fusionmanager restart
Synopsis
Set a quota for a single user on the specified file system:
ibrix_edquota -s -u "USER" -f FSNAME [-M SOFT_MEGABYTES] [-m
HARD_MEGABYTES] [-I SOFT_FILES] [-i HARD_FILES]
Enclose the user name in single or double quotation marks.
Set a quota for a single group on the specified file system:
ibrix_edquota -s -g "GROUP" -f FSNAME [-M SOFT_MEGABYTES] [-m
HARD_MEGABYTES] [-I SOFT_FILES] [-i HARD_FILES]
Enclose the group name in single or double quotation marks.
Create a directory tree quota and assign quota limits:
ibrix_edquota -s -d NAME -p PATH -f FSNAME [-M SOFT_MEGABYTES] [-m
HARD_MEGABYTES] [-I SOFT_FILES] [-i HARD_FILES]
The -d NAME option specifies a unique name for the directory quota. The name cannot contain
a comma (,) character.
The -p PATH option specifies the pathname of the directory tree. If the pathname includes a space,
enclose the portion of the pathname that includes the space in single quotation marks, and enclose
the entire pathname in double quotation marks. For example:
ibrix_edquota 33