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.

During the normal operation of file systems with quotas enabled (not running mmcheckquota online), the<br />

usage data reflects the actual usage of the blocks <strong>and</strong> inodes in the sense that if you delete files you<br />

should see the usage amount decrease. The in doubt value does not reflect how much the user has used<br />

already, it is just the amount of quotas that the quota server has assigned to its clients. The quota server<br />

does not know whether the assigned amount has been used or not. The only situation where the in doubt<br />

value is important to the user is when the sum of the usage <strong>and</strong> the in doubt value is greater than the<br />

user’s quota hard limit. In this case, the user is not allowed to allocate more blocks or inodes unless he<br />

brings the usage down.<br />

For example, to check quotas for the file system fs1 <strong>and</strong> report differences between calculated <strong>and</strong><br />

recorded disk quotas, enter:<br />

mmcheckquota -v fs1<br />

The information displayed shows that the quota information for USR7 was corrected. Due to a system<br />

failure, this information was lost at the server, which recorded 0 subblocks <strong>and</strong> 0 files. The current usage<br />

data counted is 96 subblocks <strong>and</strong> 3 files. This is used to update the quota:<br />

/dev/fs1: quota-check found following differences:<br />

USR7: 96 subblocks counted (was 0); 3 inodes counted (was 0)<br />

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

Listing quotas<br />

The mmlsquota comm<strong>and</strong> displays the file system quota limits, default quota limits, <strong>and</strong> current usage<br />

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

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

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

mmrepquota comm<strong>and</strong> <strong>and</strong> the values used to determine if quota limits have been exceeded will be<br />

double the value reported by the ls comm<strong>and</strong>. When issuing the mmlsquota comm<strong>and</strong> on a mounted file<br />

system, negative in doubt values may be reported if the quota server processes a combination of<br />

up-to-date <strong>and</strong> back-level information. This is a transient situation <strong>and</strong> may be ignored.<br />

Specify the quota information for one user, group of users, or fileset with the mmlsquota comm<strong>and</strong>. If<br />

neither -g , nor -u, nor -j is specified, quota data is displayed for the user who entered the comm<strong>and</strong>.<br />

For example, to display default quota information for users of all the file systems in the cluster, enter:<br />

mmlsquota -d -u<br />

Information similar to this is returned:<br />

Default Block Limits | Default File Limits<br />

Filesystem type quota limit | quota limit Remarks<br />

fs1 USR no default limits<br />

This output shows for file system fs1 a default quota limit of 10240K for users has been established. For<br />

file systems fs2 <strong>and</strong> fs3 no default quotas for users has been established.<br />

If you issue the mmlsquota comm<strong>and</strong> with the -e option, the quota system collects updated information<br />

from all nodes before returning output. If the node to which in-doubt space was allocated should fail before<br />

updating the quota system about its actual usage, this space might be lost. Should the amount of space in<br />

doubt approach a significant percentage of the quota, run the mmcheckquota comm<strong>and</strong> to account for<br />

the lost space.<br />

To collect <strong>and</strong> display updated quota information about a group named blueteam, specify the -g <strong>and</strong> -e<br />

options:<br />

mmlsquota -g blueteam -e<br />

40 <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!