Peng Yu
2015-May-18 14:19 UTC
[Gluster-users] How to let glusterfs support getfacl and setfacl?
On Mon, May 18, 2015 at 7:51 AM, Niels de Vos <ndevos at redhat.com> wrote:> On Mon, May 18, 2015 at 06:57:34AM -0500, Peng Yu wrote: >> On Monday, May 18, 2015, Niels de Vos <ndevos at redhat.com> wrote: >> >> > On Sun, May 17, 2015 at 07:50:40PM -0500, Peng Yu wrote: >> > > I see the glusterfs should support get/setfacl. >> > > >> > > >> > http://www.gluster.org/community/documentation/index.php/Gluster_3.2:_Setting_Access_ACLs >> > > >> > > But when I try it, it says the following. >> > > >> > > $ setfacl -m 'u:myuser:r-x' somedir >> > > setfacl: somedir: Operation not supported >> > > >> > > `/etc/fstab` has the mount /mnt/glusterfs, where somedir is. >> > > >> > > rigel:/gv /mnt/glusterfs glusterfs defaults,_netdev 0 0 >> > > >> > > Does anybody know how to make get/setfacl available in glusterfs? >> > >> > You can enable support for ACLs with the "acl" mount option. In your >> > /etc/fstab, you would have something like this: >> > >> > rigel:/gv /mnt/glusterfs glusterfs _netdev,acl 0 0 >> >> >> I tried this. But it still see the same error message when I call setfacl. >> Also, setfacl works on directories in glusterfs servers. > > After the change in /etc/fstab, you need to unmount and mount the volume > (remount does not work for FUSE mounts). Can you confirm you did this?I restarted the machine, which is equivalent to unmount and mount. The strange thing is that I have two machines with supposedly identical configurations, and they use the same gluster mount. But set/getfacl works on one of them but not the other. Here is what I see in the machine where set/getfacl does not work. Do you see anything wrong? $ sudo cat /var/log/glusterfs/mnt-glusterfs.log [2015-05-18 14:06:53.451453] W [glusterfsd.c:1002:cleanup_and_exit] (-->/lib/x86_64-linux-gnu/libc.so.6(clone+0x6d) [0x7f3ad0e7747d] (-->/lib/x86_64-linux-gnu/libpthread.so.0(+0x8182) [0x7f3ad114a182] (-->/usr/sbin/glusterfs(glusterfs_sigwaiter+0xd5) [0x7f3ad1c33f05]))) 0-: received signum (15), shutting down [2015-05-18 14:06:53.470234] I [fuse-bridge.c:5260:fini] 0-fuse: Unmounting '/mnt/glusterfs'. [2015-05-18 14:06:54.370347] I [fuse-bridge.c:4628:fuse_thread_proc] 0-fuse: unmounting /mnt/glusterfs [2015-05-18 14:08:07.610812] I [glusterfsd.c:1910:main] 0-/usr/sbin/glusterfs: Started running /usr/sbin/glusterfs version 3.4.2 (/usr/sbin/glusterfs --acl --volfile-id=/gv --volfile-server=rigel /mnt/glusterfs) [2015-05-18 14:08:07.646369] I [socket.c:3480:socket_init] 0-glusterfs: SSL support is NOT enabled [2015-05-18 14:08:07.646411] I [socket.c:3495:socket_init] 0-glusterfs: using system polling thread [2015-05-18 14:08:07.763657] I [graph.c:239:gf_add_cmdline_options] 0-gv-md-cache: adding option 'cache-posix-acl' for volume 'gv-md-cache' with value 'true' [2015-05-18 14:08:07.800420] I [socket.c:3480:socket_init] 0-gv-client-1: SSL support is NOT enabled [2015-05-18 14:08:07.800442] I [socket.c:3495:socket_init] 0-gv-client-1: using system polling thread [2015-05-18 14:08:07.801837] I [socket.c:3480:socket_init] 0-gv-client-0: SSL support is NOT enabled [2015-05-18 14:08:07.801855] I [socket.c:3495:socket_init] 0-gv-client-0: using system polling thread [2015-05-18 14:08:07.801882] I [client.c:2154:notify] 0-gv-client-0: parent translators are ready, attempting connect on transport [2015-05-18 14:08:07.802143] I [client.c:2154:notify] 0-gv-client-1: parent translators are ready, attempting connect on transport Given volfile: +------------------------------------------------------------------------------+ 1: volume gv-client-0 2: type protocol/client 3: option transport-type tcp 4: option remote-subvolume /mnt/raid6/glusterfs_export 5: option remote-host rigel 6: end-volume 7: 8: volume gv-client-1 9: type protocol/client 10: option transport-type tcp 11: option remote-subvolume /mnt/raid6/glusterfs_export 12: option remote-host betelgeuse 13: end-volume 14: 15: volume gv-replicate-0 16: type cluster/replicate 17: subvolumes gv-client-0 gv-client-1 18: end-volume 19: 20: volume gv-dht 21: type cluster/distribute 22: subvolumes gv-replicate-0 23: end-volume 24: 25: volume gv-write-behind 26: type performance/write-behind 27: subvolumes gv-dht 28: end-volume 29: 30: volume gv-read-ahead 31: type performance/read-ahead 32: subvolumes gv-write-behind 33: end-volume 34: 35: volume gv-io-cache 36: type performance/io-cache 37: subvolumes gv-read-ahead 38: end-volume 39: 40: volume gv-quick-read 41: type performance/quick-read 42: subvolumes gv-io-cache 43: end-volume 44: 45: volume gv-open-behind 46: type performance/open-behind 47: subvolumes gv-quick-read 48: end-volume 49: 50: volume gv-md-cache 51: type performance/md-cache 52: subvolumes gv-open-behind 53: end-volume 54: 55: volume gv 56: type debug/io-stats 57: option count-fop-hits off 58: option latency-measurement off 59: subvolumes gv-md-cache 60: end-volume +------------------------------------------------------------------------------+ [2015-05-18 14:08:07.802568] I [rpc-clnt.c:1676:rpc_clnt_reconfig] 0-gv-client-0: changing port to 49153 (from 0) [2015-05-18 14:08:07.802658] W [socket.c:514:__socket_rwv] 0-gv-client-0: readv failed (No data available) [2015-05-18 14:08:07.802779] I [rpc-clnt.c:1676:rpc_clnt_reconfig] 0-gv-client-1: changing port to 49152 (from 0) [2015-05-18 14:08:07.802802] W [socket.c:514:__socket_rwv] 0-gv-client-1: readv failed (No data available) [2015-05-18 14:08:07.803097] I [client-handshake.c:1659:select_server_supported_programs] 0-gv-client-0: Using Program GlusterFS 3.3, Num (1298437), Version (330) [2015-05-18 14:08:07.803312] I [client-handshake.c:1659:select_server_supported_programs] 0-gv-client-1: Using Program GlusterFS 3.3, Num (1298437), Version (330) [2015-05-18 14:08:07.803388] I [client-handshake.c:1456:client_setvolume_cbk] 0-gv-client-0: Connected to 172.17.1.1:49153, attached to remote volume '/mnt/raid6/glusterfs_export'. [2015-05-18 14:08:07.803401] I [client-handshake.c:1468:client_setvolume_cbk] 0-gv-client-0: Server and Client lk-version numbers are not same, reopening the fds [2015-05-18 14:08:07.803446] I [afr-common.c:3698:afr_notify] 0-gv-replicate-0: Subvolume 'gv-client-0' came back up; going online. [2015-05-18 14:08:07.803495] I [client-handshake.c:450:client_set_lk_version_cbk] 0-gv-client-0: Server lk version = 1 [2015-05-18 14:08:07.803528] I [client-handshake.c:1456:client_setvolume_cbk] 0-gv-client-1: Connected to 172.17.2.1:49152, attached to remote volume '/mnt/raid6/glusterfs_export'. [2015-05-18 14:08:07.803538] I [client-handshake.c:1468:client_setvolume_cbk] 0-gv-client-1: Server and Client lk-version numbers are not same, reopening the fds [2015-05-18 14:08:07.831998] I [fuse-bridge.c:4769:fuse_graph_setup] 0-fuse: switched to graph 0 [2015-05-18 14:08:07.832145] I [client-handshake.c:450:client_set_lk_version_cbk] 0-gv-client-1: Server lk version = 1 [2015-05-18 14:08:07.832373] I [fuse-bridge.c:3724:fuse_init] 0-glusterfs-fuse: FUSE inited with protocol versions: glusterfs 7.13 kernel 7.22 [2015-05-18 14:08:07.832816] I [afr-common.c:2057:afr_set_root_inode_on_first_lookup] 0-gv-replicate-0: added root inode [2015-05-18 14:11:22.050392] I [dict.c:370:dict_get] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/performance/md-cache.so(mdc_lookup+0x2ff) [0x7f84337dab9f] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/debug/io-stats.so(io_stats_lookup_cbk+0xfe) [0x7f84335c754e] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/system/posix-acl.so(posix_acl_lookup_cbk+0x1b1) [0x7f84333b3641]))) 0-dict: !this || key=system.posix_acl_access [2015-05-18 14:11:22.050414] I [dict.c:370:dict_get] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/performance/md-cache.so(mdc_lookup+0x2ff) [0x7f84337dab9f] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/debug/io-stats.so(io_stats_lookup_cbk+0xfe) [0x7f84335c754e] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/system/posix-acl.so(posix_acl_lookup_cbk+0x200) [0x7f84333b3690]))) 0-dict: !this || key=system.posix_acl_default [2015-05-18 14:11:22.051228] I [dict.c:370:dict_get] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/performance/md-cache.so(mdc_lookup+0x2ff) [0x7f84337dab9f] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/debug/io-stats.so(io_stats_lookup_cbk+0xfe) [0x7f84335c754e] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/system/posix-acl.so(posix_acl_lookup_cbk+0x1b1) [0x7f84333b3641]))) 0-dict: !this || key=system.posix_acl_access [2015-05-18 14:11:22.051244] I [dict.c:370:dict_get] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/performance/md-cache.so(mdc_lookup+0x2ff) [0x7f84337dab9f] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/debug/io-stats.so(io_stats_lookup_cbk+0xfe) [0x7f84335c754e] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/system/posix-acl.so(posix_acl_lookup_cbk+0x200) [0x7f84333b3690]))) 0-dict: !this || key=system.posix_acl_default [2015-05-18 14:11:22.051946] I [dict.c:370:dict_get] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/performance/md-cache.so(mdc_lookup+0x2ff) [0x7f84337dab9f] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/debug/io-stats.so(io_stats_lookup_cbk+0xfe) [0x7f84335c754e] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/system/posix-acl.so(posix_acl_lookup_cbk+0x1b1) [0x7f84333b3641]))) 0-dict: !this || key=system.posix_acl_access [2015-05-18 14:11:22.051962] I [dict.c:370:dict_get] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/performance/md-cache.so(mdc_lookup+0x2ff) [0x7f84337dab9f] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/debug/io-stats.so(io_stats_lookup_cbk+0xfe) [0x7f84335c754e] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/system/posix-acl.so(posix_acl_lookup_cbk+0x200) [0x7f84333b3690]))) 0-dict: !this || key=system.posix_acl_default [2015-05-18 14:11:22.052715] I [dict.c:370:dict_get] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/performance/md-cache.so(mdc_lookup+0x2ff) [0x7f84337dab9f] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/debug/io-stats.so(io_stats_lookup_cbk+0xfe) [0x7f84335c754e] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/system/posix-acl.so(posix_acl_lookup_cbk+0x1b1) [0x7f84333b3641]))) 0-dict: !this || key=system.posix_acl_access [2015-05-18 14:11:22.052734] I [dict.c:370:dict_get] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/performance/md-cache.so(mdc_lookup+0x2ff) [0x7f84337dab9f] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/debug/io-stats.so(io_stats_lookup_cbk+0xfe) [0x7f84335c754e] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/system/posix-acl.so(posix_acl_lookup_cbk+0x200) [0x7f84333b3690]))) 0-dict: !this || key=system.posix_acl_default [2015-05-18 14:11:22.053467] I [dict.c:370:dict_get] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/performance/md-cache.so(mdc_lookup+0x2ff) [0x7f84337dab9f] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/debug/io-stats.so(io_stats_lookup_cbk+0xfe) [0x7f84335c754e] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/system/posix-acl.so(posix_acl_lookup_cbk+0x1b1) [0x7f84333b3641]))) 0-dict: !this || key=system.posix_acl_access [2015-05-18 14:11:22.053483] I [dict.c:370:dict_get] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/performance/md-cache.so(mdc_lookup+0x2ff) [0x7f84337dab9f] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/debug/io-stats.so(io_stats_lookup_cbk+0xfe) [0x7f84335c754e] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/system/posix-acl.so(posix_acl_lookup_cbk+0x200) [0x7f84333b3690]))) 0-dict: !this || key=system.posix_acl_default [2015-05-18 14:11:22.054268] I [dict.c:370:dict_get] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/performance/md-cache.so(mdc_lookup+0x2ff) [0x7f84337dab9f] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/debug/io-stats.so(io_stats_lookup_cbk+0xfe) [0x7f84335c754e] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/system/posix-acl.so(posix_acl_lookup_cbk+0x1b1) [0x7f84333b3641]))) 0-dict: !this || key=system.posix_acl_access [2015-05-18 14:11:22.054283] I [dict.c:370:dict_get] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/performance/md-cache.so(mdc_lookup+0x2ff) [0x7f84337dab9f] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/debug/io-stats.so(io_stats_lookup_cbk+0xfe) [0x7f84335c754e] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/system/posix-acl.so(posix_acl_lookup_cbk+0x200) [0x7f84333b3690]))) 0-dict: !this || key=system.posix_acl_default [2015-05-18 14:11:22.055120] I [dict.c:370:dict_get] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/performance/md-cache.so(mdc_lookup+0x2ff) [0x7f84337dab9f] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/debug/io-stats.so(io_stats_lookup_cbk+0xfe) [0x7f84335c754e] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/system/posix-acl.so(posix_acl_lookup_cbk+0x1b1) [0x7f84333b3641]))) 0-dict: !this || key=system.posix_acl_access [2015-05-18 14:11:22.055135] I [dict.c:370:dict_get] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/performance/md-cache.so(mdc_lookup+0x2ff) [0x7f84337dab9f] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/debug/io-stats.so(io_stats_lookup_cbk+0xfe) [0x7f84335c754e] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/system/posix-acl.so(posix_acl_lookup_cbk+0x200) [0x7f84333b3690]))) 0-dict: !this || key=system.posix_acl_default [2015-05-18 14:11:22.055797] I [dict.c:370:dict_get] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/performance/md-cache.so(mdc_lookup+0x2ff) [0x7f84337dab9f] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/debug/io-stats.so(io_stats_lookup_cbk+0xfe) [0x7f84335c754e] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/system/posix-acl.so(posix_acl_lookup_cbk+0x1b1) [0x7f84333b3641]))) 0-dict: !this || key=system.posix_acl_access [2015-05-18 14:11:22.055811] I [dict.c:370:dict_get] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/performance/md-cache.so(mdc_lookup+0x2ff) [0x7f84337dab9f] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/debug/io-stats.so(io_stats_lookup_cbk+0xfe) [0x7f84335c754e] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/system/posix-acl.so(posix_acl_lookup_cbk+0x200) [0x7f84333b3690]))) 0-dict: !this || key=system.posix_acl_default [2015-05-18 14:11:22.056575] I [dict.c:370:dict_get] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/performance/md-cache.so(mdc_lookup+0x2ff) [0x7f84337dab9f] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/debug/io-stats.so(io_stats_lookup_cbk+0xfe) [0x7f84335c754e] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/system/posix-acl.so(posix_acl_lookup_cbk+0x1b1) [0x7f84333b3641]))) 0-dict: !this || key=system.posix_acl_access [2015-05-18 14:11:22.056590] I [dict.c:370:dict_get] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/performance/md-cache.so(mdc_lookup+0x2ff) [0x7f84337dab9f] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/debug/io-stats.so(io_stats_lookup_cbk+0xfe) [0x7f84335c754e] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/system/posix-acl.so(posix_acl_lookup_cbk+0x200) [0x7f84333b3690]))) 0-dict: !this || key=system.posix_acl_default [2015-05-18 14:11:22.057314] I [dict.c:370:dict_get] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/performance/md-cache.so(mdc_lookup+0x2ff) [0x7f84337dab9f] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/debug/io-stats.so(io_stats_lookup_cbk+0xfe) [0x7f84335c754e] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/system/posix-acl.so(posix_acl_lookup_cbk+0x1b1) [0x7f84333b3641]))) 0-dict: !this || key=system.posix_acl_access [2015-05-18 14:11:22.057344] I [dict.c:370:dict_get] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/performance/md-cache.so(mdc_lookup+0x2ff) [0x7f84337dab9f] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/debug/io-stats.so(io_stats_lookup_cbk+0xfe) [0x7f84335c754e] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/system/posix-acl.so(posix_acl_lookup_cbk+0x200) [0x7f84333b3690]))) 0-dict: !this || key=system.posix_acl_default [2015-05-18 14:11:22.058050] I [dict.c:370:dict_get] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/performance/md-cache.so(mdc_lookup+0x2ff) [0x7f84337dab9f] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/debug/io-stats.so(io_stats_lookup_cbk+0xfe) [0x7f84335c754e] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/system/posix-acl.so(posix_acl_lookup_cbk+0x1b1) [0x7f84333b3641]))) 0-dict: !this || key=system.posix_acl_access [2015-05-18 14:11:22.058065] I [dict.c:370:dict_get] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/performance/md-cache.so(mdc_lookup+0x2ff) [0x7f84337dab9f] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/debug/io-stats.so(io_stats_lookup_cbk+0xfe) [0x7f84335c754e] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/system/posix-acl.so(posix_acl_lookup_cbk+0x200) [0x7f84333b3690]))) 0-dict: !this || key=system.posix_acl_default [2015-05-18 14:11:22.058770] I [dict.c:370:dict_get] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/performance/md-cache.so(mdc_lookup+0x2ff) [0x7f84337dab9f] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/debug/io-stats.so(io_stats_lookup_cbk+0xfe) [0x7f84335c754e] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/system/posix-acl.so(posix_acl_lookup_cbk+0x1b1) [0x7f84333b3641]))) 0-dict: !this || key=system.posix_acl_access [2015-05-18 14:11:22.058785] I [dict.c:370:dict_get] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/performance/md-cache.so(mdc_lookup+0x2ff) [0x7f84337dab9f] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/debug/io-stats.so(io_stats_lookup_cbk+0xfe) [0x7f84335c754e] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/system/posix-acl.so(posix_acl_lookup_cbk+0x200) [0x7f84333b3690]))) 0-dict: !this || key=system.posix_acl_default [2015-05-18 14:11:22.059557] I [dict.c:370:dict_get] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/performance/md-cache.so(mdc_lookup+0x2ff) [0x7f84337dab9f] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/debug/io-stats.so(io_stats_lookup_cbk+0xfe) [0x7f84335c754e] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/system/posix-acl.so(posix_acl_lookup_cbk+0x1b1) [0x7f84333b3641]))) 0-dict: !this || key=system.posix_acl_access [2015-05-18 14:11:22.059572] I [dict.c:370:dict_get] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/performance/md-cache.so(mdc_lookup+0x2ff) [0x7f84337dab9f] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/debug/io-stats.so(io_stats_lookup_cbk+0xfe) [0x7f84335c754e] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/system/posix-acl.so(posix_acl_lookup_cbk+0x200) [0x7f84333b3690]))) 0-dict: !this || key=system.posix_acl_default [2015-05-18 14:11:22.060258] I [dict.c:370:dict_get] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/performance/md-cache.so(mdc_lookup+0x2ff) [0x7f84337dab9f] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/debug/io-stats.so(io_stats_lookup_cbk+0xfe) [0x7f84335c754e] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/system/posix-acl.so(posix_acl_lookup_cbk+0x1b1) [0x7f84333b3641]))) 0-dict: !this || key=system.posix_acl_access [2015-05-18 14:11:22.060273] I [dict.c:370:dict_get] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/performance/md-cache.so(mdc_lookup+0x2ff) [0x7f84337dab9f] (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/debug/io-stats.so(io_stats_lookup_cbk+0x> The log for this mountpoint should contain the "glusterfs" command that > was executed while mounting. /var/log/glusterfs/mnt-glusterfs.log would > be the filename. Support for ACLs is enabled with the --acl parameter > for the command. If that option is not set, try unmounting and mounting > again, or reboot. > > If this still does not work, file a bug with the logs attached, all the > details of the affected user/group (uid/gids), version on client and > server, with examples from both client and server setfacl commands. > > https://bugzilla.redhat.com/enter_bug.cgi?product=GlusterFS&component=fuse > > Thanks, > Niels-- Regards, Peng
Joe Julian
2015-May-18 15:17 UTC
[Gluster-users] How to let glusterfs support getfacl and setfacl?
On 05/18/2015 07:19 AM, Peng Yu wrote:> [2015-05-18 14:08:07.832816] I > [afr-common.c:2057:afr_set_root_inode_on_first_lookup] > 0-gv-replicate-0: added root inode > [2015-05-18 14:11:22.050392] I [dict.c:370:dict_get] > (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/performance/md-cache.so(mdc_lookup+0x2ff) > [0x7f84337dab9f] > (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/debug/io-stats.so(io_stats_lookup_cbk+0xfe) > [0x7f84335c754e] > (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/system/posix-acl.so(posix_acl_lookup_cbk+0x1b1) > [0x7f84333b3641]))) 0-dict: !this || key=system.posix_acl_access > [2015-05-18 14:11:22.050414] I [dict.c:370:dict_get] > (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/performance/md-cache.so(mdc_lookup+0x2ff) > [0x7f84337dab9f] > (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/debug/io-stats.so(io_stats_lookup_cbk+0xfe) > [0x7f84335c754e] > (-->/usr/lib/x86_64-linux-gnu/glusterfs/3.4.2/xlator/system/posix-acl.so(posix_acl_lookup_cbk+0x200) > [0x7f84333b3690]))) 0-dict: !this || key=system.posix_acl_defaultThis tells us that the rpc callback did not include the acl attributes, even after they were set. Check your brick logs for details, but more likely than not, one or both of your bricks does not have acl support.