Description of problem: The customer says directory listing under nfs-ganesha mount of gluster volume shows incorrect entries. He then points to these error messages: root@n-gpx1-c201 ganesha-logs]# sudo cat /var/log/messages |grep NFS Apr 17 19:57:45 n-gpx1-c201 kernel: NFS: directory rtlhd/archive contains a readdir loop.Please contact your server vendor. The file: RTLN7000000000315002_20190319083633.mpg-1553024701 has duplicate cookie 648048 Apr 17 19:57:45 n-gpx1-c201 kernel: NFS: directory rtlhd/archive contains a readdir loop.Please contact your server vendor. The file: RTLN7000000000315002_20190319083633.mpg-1553024701 has duplicate cookie 648048 Apr 17 19:59:10 n-gpx1-c201 kernel: NFS: directory rtlhd/archive contains a readdir loop.Please contact your server vendor. The file: RTLN7000000000330313_20190416045106.mpg-1555426502 has duplicate cookie 922035 Apr 17 19:59:10 n-gpx1-c201 kernel: NFS: directory rtlhd/archive contains a readdir loop.Please contact your server vendor. The file: RTLN7000000000330313_20190416045106.mpg-1555426502 has duplicate cookie 922035 Apr 17 19:59:36 n-gpx1-c201 kernel: NFS: directory rtlhd/archive contains a readdir loop.Please contact your server vendor. The file: RTLN7000000000283166_20190118040019.xml-1547824201 has duplicate cookie 15894 Apr 17 19:59:36 n-gpx1-c201 kernel: NFS: directory rtlhd/archive contains a readdir loop.Please contact your server vendor. The file: RTLN7000000000283166_20190118040019.xml-1547824201 has duplicate cookie 15894 Version-Release number of selected component (if applicable): RHGS 3.4 glusterfs-3.12.2-40.el7rhgs.x86_64 glusterfs-api-3.12.2-40.el7rhgs.x86_64 glusterfs-client-xlators-3.12.2-40.el7rhgs.x86_64 glusterfs-cli-3.12.2-40.el7rhgs.x86_64 glusterfs-events-3.12.2-40.el7rhgs.x86_64 glusterfs-fuse-3.12.2-40.el7rhgs.x86_64 glusterfs-ganesha-3.12.2-40.el7rhgs.x86_64 glusterfs-geo-replication-3.12.2-40.el7rhgs.x86_64 glusterfs-libs-3.12.2-40.el7rhgs.x86_64 glusterfs-rdma-3.12.2-40.el7rhgs.x86_64 glusterfs-server-3.12.2-40.el7rhgs.x86_64 nfs-ganesha-2.5.5-11.el7rhgs.x86_64 nfs-ganesha-gluster-2.5.5-11.el7rhgs.x86_64 How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
The client has readdir chunking on. This is not a supported setup. They should turn it off by uncommenting #Dir_Chunk = 0;
In /etc/ganesha/ganesha.conf Disabling readdir chunking will make readdir work again. Chunking was known to be broken in that release, which is why it's not supported.