0 Members and 2 Guests are viewing this topic.
Enable quotas. There are more people guides on the forum.
## /etc/fstab/dev/mapper/centos_cwp-root / xfs defaults,usrquota,grpquota 0 0UUID=31e6dd88-1e0d-4fb5-be20-1ce79064678d /boot xfs defaults 0 0/dev/mapper/centos_cwp-home /home xfs rw,relatime,attr2,inode64,usrquota,grpquota 0 0/dev/mapper/centos_cwp-swap swap swap defaults 0 0
[root@CWP ~]# xfs_quota -x -c "print"Filesystem Pathname/ /dev/mapper/centos_cwp-root (uquota, gquota)/boot /dev/sda2/home /dev/mapper/centos_cwp-home (uquota, gquota)
[root@CWP ~]# xfs_quota -x -c "report -ubih" /homeUser quota on /home (/dev/mapper/centos_cwp-home) Blocks InodesUser ID Used Soft Hard Warn/Grace Used Soft Hard Warn/Grace---------- --------------------------------- ---------------------------------root 675.0M 0 0 00 [------] 1.7k 0 0 00 [------]xxxx 12.8G 0 0 00 [------] 1.4m 0 0 00 [------]xxxxx 36.1M 0 0 00 [------] 1.6k 0 0 00 [------]
[root@CWP ~]# xfs_quota -x -c "state"User quota state on / (/dev/mapper/centos_cwp-root) Accounting: ON Enforcement: ON Inode: #5090795 (9 blocks, 8 extents)Group quota state on / (/dev/mapper/centos_cwp-root) Accounting: ON Enforcement: ON Inode: #5090801 (10 blocks, 10 extents)Project quota state on / (/dev/mapper/centos_cwp-root) Accounting: OFF Enforcement: OFF Inode: #5090801 (10 blocks, 10 extents)Blocks grace time: [7 days]Inodes grace time: [7 days]Realtime Blocks grace time: [7 days]User quota state on /home (/dev/mapper/centos_cwp-home) Accounting: ON Enforcement: ON Inode: #67 (2 blocks, 2 extents)Group quota state on /home (/dev/mapper/centos_cwp-home) Accounting: ON Enforcement: ON Inode: #68 (3 blocks, 3 extents)Project quota state on /home (/dev/mapper/centos_cwp-home) Accounting: OFF Enforcement: OFF Inode: #68 (3 blocks, 3 extents)Blocks grace time: [7 days]Inodes grace time: [7 days]Realtime Blocks grace time: [7 days]