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

NAME

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

SYNOPSIS

9       quotaon [ -vugfp ] [ -F format-name ] filesystem...
10       quotaon [ -avugPfp ] [ -F format-name ]
11
12       quotaoff [ -vugPp ] [ -x state ] filesystem...
13       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  Original
45              quota  format  with  16-bit UIDs / GIDs, vfsv0 Quota format with
46              32-bit UIDs / GIDs, 64-bit space usage, 32-bit inode  usage  and
47              limits,  vfsv1  Quota format with 64-bit quota limits and usage,
48              xfs (quota on XFS filesystem)
49
50       -a, --all
51              All automatically mounted (no noauto option) non-NFS filesystems
52              in  /etc/fstab  with  quotas  will  have their quotas turned on.
53              This is normally used at boot time to enable quotas.
54
55       -v, --verbose
56              Display a message for each filesystem where  quotas  are  turned
57              on.
58
59       -u, --user
60              Manipulate user quotas. This is the default.
61
62       -g, --group
63              Manipulate group quotas.
64
65       -P, --project
66              Manipulate project quotas.
67
68       -p, --print-state
69              Instead  of  turning  quotas  on just print state of quotas (ie.
70              whether. quota is on or off)
71
72       -x, --xfs-command enforce
73              Switch on limit enforcement for XFS  filesystems.  This  is  the
74              default  action  for  any  XFS  filesystem.  This option is only
75              applicable to XFS, and is silently ignored for other  filesystem
76              types.
77
78       -f, --off
79              Make quotaon behave like being called as quotaoff.
80
81   quotaoff
82       -F, --format=format-name
83              Report  quota  for  specified  format  (ie. don't perform format
84              autodetection).  Possible format names are:  vfsold  (version  1
85              quota), vfsv0 (version 2 quota), xfs (quota on XFS filesystem)
86
87       -a, --all
88              Force  all  filesystems  in /etc/fstab to have their quotas dis‐
89              abled.
90
91       -v, --verbose
92              Display a message for each filesystem affected.
93
94       -u, --user
95              Manipulate user quotas. This is the default.
96
97       -g, --group
98              Manipulate group quotas.
99
100       -P, --project
101              Manipulate project quotas.
102
103       -p, --print-state
104              Instead of turning quotas off just print state  of  quotas  (ie.
105              whether. quota is on or off)
106
107       -x, --xfs-command delete
108              Free  up  the  space  used to hold quota information (maintained
109              internally) within XFS.  This option is only applicable to  XFS,
110              and is silently ignored for other filesystem types.  It can only
111              be used on a filesystem with quota previously turned off.
112
113       -x, --xfs-command enforce
114              Switch off limit enforcement for XFS filesystems (perform  quota
115              accounting  only).  This  is  the  default  action  for  any XFS
116              filesystem.  This option is  only  applicable  to  XFS,  and  is
117              silently ignored for other filesystem types.
118
119       -x, --xfs-command account
120              This  option  can be used to disable quota accounting. It is not
121              possible to enable quota accounting by quota tools. Use mount(8)
122              for that. This option is only applicable to XFS filesystems, and
123              is silently ignored for other filesystem types.
124

NOTES ON XFS FILESYSTEMS

126       To enable quotas on an XFS filesystem, use mount(8) or /etc/fstab quota
127       option  to enable both accounting and limit enforcement.  quotaon util‐
128       ity cannot be used for this purpose.
129
130       Turning on quotas on an XFS root filesystem requires  the  quota  mount
131       options  be passed into the kernel at boot time through the Linux root‐
132       flags boot option.
133
134       To turn off quota limit enforcement on any XFS filesystem,  first  make
135       sure  that  quota  accounting  and enforcement are both turned on using
136       repquota -v filesystem.  Then, use quotaoff -v  filesystem  to  disable
137       limit enforcement.  This may be done while the filesystem is mounted.
138
139       Turning  on  quota  limit  enforcement on an XFS filesystem is achieved
140       using quotaon -v filesystem.  This may be done while the filesystem  is
141       mounted.
142

FILES

144       aquota.user or aquota.group
145                           quota file at the filesystem root (version 2 quota,
146                           non-XFS filesystems)
147       quota.user or quota.group
148                           quota file at the filesystem root (version 1 quota,
149                           non-XFS filesystems)
150       /etc/fstab          default filesystems
151

SEE ALSO

153       quotactl(2), fstab(5), quota_nld(8), repquota(8), warnquota(8)
154
155
156
1574th Berkeley Distribution                                           QUOTAON(8)
Impressum