1QUOTAON(8) System Manager's Manual QUOTAON(8)
2
3
4
6 quotaon, quotaoff - turn filesystem quotas on and off
7
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
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 (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 off limit enforcement for XFS filesystems (perform quota
100 accounting only). This option is only applicable to XFS, and is
101 silently ignored for other filesystem types.
102
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 -s. Then, use quotaoff -vo to disable limit enforcement.
115 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. This may be done while the filesystem is mounted.
119
121 aquota.user or aquota.group
122 quota file at the filesystem root (version 2 quota,
123 non-XFS filesystems)
124 quota.user or quota.group
125 quota file at the filesystem root (version 1 quota,
126 non-XFS filesystems)
127 /etc/fstab default filesystems
128
130 quotactl(2), fstab(5), repquota(8).
131
132
133
1344th Berkeley Distribution QUOTAON(8)