Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Disk quota
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Short description|Limit set by a system administrator restricting some file system usage}} {{Multiple issues| {{More citations needed|date=April 2024}} {{lead too short|date=January 2015}} }} [[File:Btrfs qgroup screenshot.png|thumb|upright=1.5|Example of qgroup (quota group) of a [[Btrfs]] filesystem]] A '''disk quota''' is a limit set by a [[system administrator]] that restricts certain aspects of [[file system]] usage on modern [[operating system]]s. The function of using disk quotas is to allocate limited disk space in a reasonable way.<ref>{{Cite web |last=Posodobitev |first=Zadnja |date=24 March 2023 |title=Disk quota system concept |url=https://www.ibm.com/docs/sl/aix/7.3?topic=overview-disk-quota-system-concept |access-date=8 April 2024|website=IBM.com}}</ref> ==Types of quotas== There are two basic types of disk quotas. The first, known as a ''usage quota'' or ''block quota'', limits the amount of disk space that can be used. The second, known as a ''file quota'' or ''inode quota'', limits the number of files and directories that can be created. In addition, administrators usually define a warning level, or ''soft quota'', at which users are informed they are nearing their limit, that is less than the effective limit, or ''hard quota''. There may also be a small ''grace interval'', which allows users to temporarily violate their quotas by certain amounts if necessary. ==Quotas== Disk quotas are typically implemented on a per-user or per-group basis. That is, a [[system administrator]] defines a usage or file quota specific to a certain user or group. In some filesystems (e.g. [[ext4]], [[XFS]], [[f2fs]], [[ZFS]], [[Lustre_(file_system)|Lustre]]) it is also possible to also define block and inode quota limits for a particular project or directory, by adding a project ID to files that directory tree and defining quota limits for the project ID. In doing so, an administrator can prevent one user from consuming an entire file system's resources, or create a system of tiered access, whereby users can have different levels of restriction. This is used, for example, by [[web hosting]] companies to provide different levels of service based upon the needs and means of individual clients. In most cases, quotas are also specific to individual file systems. Should an administrator want to limit the usage of a specific user on all file systems, a separate quota would have to be specified on each. When a soft quota is violated, the system normally sends the user (and sometimes the administrator as well) some sort of message. No further action is typically taken. Some systems prevent disk write operations that would result in hard quota violations from completing successfully, while others wait until the quota has been physically violated before denying write requests. The user is typically notified through the failed write operation error messages generated by the violating applications, while the administrator is almost always sent a notification as well. <!-- Image with inadequate rationale removed: [[Image:NT Quota Management.png|thumb|Quota Management on Windows 2000]] --> Disk quotas are supported by most modern operating systems, including [[Unix-like]] systems, such as [[IBM AIX|AIX]] (using [[JFS (file system)|JFS]] or [[JFS2]] filesystem), [[Linux]] (using [[ext3]], ext4, ext2, XFS (integrated support) among other filesystems), [[Solaris (operating system)|Solaris]] (using [[Unix File System|UFS]] or [[ZFS]]), [[Microsoft Windows]] starting with [[Windows 2000]], [[Novell NetWare]], [[OpenVMS|VMS]], and others. The method of administration for disk quotas varies between each of these operating systems. Unix-like systems typically provide a <code>[[Quota (Unix)|quota]]</code> command for both administration and monitoring; graphical front-ends to the command may also be used. Unix and Unix-like operating systems frequently feature a [[grace period]] where users may exceed their quota limits for a brief period of time. Windows 2000 and newer versions use the "Quota" tab of the disk properties dialog. Other systems provide their own quota management utilities. ==Common Unix disk quota utilities== * {{Mono|quota}} β display a user's file system disk quota and usage; * {{Mono|edquota}} β Edit user quotas for file system; * {{Mono|setquota}} β Set disk quotas for file system; * {{Mono|repquota}} β Summarize quotas for a file system; * {{Mono|quotacheck}} β File system quota consistency checker; * {{Mono|quotaon}} β Turn file system quotas on and off; * [[fstab|/etc/fstab]] ([[Linux]]) or [[fstab|/etc/vfstab]] ([[Solaris (operating system)|Solaris]]) β list of default parameters for each file system including quota status. ==See also== * [[File system]] ==External links== * [http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp?topic=/com.ibm.aix.security/doc/security/disk_quota.htm AIX disk quota system overview], IBM * [http://www.cyberciti.biz/faq/solaris-unix-disk-quota-tutorial/ Solaris disk quota tutorial]. * [http://sourceforge.net/projects/linuxquota/ Linux DiskQuota homepage] <!-- File not found: * [http://www.admin-pains.com/group_quota.asp Per Groups quota management interesting solution] --> <!-- File not found: * [http://www.i-justblog.com/2009/07/quotas-implementation-and-management.html Quota implementation and management] --> == References == {{reflist}} [[Category:System administration]]
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)
Pages transcluded onto the current version of this page
(
help
)
:
Template:Cite web
(
edit
)
Template:Mono
(
edit
)
Template:Multiple issues
(
edit
)
Template:Reflist
(
edit
)
Template:Short description
(
edit
)