Access xfs quota info from NFS client

I've got an xfs filesystem (on a Centos 6.4 server) mounted via NFS on a client server (Centos 6.3). I can't seem to access the quota info from the client. It simply returns nothing for xfs_quota -c quota ... or xfs_quota -xc report ... or xfs_quota -c print

I need for users to be able to check their quotas from this client (a cluster head node), but I don't use user quotas for this FS, but instead project quotas.

Any thoughts? Thanks.


Solution 1:

What worked for CentOS7 was to install quota package and enable the service on the file server:

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

Then on the client the quota command returned user quota information. Previously I received "Connection refused" error:

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

References

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