PRIMECLUSTER Global File Services Configuration and Administration Guide 4.2 (Solaris(TM) Operating Environment)
Contents Index PreviousNext

Appendix F Reference Manual> F.2 Management Commands Specific to the GFS Shared File System

F.2.6 sfcedquota(1M) Edits quota limits for each user

[SYNOPSIS]

sfcedquota [ -p proto_user ] username ...

sfcedquota -t

[DESCRIPTION]

sfcedquota is an editor for editing quota limits for each user of the GFS Shared File System. One or more users can be specified from the command line.

Assume that the GFS Shared File Systems that are mounted in the node that have executed sfcedquota include quotas files. For these file systems, the current quota limits of the user specified by operand username can be created in a temporary file in ASCII representation and displayed with the editor. Thereafter, the displayed quota limits can be corrected or new quota limits can be added. When the editor ends, sfcedquota reads the temporary file to change the quota limits.

The editor to be called is vi(1) so long as environment variable EDITOR does not specify another editor.

Only a super user can edit the quota limits. To set quota limits, a quotas file owned by the root is required in the root directory of the file system. The quotas file is first created with touch(1) and chmod(1).

proto_user and username can specify the login name or UID of a user. An unassigned UID can be specified, but an unassigned login name cannot be specified. If an unassigned user ID is specified, the quota information is valid when UID is assigned.

If the -t option is omitted, the editor displays the temporary file in the following format to edit the limit values for the number of blocks and the number of files:

fs mount_point blocks (soft = number, hard = number) inodes (soft = number, hard = number)

block indicates one block of 1,024 bytes (1K). number is changed to a value to be set as the number of blocks or files.

If the -t option is specified, the editor displays the temporary file in the following format to edit the soft time limit for the number of blocks and files:

fs mount_point blocks time limit = number tmunit, files time limit = number tmunit

If number indicates 0 and tmunit indicates default, this indicates the default time limit (one week). If number indicates a value other than 0, tmunit indicates a larger unit from among month, week, day, hour, min, and sec.

A soft time limit is set by editing number and tmunit. Because the characters following a tmunit unit are ignored, months or minutes can be specified.

[OPTIONS]

The following options can be specified:

-p

Copies the quota information of specified proto_user onto each specified username. This option is used to initialize quota information for a group of users.

-t

Edits the soft time limit of each file system.

[OPERAND]

The following operand can be specified:

username

username can specify the login name or UID of a user.

[EXAMPLES]

# sfcedquota user1
# sfcedquota user1 user2
# sfcedquota -p protuser user1 user2
# sfcedquota -t

[EXIT STATUS]

The following end statuses are returned:

0 Normal termination
32 Error

[FILES]

quotas

quota information file in the root directory of the file system

/etc/mnttab

Table of the file system being mounted

[SEE ALSO]

sfcrepquota(1M), sfcquota(1M), sfcquotadm(1M), sfcquotaon(1M).

chmod(1), touch(1), vi(1) in the "Solaris X Reference Manual Collection."


Contents Index PreviousNext

All Rights Reserved, Copyright(C) FUJITSU LIMITED 2004