Linux Disk Quota
[userA@groupA1]$ cat TESTFILE > TESTFILE1
sda8: write failed, group block limit reached.
cat: write error: Disk quota exceeded
# cat /etc/fstab
/dev/sda3 / ext3 defaults 1 1
/dev/sda8 /home ext3 defaults,usrquota,grpquota 1 2
/dev/sda7 /tmp ext3 defaults 1 2
/dev/sda6 /var ext3 defaults 1 2
/dev/sda5 /opt ext3 defaults 1 2
/dev/sda1 /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/dev/sda2 swap swap defaults 0 0
Note: Here is the command to edit quota for group (This has to run as root).
# edquota -g groupA1
[userA@groupA1]$ quota -gl
Disk quotas for group groupA1 (gid 60000):
Filesystem blocks quota limit grace files quota limit grace
/dev/sda8 185168* 150000 200000 6days 8393 0 0
No comments:
Post a Comment