29.01.2013 Views

GPFS: Administration and Programming Reference - IRA Home

GPFS: Administration and Programming Reference - IRA Home

GPFS: Administration and Programming Reference - IRA Home

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

The system displays output similar to:<br />

flag value description<br />

---- -------------- --------------------<br />

-Q group;fileset Quotas enforced<br />

See the “mmquotaoff Comm<strong>and</strong>” on page 236 <strong>and</strong> the “mmlsfs Comm<strong>and</strong>” on page 209 for complete<br />

usage information.<br />

Creating file system quota reports<br />

You can have <strong>GPFS</strong> prepare a quota report for a file system using the mmrepquota comm<strong>and</strong>. This lists:<br />

1. Number of files used<br />

2. Amount of disk space used<br />

3. Current quota limits<br />

4. In doubt quotas (disk space allocated but currently unaccounted for)<br />

5. Grace period allowance to exceed the soft limit<br />

6. Whether the quotas have been explicitly set (e), are default values (d), or initial values (i). The entry<br />

type also indicates whether or not default quotas are enabled for the file system (default on or default<br />

off).<br />

<strong>GPFS</strong> quota management takes replication into account when reporting on <strong>and</strong> determining if quota limits<br />

have been exceeded for both block <strong>and</strong> file usage. In a file system that has either type of replication set to<br />

a value of two, the values reported on by both the mmlsquota comm<strong>and</strong> <strong>and</strong> the mmrepquota comm<strong>and</strong><br />

<strong>and</strong> the values used to determine if quota limits have been exceeded will be double the value reported by<br />

the ls comm<strong>and</strong>.<br />

Specify whether you want to list only user quota information (-u flag), group quota information (-g flag), or<br />

fileset quota information (-j flag) in the mmrepquota comm<strong>and</strong>. The default is to summarize all three<br />

quotas. If the -e flag is not specified, there is the potential to display negative usage values as the quota<br />

server may process a combination of up-to-date <strong>and</strong> back-level information. When issuing the<br />

mmrepquota comm<strong>and</strong> on a mounted file system, negative in doubt values may be reported if the quota<br />

server processes a combination of up-to-date <strong>and</strong> back-level information. This is a transient situation <strong>and</strong><br />

may be ignored.<br />

To list the group quotas (-g option) for all file systems in the cluster (-a option), <strong>and</strong> print a report with<br />

header lines (-v option), enter:<br />

mmrepquota -g -v -a<br />

The system displays information similar to:<br />

*** Report for GRP quotas on fs1<br />

Block Limits | File Limits<br />

Name type KB quota limit in_doubt grace | files quota limit in_doubt grace entryType<br />

system GRP 25088 0 0 209120 none | 32 0 0 1078 none default on<br />

usr GRP 435256 0 0 199712 none | 11 0 0 899 none d<br />

See the “mmrepquota Comm<strong>and</strong>” on page 246 for complete usage information.<br />

Restoring quota files<br />

User, group, <strong>and</strong> fileset quota files can be restored from a backup copy of the original quota file. When<br />

restoring quota files, the backup file must be in the root directory of the file system. If a backup copy does<br />

not exist, an empty file will be created when the mmcheckquota comm<strong>and</strong> is issued.<br />

The user, group, or fileset files can be restored from backup copies by issuing the mmcheckquota<br />

comm<strong>and</strong> with the appropriate options.<br />

42 <strong>GPFS</strong>: <strong>Administration</strong> <strong>and</strong> <strong>Programming</strong> <strong>Reference</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!