2016-08-24

‎See also: update red hat link

← Older revision

Revision as of 17:12, 24 August 2016

(3 intermediate revisions by the same user not shown)

Line 52:

Line 52:

=== Journaled quota ===

=== Journaled quota ===

+

+

{{Out of date|Section above mentions "Arch does not support vfsv1 anymore."}}

Enabling journaling for disk quota adds the same benefits journalled file systems do for forced shutdowns, meaning that data is less likely to become corrupt.

Enabling journaling for disk quota adds the same benefits journalled file systems do for forced shutdowns, meaning that data is less likely to become corrupt.

Line 106:

Line 108:

{{Tip|If a problem is encountered with the defined quotas, you should first try to correct them with {{ic|edquota ''user1''}} from a root console. Alternatively, {{ic|quotaoff -a}} as root disables all quotas at runtime and the {{ic|1=quotacheck.mode=skip}} [[kernel parameter]] can be used at boot to temporarily disable the {{ic|systemd-quotacheck.service}}.}}

{{Tip|If a problem is encountered with the defined quotas, you should first try to correct them with {{ic|edquota ''user1''}} from a root console. Alternatively, {{ic|quotaoff -a}} as root disables all quotas at runtime and the {{ic|1=quotacheck.mode=skip}} [[kernel parameter]] can be used at boot to temporarily disable the {{ic|systemd-quotacheck.service}}.}}



==Managing==

+

== Managing ==



''Checking
for quota limits and advanced operations
''

+

+

Check
for quota limits and advanced operations
.

+

+

=== Basics ===



===Basics===

Use this command to check for quotas on a specific partition:

Use this command to check for quotas on a specific partition:

+

# repquota /home

# repquota /home

Use this command to check for all quotas that apply to a user:

Use this command to check for all quotas that apply to a user:

+

# quota -u $USER

# quota -u $USER

+

for groups;

for groups;

+

# quota -g $GROUP

# quota -g $GROUP

Line 123:

Line 131:

To copy quota settings from {{ic|''user1''}} to {{ic|''user2''}}, use this:

To copy quota settings from {{ic|''user1''}} to {{ic|''user2''}}, use this:

+

# edquota -p ''user1'' ''user2''

# edquota -p ''user1'' ''user2''

+

To copy quota settings to several other users, append {{ic|''user3''}}, {{ic|''user4''}}, and so on, to the command.

To copy quota settings to several other users, append {{ic|''user3''}}, {{ic|''user4''}}, and so on, to the command.

Line 131:

Line 141:

The idea is to modify the quota settings for one user and copy the setting to all other users. Set the quota for {{ic|''user1''}} and apply the quota to users with a UID greater than 999.

The idea is to modify the quota settings for one user and copy the setting to all other users. Set the quota for {{ic|''user1''}} and apply the quota to users with a UID greater than 999.



# edquota -p ''user1'' `awk -F: '$3 > 999 {print $1}' /etc/passwd`



===Other commands===

+

# edquota -p ''user1'' $(awk -F: '$3 > 999 {print $1}' /etc/passwd)

+

+

=== Other commands ===

+

There are several useful commands:

There are several useful commands:

+

* {{ic|repquota -a}} shows the status on disk usage

* {{ic|repquota -a}} shows the status on disk usage

* {{ic|warnquota}} can be used to warn the users about their quota, configuration in {{ic|/etc/warnquota.conf}}

* {{ic|warnquota}} can be used to warn the users about their quota, configuration in {{ic|/etc/warnquota.conf}}

Line 140:

Line 153:

Lasty, {{ic|quotastats}} is used to give thorough information about the quota system:

Lasty, {{ic|quotastats}} is used to give thorough information about the quota system:

+

{{hc|$ quotastats|

{{hc|$ quotastats|

Number of dquot lookups: 101289

Number of dquot lookups: 101289

Line 154:

Line 168:

== See also ==

== See also ==

+

* http://tldp.org/HOWTO/Quota.html

* http://tldp.org/HOWTO/Quota.html

* http://www.sf.net/projects/linuxquota/

* http://www.sf.net/projects/linuxquota/

* http://www.yolinux.com/TUTORIALS/LinuxTutorialQuotas.html

* http://www.yolinux.com/TUTORIALS/LinuxTutorialQuotas.html



*
http
://
www
.redhat.com/
docs
/
manuals
/
linux
/
RHL-8.0-Manual
/
admin-primer
/
s1
-
storage
-quotas.html

+

*
[https
://
access
.redhat.com/
documentation
/
en-US
/
Red_Hat_Enterprise_Linux
/
7
/
html/Storage_Administration_Guide
/
ch
-
disk
-quotas.html
RHEL7: Disk Quotas]

Show more