IBM Books

IBM General Parallel File System for AIX: Administration and Programming Reference

mmdefedquota Command

Name

mmdefedquota - Sets default quota limits to a file system.

Synopsis

mmdefedquota {-u | -g} Device

Description

Use the mmdefedquota command to set or change default quota limits for new users and groups of a file system. Default quota limits for a file system may be set or changed only if the file system was created with the -Q yes option on the mmcrfs command and default quotas have been activated by issuing the mmdefquotaon command.

mmdefedquota displays the current values for these limits, if any, and prompts you to enter new values using your default editor:

Note:
A block or inode limit of 0 indicates no limit.

The mmdefedquota command waits for the edit window to be closed before checking and applying new values. If an invalid entry is made, you must reissue the command and enter the correct values.

Parameters

Device
The device name of the file system to have default quota values set for.

File system names need not be fully qualified. fs0 is just as acceptable as /dev/fs0.

Options

-g
Specifies that the default quota value is to be applied for a new group accessing the specified file system.

-u
Specifies that the default quota value is to be applied for a new user accessing the specified file.

Exit status

0
Successful completion.

1
A failure has occurred.

Security

You must have root authority to run the mmdefedquota command.

You must specify either the -u or the -g option.

GPFS must be running on the node from which the mmdefedquota command is issued.

In an SP environment, verify the authentication method set for SP security services:

  1. If your authentication method is set to compatibility, Kerberos authentication is required. Issue the k4init command.
  2. If your authentication method is set to DCE, dce_login authentication is required.
  3. If your authentication method is set to NONE/std, there must be an entry in the /etc/sysctl.mmcmd.acl file on every node in the nodeset for the root user at every other node in the nodeset.

For further information, see the latest IBM Parallel System Support Programs for AIX: Administration Guide, IBM Parallel System Support Programs for AIX: Command and Technical Reference, and RS/6000: Planning Volume 2, Control Workstation and Software Environment manuals at www.rs6000.ibm.com/resource/aix_resource/sp_books/pssp. Search for information on sysctl.

Examples

To set default quotas for a new user of the file system fs0, enter:

mmdefedquota -u fs0

The system displays information in your default editor similar to:

*** Edit default quota limits for users:
NOTE: block limits will be rounded up to the next multiple of the block size.
fs0: blocks in use: 0K, limits (soft = 2500 , hard = 10M)
inodes in use: 0, limits (soft = 100, hard = 1000)

To confirm the change, enter:

mmlsquota -d -u

The system displays information similar to:

                          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

See also

mmcheckquota Command

mmdefquotaoff Command

mmdefquotaon Command

mmedquota Command

mmlsquota Command

mmquotaoff Command

mmrepquota Command

Location

/usr/lpp/mmfs/bin


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]