xfs_quota是redhat自带的,不需要额外安装
# vi /etc/fstab
/dev/sda3 /home xfs defaults,usrquota,grpquota 0 0
:wq
重启服务器生效
(若不执行上两步会报:xfs_quota:cannotset limits function not implemented错误)
为aa账号设置配额:
# xfs_quota–x –c “limit bsoft=30G bhard=40G aa” /home
查看所有配额情况:
# xfs_quota–x –c report /home
时间: 2024-11-06 19:00:07