User Tools

Site Tools


computing:storage:linux_disk_quotas

This is an old revision of the document!


Linux Disk Storage Quotas

CentOS 6 EXT4 Journaled Quotas

Edit /etc/fstab and add usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0:

vim /etc/fstab

UUID=add91b35-0362-4186-a001-1e0c9a5079a2 /home ext4    rw,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0  1 2

Troubleshooting Journaled Quotas

quotaoff -avug
rm -f /aquota.*
rm -f /home/aquota.*
reboot

Quota Errors

Sometimes you may get messages such as these at the console or in /var/log/messages:

Quota Error: kernel: VFS: Error -5 occured while creating quota.

This is typical if the quota isn't working right or is corrupted.

Perform these commands as root:

quotaoff -av
quotacheck -ugamn
quotaon -avug

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.

computing/storage/linux_disk_quotas.1401645559.txt.gz · Last modified: 2014/06/01 11:59 by gcooper