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