xfs分区设置空间配额

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


本文出自 “linux” 博客,请务必保留此出处http://yangzhiming.blog.51cto.com/4849999/1717745

文章来自:http://yangzhiming.blog.51cto.com/4849999/1717745
© 2021 jiaocheng.bubufx.com  联系我们
ICP备案:鲁ICP备09046678号-3