<div dir="ltr"><span style="color:rgb(0,0,0);font-family:Consolas,&#39;Lucida Console&#39;,monospace;font-size:13px;background-color:rgb(240,247,255)">  When I was using gluster-native NFS to export volume, I noticed that there is service &#39;nlockmgr&#39; with tcp version4, but not with udp version4.</span><div><div style="text-indent: -7px;"><font color="#000000" face="Consolas, Lucida Console, monospace">   System: Ubuntu 12.04 with GlusterFS 3.5.7</font></div><div><div style="text-indent: -7px;"><font color="#000000" face="Consolas, Lucida Console, monospace">   The procedure to reproduce is as follow: </font></div><div style="text-indent: -7px;"><span style="color:rgb(0,0,0);font-family:Consolas,&#39;Lucida Console&#39;,monospace">      /* assuming glusterfs has been already installed */</span></div><div style="text-indent: -7px;"><span style="color:rgb(0,0,0);font-family:Consolas,&#39;Lucida Console&#39;,monospace">   step 1: # reboot  /* waiting for the start of system */</span></div><div style="text-indent: -7px;"><span style="color:rgb(0,0,0);font-family:Consolas,&#39;Lucida Console&#39;,monospace">   step 2: # /etc/init.d/nfs-kernel-server stop</span></div><div style="text-indent: -7px;"><span style="color:rgb(0,0,0);font-family:Consolas,&#39;Lucida Console&#39;,monospace">   step 3: # /etc/init.d/idmapd stop</span></div><div style="text-indent: -7px;"><span style="color:rgb(0,0,0);font-family:Consolas,&#39;Lucida Console&#39;,monospace">   step 4: # rmmod nfsd</span></div><div style="text-indent: -7px;"><span style="color:rgb(0,0,0);font-family:Consolas,&#39;Lucida Console&#39;,monospace">   step 5: # rmmod lockd</span></div><div style="text-indent: -7px;"><span style="color:rgb(0,0,0);font-family:Consolas,&#39;Lucida Console&#39;,monospace">   step 6: # gluster volume start ... force</span></div><div style="text-indent: -7px;"><span style="color:rgb(0,0,0);font-family:Consolas,&#39;Lucida Console&#39;,monospace">      /* step 2 - step 6: avoid the confilct between nfs-kernel and glusterfs-native nfs */</span></div><div style="text-indent: -7px;"><span style="color:rgb(0,0,0);font-family:Consolas,&#39;Lucida Console&#39;,monospace">    </span></div><div style="text-indent: -7px;"><span style="color:rgb(0,0,0);font-family:Consolas,&#39;Lucida Console&#39;,monospace">   The nfs.log is as follow:</span><a href="http://termbin.com/9oce" target="_blank" style="font-size:13px;font-family:Consolas,&#39;Lucida Console&#39;,monospace;background-color:rgb(240,247,255)">http://termbin.com/9oce</a></div><div style="text-indent: -7px;"><span style="color:rgb(0,0,0);font-family:Consolas,&#39;Lucida Console&#39;,monospace">   The result of &quot;rpcinfo -p&quot; is as follow: </span><a href="http://termbin.com/bcoa" target="_blank" style="font-size:13px;font-family:Consolas,&#39;Lucida Console&#39;,monospace;background-color:rgb(240,247,255)">http://termbin.com/bcoa</a></div><div style="text-indent: -7px;"><br></div><div style="text-indent: -7px;">     <font face="arial, helvetica, sans-serif"><i>The condition seems that the implementation of glusterfs doesn&#39;t support NLMv4 with UDPv4. </i></font></div><div style="text-indent: -7px;"><font face="arial, helvetica, sans-serif"><i>     When using Black Disk Speed Test on MAC OS to do performance<span style="color:rgb(67,67,67);font-size:12px;line-height:24px;background-color:rgb(242,242,242)"> </span>test at volume that is mounted through NFS from glusterfs&#39;s export, the program remained no reaction. It was realized  that Some program such as Black Disk Speed Test on MAC OS requests nlm over UDPv4 after I used WireShark to analyze it&#39;s reason.</i></font></div><div style="text-indent: -7px;"><font face="arial, helvetica, sans-serif"><i>    <span style="background-color:rgb(255,255,255)"> <font color="#000000">F</font></span><span style="font-size:12px;line-height:19.1875px"><span style="background-color:rgb(255,255,255)"><font color="#000000">or comparison</font></span><font color="#434343">,</font></span> the program is normal when doing performance<span style="color:rgb(67,67,67);font-size:12px;line-height:24px;background-color:rgb(242,242,242)"> </span>test at volume which is mounted from nfs-kernel&#39;s export. So the reason is confirmed as that protocols are not the same: the program requests NLMv4 on UDP, but glusterfs only supports NLMv4 over TCP.</i></font></div><div style="text-indent: -7px;"><font face="arial, helvetica, sans-serif"><i>     Then the question is that how to solve this problem.</i></font></div><div style="text-indent: -7px;"><font face="arial, helvetica, sans-serif"><i>     In additon, I&#39;m puzzled by this: why not support NLM with UDPv4? It seems simple to implement it now that NLM with TCPv4 is supported already.</i></font></div><div style="text-indent: -7px;"><font face="arial, helvetica, sans-serif"><i>     I&#39;m looking forward your reply, and any answer will be appreciated.</i></font></div></div></div><div style="text-indent: -7px;"><font face="arial, helvetica, sans-serif"><i>     In addition, thanks for &#39;ndevos&#39; on IRC for doing me a lot of favor.</i></font></div></div>