xfs分区设置空间配额


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