我想在我的 CentOS 6 服务器上设置 xfs 配额,所以我安装了xfsprogs
软件包。但是它显示command limit not found
如下。
[root@myserver ~]# xfs_quota
xfs_quota> print
Filesystem Pathname
/vol1 /dev/sda1 (uquota, gquota)
/vol2 /dev/sdb1 (uquota, gquota)
xfs_quota> help limit
command limit not found
xfs_quota> ?
df [-bir] [-hn] [-f file] -- show free and used counts for blocks and inodes
help [command] -- help for one or all commands
print -- list known mount points and projects
quit -- exit the program
quota [-bir] [-gpu] [-hnNv] [-f file] [id|name]... -- show usage and limits
Use 'help commandname' for extended help.
虽然我以 身份执行命令root
,但是管理命令不可用。
我是否遗漏了什么?
答案1
也许只是帮助缺少限制的文档?您xfs_quota -x -c "limit -u bsoft=100m bhard=120m someuser"
已经尝试过类似的事情了吗?