[Gluster-users] Gluster clients can't see directories that exist or are created within a mounted volume, but can enter them.

Sam McLeod mailinglists at smcleod.net
Sun Nov 5 23:43:28 UTC 2017


We've got an issue with Gluster (3.12.x) where clients can't see directories that exist or are created within a mounted volume.


We can see files, but not directories (with ls, find etc...)
We can enter (cd) into directories, even if we can't see them.

- Host typology is: 2 replica, 1 arbiter.
- Volumes are: replicated and running on XFS on the hosts.
- Clients are: GlusterFS native fuse client (mount.glusterfs), the same version and op-version as the hosts.
- Gluster server and client version: 3.12.2 (also found on 3.12.1, unsure about previous versions) running on CentOS 7.


Examples:


mount:
192.168.0.151:/gluster_vol on /var/lib/mountedgluster type fuse.glusterfs (rw,relatime,user_id=0,group_id=0,default_permissions,allow_other,max_read=131072)
 
root at gluster-client:/var/lib/mountedgluster  # ls -la
total 0
 
(note no . or .. directories)
 
root at gluster-client:/var/lib/mountedgluster  # touch test
root at gluster-client:/var/lib/mountedgluster  # ls -la
total 0
-rw-r--r--. 1 root root 0 Nov  6 10:10 test
 
("test" file shows up. Still no . or .. directories.)
 
root at gluster-client:/var/lib/mountedgluster  # mkdir testdir
root at gluster-client:/var/lib/mountedgluster  # ls -la
total 0
-rw-r--r--. 1 root root 0 Nov  6 10:10 test
 
(directory was made, but doesn't show in ls)
 
root at gluster-client:/var/lib/mountedgluster  # cd testdir
root at gluster-client:/var/lib/mountedgluster/testdir  # ls -la
total 0
 
(cd works, no . or .. shown in ls though)
 
root at gluster-client:/var/lib/mountedgluster/testdir  # touch test
root at gluster-client:/var/lib/mountedgluster/testdir  # ls -la
total 0
-rw-r--r--. 1 root root 0 Nov  6 10:10 test
 
(can create test file in testdir)
 
 
root at gluster-client:/var/lib/mountedgluster/testdir  # cd ..
root at gluster-client:/var/lib/mountedgluster  # ls -ld testdir
drwxr-xr-x. 2 root root 4096 Nov  6 10:10 testdir
 
(going back to parent directory, although ls -la doesn't show the directory, if I specify the name to ls -ld it does show)
 
 

--
Sam McLeod 
https://twitter.com/s_mcleod
https://smcleod.net

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gluster.org/pipermail/gluster-users/attachments/20171106/b4f2fd40/attachment.html>


More information about the Gluster-users mailing list