setquota: No correct mountpoint specified

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

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

安装quota

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

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

[root@yunweixia.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@yunweixia.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.yunweixia.com/solutions/setquota-mountpoint-error-solution-no-correct-mountpoint-specified.html

(0)
运维侠的头像运维侠共建用户
上一篇 2025年7月24日 18:11
下一篇 2025年7月26日 18:11

相关推荐

发表回复

登录后才能评论