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.

Chapter 5. Managing <strong>GPFS</strong> quotas<br />

The <strong>GPFS</strong> quota system helps you to control the allocation of files <strong>and</strong> data blocks in a file system. <strong>GPFS</strong><br />

quotas can be defined for:<br />

v Individual users<br />

v Groups of users<br />

v Individual filesets<br />

Quotas are enabled by the system administrator when control over the amount of space used by the<br />

individual users, groups of users, or individual filesets is required.<br />

Quota related tasks include:<br />

1. “Enabling <strong>and</strong> disabling <strong>GPFS</strong> quota management”<br />

2. “Explicitly establishing <strong>and</strong> changing quotas” on page 38<br />

3. “Default quotas” on page 38<br />

4. “Checking quotas” on page 39<br />

5. “Listing quotas” on page 40<br />

6. “Activating quota limit checking” on page 41<br />

7. “Deactivating quota limit checking” on page 41<br />

8. “Creating file system quota reports” on page 42<br />

9. For <strong>GPFS</strong> fileset quotas, see the section Filesets in General Parallel File System: Advanced<br />

<strong>Administration</strong> Guide.<br />

Enabling <strong>and</strong> disabling <strong>GPFS</strong> quota management<br />

To enable <strong>GPFS</strong> quota management on a new <strong>GPFS</strong> file system:<br />

1. Specify the -Q yes option on the mmcrfs comm<strong>and</strong>. This option automatically activates quota<br />

enforcement whenever the file system is mounted.<br />

2. Mount the file system.<br />

3. Issue the mmedquota comm<strong>and</strong> to explicitly set quota values for users, groups, or filesets. See<br />

“Explicitly establishing <strong>and</strong> changing quotas” on page 38.<br />

To enable <strong>GPFS</strong> quota management on an existing <strong>GPFS</strong> file system:<br />

1. Specify the -Q yes option on the mmchfs comm<strong>and</strong>. This option automatically activates quota<br />

enforcement whenever the file system is mounted.<br />

2. Unmount the file system everywhere.<br />

3. Remount the file system, activating the new quota files. All subsequent mounts obey the new quota<br />

setting.<br />

4. Compile inode <strong>and</strong> disk block statistics using the mmcheckquota comm<strong>and</strong>. See “Checking quotas”<br />

on page 39. The values obtained can be used to establish realistic quota values when issuing the<br />

mmedquota comm<strong>and</strong>.<br />

5. Issue the mmedquota comm<strong>and</strong> to explicitly set quota values for users, groups, or filesets. See<br />

“Explicitly establishing <strong>and</strong> changing quotas” on page 38.<br />

Once <strong>GPFS</strong> quota management has been enabled, you may establish quota values by:<br />

v Setting default quotas for all new users, groups of users, or filesets.<br />

v Explicitly establishing or changing quotas for users, groups of users, or filesets.<br />

v Using the gpfs_quotactl() subroutine.<br />

© Copyright IBM Corp. 1998, 2006 37

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

Saved successfully!

Ooh no, something went wrong!