setquota: No correct mountpoint specified

在Linux操作系统下的/分区上设置quota配额。如下所示:

[root@shizhanxia.com ~]# setquota -u app01 5000 8000 0 0 /dev/rhel/root
-bash: setquota: command not found

安装quota

[root@shizhanxia.com ~]# yum install quota -y 

Linux系统下在XFS文件系统的根上设置配额失败,观察到以下错误:

[root@shizhanxia.com ~]# setquota -u app01 5000 8000 0 0 /dev/rhel/root 
setquota: Cannot find mountpoint for device /dev/rhel/root
setquota: No correct mountpoint specified.
setquota: Cannot initialize mountpoint scan.

查询和显示XFS文件系统的配额状态

[root@shizhanxia.com ~]# xfs_quota -x -c 'state -v' /
User quota are not enabled on /dev/mapper/rhel-root

如上显示,该操作系统的/分区并没有设置配额。在根文件系统上启用配额略有不同。不允许使用某些参数(mount -o usrquota,grpquota)重新装载XFS文件系统。因此,需要将“rootflags=”引导参数写入grub.cfg中。

解决方案

剩余内容需解锁后查看

您需要赞助解锁才能查看当前内容

赞助者赞助者免费
已付费?登录刷新

原创文章,作者:保哥,如若转载,请注明出处:https://www.shizhanxia.com/1024.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
保哥的头像保哥
上一篇 2024年6月23日
下一篇 2024年6月24日

相关推荐

发表回复

登录后才能评论