QUOTAON(8)

πŸ“¦
version 4.11 Β· 3 versions
  • 4.11 Β· alpine 3.24, centos-stream 10, centos-stream 9, debian bookworm, debian trixie, fedora 43, fedora 44, nixpkgs unstable, opensuse-leap 16.0, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 14.5 Β· freebsd 14.5
  • 15.1 Β· freebsd 15.1
, in alpine 3.24, centos-stream 10, centos-stream 9, debian bookworm, debian trixie, fedora 43, fedora 44, nixpkgs unstable, opensuse-leap 16.0, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

🌸 NAME 🌸

okay so bestie, meet the iconic twin duo: quotaon and quotaoff β€” they turn filesystem quotas on and off. That's it, that's the gig. They live in section 8 of the System Manager's Manual, so yeah, they're admin-core πŸ’…


✨ SYNOPSIS ✨

quotaon [ -vugfp ] [ -F format-name ] filesystem...
quotaon [ -avugPfp ] [ -F format-name ]

quotaoff [ -vugPp ] [ -x state ] filesystem...
quotaoff [ -avugp ]

πŸ¦‹ DESCRIPTION πŸ¦‹

πŸ’– quotaon

quotaon</p> announces to the system that disk quotas should be enabled on one or more filesystems. The filesystem quota files must be present in the root directory of the specified filesystem, and they have to be named one of these, no exceptions:

  • aquota.user β€” for version 2 user quota
  • quota.user β€” for version 1 user quota
  • aquota.group β€” for version 2 group quota
  • quota.group β€” for version 1 group quota

XFS filesystems are a special case, bestie, they do their own thing. XFS considers quota information as filesystem metadata and uses journaling to provide a higher level guarantee of consistency. There are two components to the XFS disk quota system: accounting and limit enforcement. XFS filesystems require that quota accounting be turned on at mount time. It is possible to enable and disable limit enforcement on an XFS filesystem after quota accounting is already turned on. The default is to turn on both accounting and enforcement. πŸ‘‘

The XFS quota implementation does not maintain quota information in user-visible files β€” nope β€” but rather stores this information internally. 🀫

πŸ’œ quotaoff

quotaoff</p> announces to the system that the specified filesystems should have any disk quotas turned off. Bye bye quota era. 🫢


🌈 OPTIONS 🌈

πŸŽ€ quotaon

  • -F, --format=format-name β€” Report quota for specified format (ie. don't perform format autodetection). Possible format names are: vfsold Original quota format with 16-bit UIDs / GIDs, vfsv0 Quota format with 32-bit UIDs / GIDs, 64-bit space usage, 32-bit inode usage and limits, vfsv1 Quota format with 64-bit quota limits and usage, xfs (quota on XFS filesystem)
  • -a, --all β€” All automatically mounted (no noauto option) non-NFS filesystems in /etc/fstab with quotas will have their quotas turned on. This is normally used at boot time to enable quotas.
  • -v, --verbose β€” Display a message for each filesystem where quotas are turned on.
  • -u, --user β€” Manipulate user quotas. This is the default.
  • -g, --group β€” Manipulate group quotas.
  • -P, --project β€” Manipulate project quotas.
  • -p, --print-state β€” Instead of turning quotas on just print state of quotas (ie. whether. quota is on or off)
  • -x, --xfs-command enforce β€” Switch on limit enforcement for XFS filesystems. This is the default action for any XFS filesystem. This option is only applicable to XFS, and is silently ignored for other filesystem types.
  • -f, --off β€” Make quotaon behave like being called as quotaoff.

πŸ’– quotaoff

  • -F, --format=format-name β€” Report quota for specified format (ie. don't perform format autodetection). Possible format names are: vfsold (version 1 quota), vfsv0 (version 2 quota), xfs (quota on XFS filesystem)
  • -a, --all β€” Force all filesystems in /etc/fstab to have their quotas disabled.
  • -v, --verbose β€” Display a message for each filesystem affected.
  • -u, --user β€” Manipulate user quotas. This is the default.
  • -g, --group β€” Manipulate group quotas.
  • -P, --project β€” Manipulate project quotas.
  • -p, --print-state β€” Instead of turning quotas off just print state of quotas (ie. whether. quota is on or off)
  • -x, --xfs-command delete β€” Free up the space used to hold quota information (maintained internally) within XFS. This option is only applicable to XFS, and is silently ignored for other filesystem types. It can only be used on a filesystem with quota previously turned off.
  • -x, --xfs-command enforce β€” Switch off limit enforcement for XFS filesystems (perform quota accounting only). This is the default action for any XFS filesystem. This option is only applicable to XFS, and is silently ignored for other filesystem types.
  • -x, --xfs-command account β€” This option can be used to disable quota accounting. It is not possible to enable quota accounting by quota tools. Use mount(8) for that. This option is only applicable to XFS filesystems, and is silently ignored for other filesystem types.

πŸ”₯ NOTES ON XFS FILESYSTEMS πŸ”₯

To enable quotas on an XFS filesystem, use mount(8) or /etc/fstab quota option to enable both accounting and limit enforcement. The quotaon utility cannot be used for this purpose. sorry bestie, that's just how XFS is 😭

Turning on quotas on an XFS root filesystem requires the quota mount options be passed into the kernel at boot time through the Linux rootflags boot option.

To turn off quota limit enforcement on any XFS filesystem, first make sure that quota accounting and enforcement are both turned on using repquota -v filesystem. Then, use quotaoff -v filesystem to disable limit enforcement. This may be done while the filesystem is mounted. 🫢

Turning on quota limit enforcement on an XFS filesystem is achieved using quotaon -v filesystem. This may be done while the filesystem is mounted. ✨


πŸ“ FILES πŸ“

  • aquota.user or aquota.group β€” quota file at the filesystem root (version 2 quota, non-XFS filesystems)
  • quota.user or quota.group β€” quota file at the filesystem root (version 1 quota, non-XFS filesystems)
  • /etc/fstab β€” default filesystems

πŸ‘‘ SEE ALSO πŸ‘‘

quotactl(2), fstab(5), quota_nld(8), repquota(8), warnquota(8)


and that's the whole page, bestie 🧚 this one came from the 4th Berkeley Distribution, and yeah it's QUOTAON(8) β€” go forth and quota responsibly πŸ’–βœ¨