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  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, --print-state
66              Instead  of  turning  quotas  on just print state of quotas (ie.
67              whether. quota is on or off)
68
69       -f, --off
70              Make quotaon behave like being called as quotaoff.
71
72   quotaoff
73       -F, --format=format-name
74              Report quota for specified  format  (ie.  don't  perform  format
75              autodetection).   Possible  format  names are: vfsold (version 1
76              quota), vfsv0 (version 2 quota), xfs (quota on XFS filesystem)
77
78       -a, --all
79              Force all filesystems in /etc/fstab to have  their  quotas  dis‐
80              abled.
81
82       -v, --verbose
83              Display a message for each filesystem affected.
84
85       -u, --user
86              Manipulate user quotas. This is the default.
87
88       -g, --group
89              Manipulate group quotas.
90
91       -p, --print-state
92              Instead  of  turning  quotas off just print state of quotas (ie.
93              whether. quota is on or off)
94
95       -x, --xfs-command delete
96              Free up the space used to  hold  quota  information  (maintained
97              internally)  within XFS.  This option is only applicable to XFS,
98              and is silently ignored for other filesystem types.  It can only
99              be used on a filesystem with quota previously turned off.
100
101       -x, --xfs-command enforce
102              Switch  on/off  limit  enforcement  for XFS filesystems (perform
103              quota accounting only).  This option is only applicable to  XFS,
104              and is silently ignored for other filesystem types.
105

NOTES ON XFS FILESYSTEMS

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

FILES

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

SEE ALSO

134       quotactl(2), fstab(5), quota_nld(8), repquota(8), warnquota(8)
135
136
137
1384th Berkeley Distribution                                           QUOTAON(8)
Impressum