1QUOTAON(8) System Manager's Manual QUOTAON(8)
2
3
4
6 quotaon, quotaoff - turn filesystem quotas on and off
7
9 /usr/sbin/quotaon [ -vugfp ] [ -F format-name ] filesystem...
10 /usr/sbin/quotaon [ -avugfp ] [ -F format-name ]
11
12 /usr/sbin/quotaoff [ -vugp ] [ -x state ] filesystem...
13 /usr/sbin/quotaoff [ -avugp ]
14
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
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 -x, --xfs-command enforce
70 Switch on limit enforcement for XFS filesystems. This is the
71 default action for any XFS filesystem. This option is only
72 applicable to XFS, and is silently ignored for other filesystem
73 types.
74
75 -f, --off
76 Make quotaon behave like being called as quotaoff.
77
78 quotaoff
79 -F, --format=format-name
80 Report quota for specified format (ie. don't perform format
81 autodetection). Possible format names are: vfsold (version 1
82 quota), vfsv0 (version 2 quota), xfs (quota on XFS filesystem)
83
84 -a, --all
85 Force all filesystems in /etc/fstab to have their quotas dis‐
86 abled.
87
88 -v, --verbose
89 Display a message for each filesystem affected.
90
91 -u, --user
92 Manipulate user quotas. This is the default.
93
94 -g, --group
95 Manipulate group quotas.
96
97 -p, --print-state
98 Instead of turning quotas off just print state of quotas (ie.
99 whether. quota is on or off)
100
101 -x, --xfs-command delete
102 Free up the space used to hold quota information (maintained
103 internally) within XFS. This option is only applicable to XFS,
104 and is silently ignored for other filesystem types. It can only
105 be used on a filesystem with quota previously turned off.
106
107 -x, --xfs-command enforce
108 Switch off limit enforcement for XFS filesystems (perform quota
109 accounting only). This is the default action for any XFS
110 filesystem. This option is only applicable to XFS, and is
111 silently ignored for other filesystem types.
112
113 -x, --xfs-command account
114 This option can be used to disable quota accounting. It is not
115 possible to enable quota accounting by quota tools. Use mount(8)
116 for that. This option is only applicable to XFS filesystems, and
117 is silently ignored for other filesystem types.
118
120 To enable quotas on an XFS filesystem, use mount(8) or /etc/fstab quota
121 option to enable both accounting and limit enforcement. quotaon util‐
122 ity cannot be used for this purpose.
123
124 Turning on quotas on an XFS root filesystem requires the quota mount
125 options be passed into the kernel at boot time through the Linux root‐
126 flags boot option.
127
128 To turn off quota limit enforcement on any XFS filesystem, first make
129 sure that quota accounting and enforcement are both turned on using
130 repquota -v filesystem. Then, use quotaoff -v filesystem to disable
131 limit enforcement. This may be done while the filesystem is mounted.
132
133 Turning on quota limit enforcement on an XFS filesystem is achieved
134 using quotaon -v filesystem. This may be done while the filesystem is
135 mounted.
136
138 aquota.user or aquota.group
139 quota file at the filesystem root (version 2 quota,
140 non-XFS filesystems)
141 quota.user or quota.group
142 quota file at the filesystem root (version 1 quota,
143 non-XFS filesystems)
144 /etc/fstab default filesystems
145
147 quotactl(2), fstab(5), quota_nld(8), repquota(8), warnquota(8)
148
149
150
1514th Berkeley Distribution QUOTAON(8)