Show Table of Contents
A.2. Displaying Quota Limits and Usage with the gfs2_quota Command
Quota limits and current usage can be displayed for a specific user or group using the
gfs2_quota get command. The entire contents of the quota file can also be displayed using the gfs2_quota list command, in which case all IDs with a non-zero hard limit, soft limit, or value are listed.
Usage
Displaying Quota Limits for a User
gfs2_quota get -uUser-fMountPoint
Displaying Quota Limits for a Group
gfs2_quota get -gGroup-fMountPoint
Displaying Entire Quota File
gfs2_quota list -f MountPointUser- A user ID to display information about a specific user. It can be either a user name from the password file or the UID number.
Group- A group ID to display information about a specific group. It can be either a group name from the group file or the GID number.
MountPoint- Specifies the GFS2 file system to which the actions apply.
Command Output
GFS2 quota information from the
gfs2_quota command is displayed as follows:
userUser: limit:LimitSizewarn:WarnSizevalue:ValuegroupGroup: limit:LimitSizewarn:WarnSizevalue:Value
The
LimitSize, WarnSize, and Value numbers (values) are in units of megabytes by default. Adding the -k, -s, or -b flags to the command line change the units to kilobytes, sectors, or file system blocks, respectively.
User- A user name or ID to which the data is associated.
Group- A group name or ID to which the data is associated.
LimitSize- The hard limit set for the user or group. This value is zero if no limit has been set.
Value- The actual amount of disk space used by the user or group.
Comments
When displaying quota information, the
gfs2_quota command does not resolve UIDs and GIDs into names if the -n option is added to the command line.
Space allocated to GFS2's hidden files can be left out of displayed values for the root UID and GID by adding the
-d option to the command line. This is useful when trying to match the numbers from gfs2_quota with the results of a du command.
Examples
This example displays quota information for all users and groups that have a limit set or are using any disk space on file system
/mygfs2.
# gfs2_quota list -f /mygfs2
This example displays quota information in sectors for group
users on file system /mygfs2.
# gfs2_quota get -g users -f /mygfs2 -s
Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.