Sysadmin/Quota: Difference between revisions
Created page with "== User quota == The /srv filesystem has usrquota enabled with the following per-user limits: soft hard /srv space: 10G 12G /srv files: 1M 1.2..." |
No edit summary |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
== User quota == | == User quota == | ||
The /srv filesystem has usrquota enabled with the following per-user limits: | The /srv filesystem on [[Machine/sunjammer]] has usrquota enabled with the following per-user limits: | ||
soft hard | soft hard | ||
| Line 27: | Line 27: | ||
* Q: Um, I said what I wanted was more space on my account, *please* | * Q: Um, I said what I wanted was more space on my account, *please* | ||
* A: Sure, hang on. < clickety...clickety... rm -r /home/$USER > There, you've got *plenty* of space now! | * A: Sure, hang on. < clickety...clickety... rm -r /home/$USER > There, you've got *plenty* of space now! | ||
(from [http://www.nyms.de/bofhoriginaleng.html BOFH, Part 3]) | |||
== Additional info for sysadmins == | == Additional info for sysadmins == | ||
| Line 35: | Line 37: | ||
=== Show quota summary for all users === | === Show quota summary for all users === | ||
repquota -vast | |||
repquota -vast | |||
=== Create quota from scratch === | === Create quota from scratch === | ||
quotacheck -m -c /home | |||
quotacheck -m -c /home | quotacheck -m -c /mail | ||
quotacheck -m -c /mail | quotaon -au | ||
quotaon -au | |||
=== Reset quota limits for all users === | === Reset quota limits for all users === | ||
cd /home | |||
cd /home | for i in *; do | ||
for i in *; do | |||
# 25G 30G 1M 1.2M | # 25G 30G 1M 1.2M | ||
setquota -u $i 26214400 31457280 1024000 1200000 /home | setquota -u $i 26214400 31457280 1024000 1200000 /home | ||
# 1G 1.2G 1M 1.2M | # 1G 1.2G 1M 1.2M | ||
setquota -u $i 10485760 12582912 1024000 1200000 /mail | setquota -u $i 10485760 12582912 1024000 1200000 /mail | ||
done | done | ||
=== Check quota limits in cron.daily === | === Check quota limits in cron.daily === | ||
See `/etc/warnquota.conf` and `/etc/quotatab` | See `/etc/warnquota.conf` and `/etc/quotatab` | ||
warnquota -u -s | |||
warnquota -u -s | |||
=== Crash recovery === | === Crash recovery === | ||