.TH mmdefedquota 03/02/06 mmdefedquota Command .SH "Name" .PP \fBmmdefedquota\fR - Sets default quota limits to a file system. .SH "Synopsis" .PP \fBmmdefedquota\fR {\fB-u\fR | \fB-g\fR | \fB-j\fR} \fIDevice\fR .SH "Description" .PP Use the \fBmmdefedquota\fR command to set or change default quota limits for new users, group and filesets for a file system. Default quota limits for a file system may be set or changed only if the file system was created with the \fB-Q yes\fR option on the \fBmmcrfs\fR command or changed with the \fBmmchfs\fR command. .PP The \fBmmdefedquota\fR command displays the current values for these limits, if any, and prompts you to enter new values using your default editor: .RS +3 .HP 3 \(bu Current block usage (display only) .HP 3 \(bu Current inode usage (display only) .HP 3 \(bu Inode soft limit .HP 3 \(bu Inode hard limit .HP 3 \(bu Block soft limit .sp Displayed in \fBKB\fR, but may be specified using \fBk\fR, \fBK\fR, \fBm\fR, \fBM\fR, \fBg\fR, or \fBG\fR . If no suffix is provided, the number is assumed to be in \fBbytes\fR. .HP 3 \(bu Block hard limit .sp Displayed in \fBKB\fR, but may be specified using \fBk\fR, \fBK\fR, \fBm\fR, \fBM\fR, \fBg\fR, or \fBG\fR. If no suffix is provided, the number is assumed to be in \fBbytes\fR. .RE .RS +3 \fBNote:\fR .RE .RS +9 A block or inode limit of 0 indicates no limit. .RE .PP The \fBmmdefedquota\fR command waits for the edit window to be closed before checking and applying new values. If an incorrect entry is made, you must reissue the command and enter the correct values. .PP When setting quota limits for a file system, replication within the file system should be considered. GPFS quota management takes replication into account when reporting on and determining if quota limits have been exceeded for both block and file usage. In a file system that has either type of replication set to a value of two, the values reported on by both the \fBmmlsquota\fR command and the \fBmmrepquota\fR command are double the value reported by the \fBls\fR command. .PP The EDITOR environment variable must contain a complete path name, for example: .sp .nf export EDITOR=/bin/vi .fi .sp .SH "Parameters" .PP .RS +3 \fB\fIDevice\fR \fR .RE .RS +9 The device name of the file system to have default quota values set for. .PP File system names need not be fully-qualified. \fBfs0\fR is just as acceptable as \fB/dev/fs0\fR. .RE .SH "Options" .PP .RS +3 \fB-g \fR .RE .RS +9 Specifies that the default quota value is to be applied for new groups accessing the specified file system. .RE .PP .RS +3 \fB-j \fR .RE .RS +9 Specifies that the default quota value is to be applied for new filesets in the specified file system. .RE .PP .RS +3 \fB-u \fR .RE .RS +9 Specifies that the default quota value is to be applied for new users accessing the specified file system. .RE .SH "Exit status" .PP .PP .RS +3 \fB0 \fR .RE .RS +9 Successful completion. .RE .PP .RS +3 \fBnonzero \fR .RE .RS +9 A failure has occurred. .RE .SH "Security" .PP You must have root authority to run the \fBmmdefedquota\fR command. .PP You must specify either the \fB-u\fR or the \fB-g\fR option. .PP GPFS must be running on the node from which the \fBmmdefedquota\fR command is issued. .SH "Examples" .PP To set default quotas for new users of the file system \fBfs1\fR, issue this command: .sp .nf mmdefedquota -u fs1 .fi .sp .PP The system displays information in your default editor similar to: .sp .nf *** Edit quota limits for USR DEFAULT entry NOTE: block limits will be rounded up to the next multiple of the block size. block units may be: K, M, or G. fs1: blocks in use: 0K, limits (soft = 0K, hard = 0K) inodes in use: 0, limits (soft = 0, hard = 0) .fi .sp .PP To confirm the change, issue this command: .sp .nf mmlsquota -d -u .fi .sp .PP The system displays information similar to: .sp .nf Block Limits | File Limits Filesystem type KB quota limit in_doubt grace |files quota limit in_doubt grace fs0 USR 0K 2500 10M 0 none | 0 100 1000 0 none fs1 USR no default limits fs2 USR no default limits .fi .sp .SH "See also" .PP mmcheckquota Command .PP mmdefquotaoff Command .PP mmdefquotaon Command .PP mmedquota Command .PP mmlsquota Command .PP mmquotaoff Command .PP mmrepquota Command .SH "Location" .PP \fB/usr/lpp/mmfs/bin\fR .PP