1QUOTAON(8)                  System Manager's Manual                 QUOTAON(8)
2
3
4

NAME

6       quotaon, quotaoff - turn filesystem quotas on and off
7

SYNOPSIS

9       /sbin/quotaon [ -vugfp ] [ -F format-name ] filesystem...
10       /sbin/quotaon [ -avugfp ] [ -F format-name ]
11
12       /sbin/quotaoff [ -vugp ] [ -x state ] filesystem...
13       /sbin/quotaoff [ -avugp ]
14

DESCRIPTION

16   quotaon
17       quotaon  announces  to the system that disk quotas should be enabled on
18       one or more filesystems. The filesystem quota files must be present  in
19       the  root  directory  of  the  specified filesystem and be named either
20       aquota.user (for version 2 user quota), quota.user (for version 1  user
21       quota),  aquota.group  (for version 2 group quota), or quota.group (for
22       version 1 group quota).
23
24       XFS filesystems are a special case - XFS considers quota information as
25       filesystem metadata and uses journaling to provide a higher level guar‐
26       antee of consistency.  There are two components to the XFS  disk  quota
27       system: accounting and limit enforcement.  XFS filesystems require that
28       quota accounting be turned on at mount time.  It is possible to  enable
29       and disable limit enforcement on an XFS filesystem after quota account‐
30       ing is already turned on.  The default is to turn  on  both  accounting
31       and enforcement.
32
33       The  XFS  quota  implementation  does not maintain quota information in
34       user-visible files, but rather stores this information internally.
35
36   quotaoff
37       quotaoff announces to the system that the specified filesystems  should
38       have any disk quotas turned off.
39

OPTIONS

41   quotaon
42       -F, --format=format-name
43              Report  quota  for  specified  format  (ie. don't perform format
44              autodetection).  Possible format names are:  vfsold  (version  1
45              quota), vfsv0 (version 2 quota), xfs (quota on XFS filesystem)
46
47       -a, --all
48              All automatically mounted (no noauto option) non-NFS filesystems
49              in /etc/fstab with quotas will  have  their  quotas  turned  on.
50              This is normally used at boot time to enable quotas.
51
52       -v, --verbose
53              Display  a  message  for each filesystem where quotas are turned
54              on.
55
56       -u, --user
57              Manipulate user quotas. This is the default.
58
59       -g, --group
60              Manipulate group quotas.
61
62       -p, --print-state
63              Instead of turning quotas on just print  state  of  quotas  (ie.
64              whether. quota is on or off)
65
66       -f, --off
67              Make quotaon behave like being called as quotaoff.
68
69   quotaoff
70       -F, --format=format-name
71              Report  quota  for  specified  format  (ie. don't perform format
72              autodetection).  Possible format names are:  vfsold  (version  1
73              quota), vfsv0 (version 2 quota), xfs (quota on XFS filesystem)
74
75       -a, --all
76              Force  all  filesystems  in /etc/fstab to have their quotas dis‐
77              abled.
78
79       -v, --verbose
80              Display a message for each filesystem affected.
81
82       -u, --user
83              Manipulate user quotas. This is the default.
84
85       -g, --group
86              Manipulate group quotas.
87
88       -p, --print-state
89              Instead of turning quotas off just print state  of  quotas  (ie.
90              whether. quota is on or off)
91
92       -x, --xfs-command delete
93              Free  up  the  space  used to hold quota information (maintained
94              internally) within XFS.  This option is only applicable to  XFS,
95              and is silently ignored for other filesystem types.  It can only
96              be used on a filesystem with quota previously turned off.
97
98       -x, --xfs-command enforce
99              Switch on/off limit enforcement  for  XFS  filesystems  (perform
100              quota  accounting only).  This option is only applicable to XFS,
101              and is silently ignored for other filesystem types.
102

NOTES ON XFS FILESYSTEMS

104       To enable quotas on an XFS filesystem, use mount(8) or /etc/fstab quota
105       option  to enable both accounting and limit enforcement.  quotaon util‐
106       ity cannot be used for this purpose.
107
108       Turning on quotas on an XFS root filesystem requires  the  quota  mount
109       options  be passed into the kernel at boot time through the Linux root‐
110       flags boot option.
111
112       To turn off quota limit enforcement on any XFS filesystem,  first  make
113       sure  that  quota  accounting  and enforcement are both turned on using
114       repquota -v filesystem.  Then, use quotaoff -v  filesystem  to  disable
115       limit enforcement.  This may be done while the filesystem is mounted.
116
117       Turning  on  quota  limit  enforcement on an XFS filesystem is achieved
118       using quotaon -v filesystem.  This may be done while the filesystem  is
119       mounted.
120

FILES

122       aquota.user or aquota.group
123                           quota file at the filesystem root (version 2 quota,
124                           non-XFS filesystems)
125       quota.user or quota.group
126                           quota file at the filesystem root (version 1 quota,
127                           non-XFS filesystems)
128       /etc/fstab          default filesystems
129

SEE ALSO

131       quotactl(2), fstab(5), quota_nld(8), repquota(8), warnquota(8)
132
133
134
1354th Berkeley Distribution                                           QUOTAON(8)
Impressum