User Tools

Site Tools


computing:storage:linux_disk_quotas

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
computing:storage:linux_disk_quotas [2015/11/19 21:19]
gcooper
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/Ubuntu EXT4 Journaled Quotas =====
 +
 +https://www.howtoforge.com/how-to-set-up-journaled-quota-on-debian-lenny
  
 ===== CentOS 6 EXT4 Journaled Quotas ===== ===== CentOS 6 EXT4 Journaled Quotas =====
Line 20: Line 24:
  
 Then create the quota files and enable quotas: Then create the quota files and enable quotas:
 +
 +:!: If quotas are already enabled on some filesystems, you may have to turn off quotas to run ''quotacheck''.
  
 <file> <file>
 +quotaoff -avug
 quotacheck -avugm quotacheck -avugm
 quotaon -avug quotaon -avug
-</file> 
- 
-:!: If quotas are already enabled on some filesystems, you may have to turn off quotas to continue. 
- 
-<file> 
-quotaoff -avug 
 </file> </file>
  
Line 43: Line 44:
 quotacheck: Old file not found. quotacheck: Old file not found.
 quotacheck: Old file not found. quotacheck: Old file not found.
-</file> 
- 
-==== Troubleshooting Journaled Quotas ==== 
- 
-<file> 
-quotaoff -avug 
-rm -f /aquota.* 
-rm -f /home/aquota.* 
-reboot 
 </file> </file>
  
Line 74: Line 66:
 If quotacheck segfaults or otherwise fails, you need to make sure quotas are off (''quotaoff -a'') and remove the quota files in ''/'' (for example, ''aquota.group'' and ''aquota.user'') and then run ''quotacheck -ugamn'' again. If quotacheck segfaults or otherwise fails, you need to make sure quotas are off (''quotaoff -a'') and remove the quota files in ''/'' (for example, ''aquota.group'' and ''aquota.user'') and then run ''quotacheck -ugamn'' again.
  
 +===== Troubleshooting Journaled Quotas =====
 +
 +<file>
 +quotaoff -avug
 +rm -f /aquota.*
 +rm -f /home/aquota.*
 +reboot
 +</file>
computing/storage/linux_disk_quotas.1447993154.txt.gz · Last modified: 2015/11/19 21:19 by gcooper