从 NFS 客户端访问 xfs 配额信息

从 NFS 客户端访问 xfs 配额信息

我有一个 xfs 文件系统(在 Centos 6.4 服务器上),通过 NFS 安装在客户端服务器(Centos 6.3)上。我似乎无法从客户端访问配额信息。它只是对xfs_quota -c quota ...xfs_quota -xc report ...或不返回任何内容xfs_quota -c print

我需要用户能够从这个客户端(集群头节点)检查他们的配额,但我不会对此 FS 使用用户配额,而是使用项目配额。

有什么想法吗?谢谢。

答案1

对于 CentOS7 有效的是安装quota软件包并在文件服务器上启用服务:

yum install quota
systemctl enable rpc-rquota
systemctl start rpc-rquota

然后,客户端上的quota命令返回了用户配额信​​息。之前我收到“连接被拒绝”错误:

$ quota
quota: error while getting quota from XXX.XXX.XX.XX:/XXXX/XXXX for XXXX (id XXXX): Connection refused

参考

https://bugzilla.redhat.com/show_bug.cgi?id=1207239 https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/storage_administration_guide/nfs-serverconfig#sf2-nfs-accessing-rpc-quote-through-a-firewall

答案2

因此,关于检查软配额,请尝试这个(对我有用,NFS-over-XFS 项目配额):

df -h $HOME # 看起来很奇怪......

相关内容