quotaon, quotaoff - turn filesystem quotas on and off
/usr/etc/quotaon [ -v ] filesystem ...
/usr/etc/quotaon [ -v ] [ -a ]
/usr/etc/quotaoff [ -vd ] filesystem ...
/usr/etc/quotaoff [ -vd ] [ -a ]
/usr/etc/quotaoff [ -o enforce ] filesystem ...
quotaon announces to the system that disk quotas should be enabled on one
or more local filesystems. The filesystem(s) specified must be mounted at
the time. quotaoff announces to the system that filesystems specified
should have any disk quotas turned off. Both these commands behave
slightly differently between EFS and XFS filesystems.
On EFS filesystems, a quota file must be present in the root directory of
the specified filesystem and be named quotas.
XFS filesystems have two components to their disk quota system:
accounting and limit enforcement (see quotas(4) ). Except in the case of
the root filesystem, XFS filesystems require that quota accounting be
turned on at mount time. It is possible to enable and disable limit
enforcement on any XFS filesystem after quota accounting is already
turned on. The default is to turn on/off both accounting and enforcement.
These commands update the status field of devices located in /etc/mtab to
indicate when quotas are on or off for each filesystem.
Options to quotaon [Toc] [Back]
-a All EFS filesystems in /etc/fstab marked read-write with quotas will
have their quotas turned on. This is normally used at boot time to
enable quotas. This option does not apply to XFS filesystems.
-v Display a message for each filesystem where quotas are turned on.
This is typically useful to find out if the command succeeded or
not. See also the -s option to repquota(1M) for monitoring the
quotaon/off status of a given filesystem.
Quotas on a root XFS filesystem will not take effect until the system is
rebooted (with the same filesystem as the root filesystem).
Options to quotaoff [Toc] [Back]
-d Remove all the disk space taken up by quota information. This option
must be used cautiously since it also deletes the limits of all
users. One possibility is to use it in conjunction with
as outlined in quotas(4). This command
applies only to XFS file systems. It is not possible to delete quota
information while leaving quotas turned on.
-a Force all local EFS and XFS filesystems in /etc/fstab to have their
-v Display a message for each filesystem affected.
enforce turns off just the limit enforcement. The default is to
turn off everything. This applies to XFS filesystems only.
Turning on quotas on XFS filesystems (examples)
o Turning On Quotas On an XFS Filesystem Other Than the Root: Use
mount(1M) or /etc/fstab(4) option quota to enable both accounting
and limit enforcement. quotaon utility cannot be used for this
o Turning On Quotas On an XFS Root Filesystem: Use quotaon -v / ,
sync , and reboot. This procedure will enable both accounting and
o Turning Off Quota Limit Enforcement On Any XFS Filesystem: Make
sure that quota accounting and enforcement are both turned on using
repquota -s. Use quotaoff -vo enforce to disable limit enforcement.
This may be done while the filesystem is mounted.
o Turning On Quota Limit Enforcement On Any XFS Filesystem: Make sure
that quota accounting is turned on using repquota -s. Use quotaon
-v. This may be done while the filesystem is mounted.
It is not possible to enable quotas on XFS realtime filesystems.
quotas quota file at the EFS filesystem root
/etc/mtab mounted filesystems
/etc/fstab default filesystems
quotactl(2), fstab(4), mtab(4), repquota(1M), edquota(1M), quotas(4).
PPPPaaaaggggeeee 2222 [ Back ]