XFS_Quota - Issue for group - Centos 6


#1

I set xfs_quota limit to group id. But hard/soft limit doesn’t take effect. Only it works if I set the quota limit to users.

group name : itshare

username : testuser

“testuser” mapped to group “itshare”

If you see the below steps, I have set soft limit to 3MB and hard limit to 4MB for the group itshare.

but user “testuser” can upload the file more than the limit specified.

[root@srv1 ~]#xfs_quota -x -c 'limit -g bsoft=3m bhard=4m itshare'  /home

[root@srv1 ~]# xfs_quota -x -c 'report -h ' /home
User quota on /home (/dev/mapper/centos-home)
                        Blocks              
User ID      Used   Soft   Hard Warn/Grace   
---------- --------------------------------- 
root       391.8M      0      0  00 [------]
testuser       5.7M     0     0  00 [-none-]


Group quota on /home (/dev/mapper/centos-home)
                        Blocks              
Group ID     Used   Soft   Hard Warn/Grace   
---------- --------------------------------- 
root       391.8M      0      0  00 [------]
testuser       5.7M      0      0  00 [------]
itshare         0     3M     4M  00 [------]
[root@srv1 ~]#

[root@srv1 ~]# id testuser
uid=1000(testuser) gid=1000(testuser) groups=1000(testuser),1003(itshare)
[root@srv1 ~]#

#2

Hi

Make sure that have you enabled user quota support and group quota support on home directory and try again