With CentOS7, I made the leap to XFS (from ext4) and since then I have been unable to query quotas on NFS Clients via the
xfs_quota commands. The
xfs_quota command also does not report any information relating to the NFS mounted XFS file systems. The CentOS7 NFS Server does enforce those quotas over NFS, which is nice, but that can be even more frustrating when NFS Client users bump up against quota limitations, since there is no indication of the real problem.
The following "Workaround" allows users to query disk usage of their NFS mounted file systems, but is not an accurate or sufficient substitution for
xfs_quota queries, nor is it an intuitive solution when quota restrictions are being enforced...
du ‐s .[A‐z]* * | sort ‐n
I've danced around this issue long enough, and would really appreciate if the community were able to assist with understanding why reporting user quotas across XFS formatted NFS shares is not working. CentOS and RHEL support forums are all turning up empty.
I have the
uquota,gquota options in the
/etc/fstab file on the
NFS Server, as so...
/dev/mapper/nfs-home /home xfs defaults,uquota,gquota 0 0
The following is the NFS mount entry in the NFS Client
18.104.22.168:/ /home nfs rw,hard,intr,bg 0 0
rquotad TCP & UDP ports are opened in the Server's firewall.
There are subnet entries for the
rquotad services in the
A query of the
df commands on the NFS Client(s) shows the mounted NFS shares, while the
xfs_quota -c 'df' command does not return any of the NFS mounted file systems.
xfs_quota -c 'print' performs similarly.
- perhaps this is indicative of the problem???
The following commands return the corresponding results...
-bash-$ xfs_quota -x -c 'quota -h -v -u <username>' /home
xfs_quota: cannot setup path for mount /home: No such device or address
-bash-$ xfs_quota -x -c 'quota -h -v -u <username>' 22.214.171.124:/
xfs_quota: cannot setup path for mount 126.96.36.199:/: No such file or directory
-bash-$ xfs_quota -x -c 'quota -h -v -u <username>' 188.8.131.52:/home
xfs_quota: cannot setup path for mount 184.108.40.206:/home: No such file or directory
I am happy to provide more information on the Client-Server relationship if anyone shows interest.