[Gluster-users] How to let glusterfs support getfacl and setfacl?
Niels de Vos
ndevos at redhat.com
Mon May 18 12:51:38 UTC 2015
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?
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
More information about the Gluster-users
mailing list