This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
computing:storage:linux_disk_quotas [2012/12/28 10:44] gcooper created |
computing:storage:linux_disk_quotas [2015/12/28 08:33] (current) gcooper |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Linux Disk Storage Quotas ====== | ====== Linux Disk Storage Quotas ====== | ||
+ | |||
+ | ===== Debian/ | ||
+ | |||
+ | https:// | ||
+ | |||
+ | ===== CentOS 6 EXT4 Journaled Quotas ===== | ||
+ | |||
+ | Edit ''/ | ||
+ | |||
+ | < | ||
+ | vim /etc/fstab | ||
+ | |||
+ | UUID=add91b35-0362-4186-a001-1e0c9a5079a2 /home ext4 rw, | ||
+ | </ | ||
+ | |||
+ | Remount the filesystems with the new options: | ||
+ | < | ||
+ | |||
+ | mount -o remount / | ||
+ | mount -o remount /home | ||
+ | mount | ||
+ | </ | ||
+ | |||
+ | Then create the quota files and enable quotas: | ||
+ | |||
+ | :!: If quotas are already enabled on some filesystems, | ||
+ | |||
+ | < | ||
+ | quotaoff -avug | ||
+ | quotacheck -avugm | ||
+ | quotaon -avug | ||
+ | </ | ||
+ | |||
+ | You can **ignore** warnings like: | ||
+ | |||
+ | < | ||
+ | quotacheck: Scanning / | ||
+ | quotacheck: Cannot stat old user quota file // | ||
+ | quotacheck: Cannot stat old group quota file // | ||
+ | quotacheck: Cannot stat old user quota file // | ||
+ | quotacheck: Cannot stat old group quota file // | ||
+ | quotacheck: Checked 10337 directories and 204203 files | ||
+ | quotacheck: Old file not found. | ||
+ | quotacheck: Old file not found. | ||
+ | </ | ||
===== Quota Errors ===== | ===== Quota Errors ===== | ||
Line 19: | Line 64: | ||
</ | </ | ||
- | If quotacheck segfaults or otherwise fails, you need to make sure quotas are off ('' | + | If quotacheck segfaults or otherwise fails, you need to make sure quotas are off ('' |
+ | ===== Troubleshooting Journaled Quotas ===== | ||
+ | |||
+ | < | ||
+ | quotaoff -avug | ||
+ | rm -f /aquota.* | ||
+ | rm -f / | ||
+ | reboot | ||
+ | </ |