quotaon, quotaoff - turn filesystem quotas on and off
/usr/sbin/quotaon [ -vug ] filesystem...
/usr/sbin/quotaon [ -avug ]
/usr/sbin/quotaoff [ -vugdo ] filesystem...
/usr/sbin/quotaoff [ -avugdo ]
quotaon announces to the system that disk quotas should be enabled on one or more filesystems. The filesystem quota files must be present in the root directory of the specified filesystem and be named quota.user for userquota or quota.group for groupquota.
XFS filesystems are a special case XFS considers quota information as filesystem metadata and uses journalling to provide a higher level guarantee of consistency. There are two components to the XFS disk quota system: accounting and limit enforcement. 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 both accounting and enforcement.
The XFS quota implementation does not maintain quota information in quota.user and quota.group files, but rather stores this information internally.
quotaoff announces to the system that the specified filesystems should have any disk quotas turned off.
|
-a |
All filesystems in /etc/fstab marked readwrite with quotas will have their quotas turned on. This is normally used at boot time to enable quotas. |
||
|
-v -u -g |
Display a message for each filesystem where quotas are turned on. Manipulate user quotas. This is the default. Manipulate group quotas. |
|
-a -v -u -g -d |
Force all filesystems in /etc/fstab to have their quotas disabled. Display a message for each filesystem affected. Manipulate user quotas. This is the default. Manipulate group quotas. Free up the space used to hold quota information (maintained internally) within XFS. This option is only applicable to XFS, and is silently ignored for other filesystem types. |
||
|
-o |
Switch off limit enforcement for XFS filesystems (perform quota accounting only). This option is only applicable to XFS, and is silently ignored for other filesystem types. |
Use mount(8) or /etc/fstab option quota to enable both accounting and limit enforcement. quotaon utility cannot be used for this purpose.
Use quotaon v /, and reboot(8). This procedure will enable both accounting and limit enforcement.
Make sure that quota accounting and enforcement are both turned on using repquota s. Use quotaoff vo to disable limit enforcement. This may be done while the filesystem is mounted.
Make sure that quota accounting is turned on using repquota s. Use quotaon v. This may be done while the filesystem is mounted.
|
quota.user |
user quota file at filesystem root |
quotactl(2), fstab(5), repquota(8).