Linux disk quotas

Установка

 yum install quota

Настройка

/etc/fstab

UUID=c495d9f2-0501-40cd-a974-d57f56d889b2       /mnt/data       ext4    defaults,nodiratime,noatime,usrquota,grpquota   0       2

Выполним

mount -o remount /mnt/data
quotacheck --create --user --group /mnt/data/
quotaon -a -ugv

Статистика

repquota -a
*** Report for user quotas on device /dev/sdb1
Block grace time: 7days; Inode grace time: 7days
                        Block limits                File limits
User            used    soft    hard  grace    used  soft  hard  grace
----------------------------------------------------------------------
root      --      20       0       0              2     0     0       
 
blog.txt · Последние изменения: 2013/01/23 14:51 — Антон Бугреев · []