<div dir="ltr">Hi Niels,<div><br></div><div>Thanks for reply.</div><div><br></div><div>I am trying to user Gluster NFS even in this case I am facing the same issue.</div><div><br></div><div>Could please suggest me what I need to do and how can I setup Gluster NFS.</div><div><br></div><div>Regards,</div><div>Abhishek</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 27, 2016 at 1:53 PM, Niels de Vos <span dir="ltr">&lt;<a href="mailto:ndevos@redhat.com" target="_blank">ndevos@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Tue, Apr 26, 2016 at 08:23:15PM +0530, ABHISHEK PALIWAL wrote:<br>
&gt; On Tue, Apr 26, 2016 at 8:06 PM, Niels de Vos &lt;<a href="mailto:ndevos@redhat.com">ndevos@redhat.com</a>&gt; wrote:<br>
&gt;<br>
&gt; &gt; On Tue, Apr 26, 2016 at 07:46:03PM +0530, ABHISHEK PALIWAL wrote:<br>
&gt; &gt; &gt; On Tue, Apr 26, 2016 at 7:06 PM, Niels de Vos &lt;<a href="mailto:ndevos@redhat.com">ndevos@redhat.com</a>&gt; wrote:<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; On Tue, Apr 26, 2016 at 06:45:59PM +0530, ABHISHEK PALIWAL wrote:<br>
&gt; &gt; &gt; &gt; &gt; On Tue, Apr 26, 2016 at 6:37 PM, Niels de Vos &lt;<a href="mailto:ndevos@redhat.com">ndevos@redhat.com</a>&gt;<br>
&gt; &gt; wrote:<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; On Tue, Apr 26, 2016 at 12:11:06PM +0530, ABHISHEK PALIWAL wrote:<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt;  Hi,<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; I want to enable ACL support on gluster volume using the kernel<br>
&gt; &gt; NFS<br>
&gt; &gt; &gt; &gt; ACL<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; support so I have followed below steps after creation of gluster<br>
&gt; &gt; &gt; &gt; volume:<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; 1. mount -t glusterfs -o acl 10.32.0.48:/c_glusterfs /tmp/a2<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; 2.       update the /etc/exports file<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; /tmp/a2<br>
&gt; &gt; 10.32.*(rw,acl,sync,no_subtree_check,no_root_squash,fsid=14)<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; 3.       exportfs –ra<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; 4.       gluster volume set c_glusterfs nfs.acl off<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; 5.       gluster volume set c_glusterfs nfs.disable on<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; we have disabled above two options because we are using Kernel<br>
&gt; &gt; NFS<br>
&gt; &gt; &gt; &gt; ACL<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; support and that is already enabled.<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; on other board mounting it using<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; mount -t nfs -o acl,vers=3 10.32.0.48:/tmp/a2 /tmp/e/<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; setfacl -m u:application:rw /tmp/e/usr<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; setfacl: /tmp/e/usr: Operation not supported<br>
&gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; Have you tried to set/getfacl on the Gluster FUSE mountpoint<br>
&gt; &gt; (/tmp/a2)<br>
&gt; &gt; &gt; &gt; &gt; &gt; too? Depending on the filesystem that you use on the bricks, you<br>
&gt; &gt; may<br>
&gt; &gt; &gt; &gt; &gt; &gt; need to mount with &quot;-o acl&quot; there as well. Try to set/get an ACL<br>
&gt; &gt; on all<br>
&gt; &gt; &gt; &gt; &gt; &gt; of these different levels to see where is starts to fail.<br>
&gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; Yes, you can check I have already given -o acl on /tmp/a2 as well as<br>
&gt; &gt; &gt; &gt; below<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; Sorry, that is not what I meant. The bricks that provide the<br>
&gt; &gt; c_glusterfs<br>
&gt; &gt; &gt; &gt; volume need to support and have ACLs enabled as well. If you use XFS,<br>
&gt; &gt; it<br>
&gt; &gt; &gt; &gt; should be enabled by default. But some other filesystems do not do<br>
&gt; &gt; that.<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; You have three different mountpoints:<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt;  - /tmp/e: nfs<br>
&gt; &gt; &gt; &gt;  - /tmp/a2: Gluster FUSE<br>
&gt; &gt; &gt; &gt;  - whatever you use as bricks for c_glusterfs: XFS or something else?<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; I have following volume info<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Volume Name: c_glusterfs<br>
&gt; &gt; &gt; Type: Replicate<br>
&gt; &gt; &gt; Volume ID: 5be1524c-21ae-47d5-970a-d4920fca39cf<br>
&gt; &gt; &gt; Status: Started<br>
&gt; &gt; &gt; Number of Bricks: 1 x 2 = 2<br>
&gt; &gt; &gt; Transport-type: tcp<br>
&gt; &gt; &gt; Bricks:<br>
&gt; &gt; &gt; Brick1: 10.32.0.48:/opt/lvmdir/c2/brick<br>
&gt; &gt; &gt; Brick2: 10.32.1.144:/opt/lvmdir/c2/brick<br>
&gt; &gt; &gt; Options Reconfigured:<br>
&gt; &gt; &gt; nfs.acl: off<br>
&gt; &gt; &gt; nfs.disable: on<br>
&gt; &gt; &gt; network.ping-timeout: 4<br>
&gt; &gt; &gt; performance.readdir-ahead: on<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; now according to you /opt/lvmdir/c2/brick should support ACL option or<br>
&gt; &gt; &gt; /opt/lvmdir/c2 ? if /opt/lvmdir/<br>
&gt; &gt; &gt; c2 then we are mounting it as below<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;  mount -o acl /dev/cpplvm_vg/vol2  /opt/lvmdir//c2<br>
&gt; &gt;<br>
&gt; &gt; If /opt/lvmdir/c2 is the mountpoint, then make sure that a test-file<br>
&gt; &gt; like /opt/lvmdir/c2/test-acl can have ACLs. It may require mounting<br>
&gt; &gt; /opt/lvmdir/c2 with the &quot;-o acl&quot; option, but that depends on the<br>
&gt; &gt; filesystem.<br>
&gt; &gt;<br>
&gt; &gt; Also try to create a test-file on /tmp/a2 and check of ACLs work on the<br>
&gt; &gt; Gluster FUSE mountpoint.<br>
&gt; &gt;<br>
&gt; &gt; If these two filesystems support ACLs, I do not see a problem why the<br>
&gt; &gt; kernel NFS server can not use them.<br>
&gt; &gt;<br>
&gt; &gt; &gt; I have one more question : we are using logical volume here for glusterfs<br>
&gt; &gt; &gt; so it should not create any issue in ACL support?<br>
&gt; &gt;<br>
&gt; &gt; No, that should not matter.<br>
&gt; &gt;<br>
&gt;<br>
&gt; it is working fine locally means at 10.32.0.48 but when I am exporting it<br>
&gt; using /etc/exportfs file<br>
&gt; like<br>
</div></div>&gt; */tmp/a2 10.32.*(rw,acl,sync,no_subtree_check,no_root_squash,fsid=10) *<br>
&gt; and then run *exportfs -ra* command to export it on other board.<br>
<span class="">&gt;<br>
&gt; and trying to mount it on other board<br>
&gt;<br>
&gt; like<br>
&gt;<br>
</span>&gt; *mount -t nfs -o acl 10.32.0.48:/tmp/a2 /mnt/glust*<br>
&gt;<br>
&gt; and then run setfacl<br>
&gt;<br>
&gt; *setfacl -m u:application:r /mnt/glust/usr*<br>
&gt; *setfacl: /mnt/glust/usr: Operation not supported *//Reporting this error<br>
<br>
If the ACL works on /opt/lvmdir/c2 and /tmp/a2 at least on the Gluster<br>
and FUSE side all seems to be fine. You would need to check with the<br>
kernel NFS server people to figure out why the mounted Gluster volume<br>
can not use ACLs through knfsd.<br>
<br>
Note that we really recommend to use Gluster/NFS or NFS-Ganesha with<br>
Gluster. We do not test exporting FUSE mounted Gluster volume through<br>
knfsd at all, and I am not aware that anyone uses this combination in<br>
their production environment.<br>
<br>
Cheers,<br>
Niels<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
&gt;<br>
&gt; &gt;<br>
&gt; &gt; Cheers,<br>
&gt; &gt; Niels<br>
&gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Regards,<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Abhishek<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; HTH,<br>
&gt; &gt; &gt; &gt; Niels<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; 1. mount -t glusterfs -o acl 10.32.0.48:/c_glusterfs /tmp/a2<br>
&gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; 2.       update the /etc/exports file<br>
&gt; &gt; &gt; &gt; &gt; &gt; /tmp/a2<br>
&gt; &gt; 10.32.*(rw,acl,sync,no_subtree_check,no_root_squash,fsid=14)<br>
&gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; Thanks,<br>
&gt; &gt; &gt; &gt; &gt; &gt; Niels<br>
&gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; and application is the system user like below<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; application:x:102:0::/home/application:/bin/sh<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; I don&#39;t why I am getting this failure when I enabled all the acl<br>
&gt; &gt; &gt; &gt; support<br>
&gt; &gt; &gt; &gt; &gt; &gt; in<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; each steps.<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; Please let me know how can I enable this.<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; Regards,<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; Abhishek<br>
&gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; _______________________________________________<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; Gluster-devel mailing list<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; <a href="mailto:Gluster-devel@gluster.org">Gluster-devel@gluster.org</a><br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; <a href="http://www.gluster.org/mailman/listinfo/gluster-devel" rel="noreferrer" target="_blank">http://www.gluster.org/mailman/listinfo/gluster-devel</a><br>
&gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; --<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; Regards<br>
&gt; &gt; &gt; &gt; &gt; Abhishek Paliwal<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; --<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Regards<br>
&gt; &gt; &gt; Abhishek Paliwal<br>
&gt; &gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Regards<br>
&gt; Abhishek Paliwal<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><br><br><br><br>Regards<br>
Abhishek Paliwal<br>
</div></div>
</div>