3.5.1 Matrix Server Administration Guide

Chapter 9: Manage Filesystem Quotas 177
Copyright © 1999-2007 PolyServe, Inc. All rights reserved.
default limit, click “Unlimited.”) The default quotas apply to all users and
groups; however, you can change the quota for a specific user or group.
To enable or disable quotas from the command line, use mx quota
command or the psfsquota or psfsck utilities. The psfsquota and psfsck
utilities provide the following options to enable or disable quotas on a
PSFS filesystem:
--enable-quotas
Build the necessary quota infrastructure on the specified filesystem.
The psfsquota or psfsck utility then examines the existing files and
stores current allocations for each user and group owning a file on the
filesystem.
--disable-quotas
Disable quotas on the specified filesystem and free the associated
blocks.
If you are enabling quotas, you can also set the default quota for users or
groups on that filesystem:
--set-udq <size>[T|G|M|K]
Set the default quota for users on the specified filesystem. (The default
is rounded down to the nearest filesystem block.) The optional
modifiers specify that the size is in terabytes (T), gigabytes (G),
megabytes (M), or kilobytes (K). If a modifier is not specified, the size
will be calculated in bytes.
--set-gdq <size>[T|G|M|K]
Set the default quota for groups on the specified filesystem. (The
default is rounded down to the nearest filesystem block.) The
modifiers are the same as the set-udq option.
The psfsquota command has this syntax:
/opt/polyserve/sbin/psfsquota [--enable-quotas] [--disable-quotas]
[--set-udq <size>[T|G|M|K]] [--set-gdq <size>[T|G|M|K]] [-y] <dev>
The -y option answers “yes” to all questions.