<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">I found that when I was exporting NFS
      from gluster I had to be careful not to load the kernel nfs
      modules (such as lockd) or things would get messed up. I think
      that's happened to you.<br>
      <br>
      Is gluster lockd in use? Do this:<br>
      <br>
      <font face="Consolas">[root@fearless1 ~]# rpcinfo -p | grep 100021<br>
        &nbsp;&nbsp;&nbsp; 100021&nbsp;&nbsp;&nbsp; 4&nbsp;&nbsp; tcp&nbsp; 38468&nbsp; nlockmgr<br>
        &nbsp;&nbsp;&nbsp; 100021&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp; udp&nbsp;&nbsp;&nbsp; 872&nbsp; nlockmgr<br>
        &nbsp;&nbsp;&nbsp; 100021&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp; tcp&nbsp;&nbsp;&nbsp; 874&nbsp; nlockmgr<br>
        [root@fearless1 ~]# ss -lp sport = :38468<br>
        State&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Recv-Q Send-Q&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Local Address:Port&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Peer
        Address:Port<br>
        LISTEN&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 10&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        *:38468&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *:*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        users:(("glusterfs",28675,13))<br>
      </font><br>
      Yes it is!<br>
      <br>
      If not:<br>
      * ensure no nfs mounts are on gluster servers<br>
      * rmmod nfs<br>
      * rmmod lockd<br>
      * 'gluster volume volname start force' should ensure all the
      daemons are up.<br>
      <br>
      On 13-06-05 10:59 AM, Charles Cooke wrote:<br>
    </div>
    <blockquote
cite="mid:CAKOaOxkE4vJAy08O5OpWJUNa8R-Yop4HniWKMQbrgZpu1AmLqA@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hello,
        <div><br>
        </div>
        <div style="">We had some issues with context switches using the
          GlusterFS FUSE client - &amp; we are processing a large number
          of small files.</div>
        <div style=""><br>
        </div>
        <div style="">We decided to switch to NFS to see if that would
          increase performance, but are having issues with the NLM
          locking functionality.</div>
        <div><br>
        </div>
        <div style="">Using&nbsp;<a moz-do-not-send="true"
            href="http://wiki.samba.org/index.php/Ping_pong">http://wiki.samba.org/index.php/Ping_pong</a>
          - we are able to verify that a single F_SETLKW call is
          blocking indefinitely.</div>
        <div><br>
        </div>
        <div>ping_pong -r glusterfs_test.txt 1
          <div style="">Hangs on this line blocking for a wait lock:</div>
          <div>
            <div>&nbsp; &nbsp; &nbsp;return fcntl(fd,F_SETLKW,&amp;lock);</div>
          </div>
          <div><br>
          </div>
          <div style="">The root cause appears to be this in the
            glusterfs/nfs.log:</div>
          <div><b>RPC Program procedure not available for procedure 5 in
              NLM4</b></div>
          <div><b><br>
            </b></div>
          <div>Is there any more information on this error, or how it
            can be resolved?<br>
            <div class="gmail_extra"><br>
              <div class="gmail_extra">
                rpcinfo -p</div>
              <div class="gmail_extra">&nbsp; &nbsp;program vers proto &nbsp; port</div>
              <div class="gmail_extra">&nbsp; &nbsp; 100000 &nbsp; &nbsp;2 &nbsp; tcp &nbsp; &nbsp;111
                &nbsp;portmapper</div>
              <div class="gmail_extra">&nbsp; &nbsp; 100000 &nbsp; &nbsp;2 &nbsp; udp &nbsp; &nbsp;111
                &nbsp;portmapper</div>
              <div class="gmail_extra">
                &nbsp; &nbsp; 100021 &nbsp; &nbsp;3 &nbsp; udp &nbsp;45739 &nbsp;nlockmgr</div>
              <div class="gmail_extra">&nbsp; &nbsp; 100021 &nbsp; &nbsp;3 &nbsp; tcp &nbsp;58923
                &nbsp;nlockmgr</div>
              <div class="gmail_extra">&nbsp; &nbsp; 100005 &nbsp; &nbsp;3 &nbsp; tcp &nbsp;38465
                &nbsp;mountd</div>
              <div class="gmail_extra">&nbsp; &nbsp; 100005 &nbsp; &nbsp;1 &nbsp; tcp &nbsp;38466
                &nbsp;mountd</div>
              <div class="gmail_extra">&nbsp; &nbsp; 100003 &nbsp; &nbsp;3 &nbsp; tcp &nbsp;38467 &nbsp;nfs</div>
              <div class="gmail_extra">&nbsp; &nbsp; 100021 &nbsp; &nbsp;4 &nbsp; tcp &nbsp;38468
                &nbsp;nlockmgr</div>
              <div class="gmail_extra">&nbsp; &nbsp; 100024 &nbsp; &nbsp;1 &nbsp; udp &nbsp; &nbsp;791
                &nbsp;status</div>
              <div class="gmail_extra">
                &nbsp; &nbsp; 100024 &nbsp; &nbsp;1 &nbsp; tcp &nbsp; &nbsp;794 &nbsp;status</div>
              <div class="gmail_extra">&nbsp; &nbsp; 100021 &nbsp; &nbsp;1 &nbsp; udp &nbsp; &nbsp;783
                &nbsp;nlockmgr</div>
              <div class="gmail_extra">&nbsp; &nbsp; 100021 &nbsp; &nbsp;1 &nbsp; tcp &nbsp; &nbsp;785
                &nbsp;nlockmgr</div>
              <div class="gmail_extra"><br>
              </div>
              <div class="gmail_extra">
                <br>
              </div>
              <div class="gmail_extra">/var/log/messages</div>
              <div class="gmail_extra">Jun &nbsp;5 10:53:48 ip-10-139-8-175
                kernel: lockd: nlm_lookup_host(0a8b08af, p=6, v=4)</div>
              <div class="gmail_extra">Jun &nbsp;5 14:53:48 ip-10-139-8-175
                kernel: lockd: host garbage collection</div>
              <div class="gmail_extra">Jun &nbsp;5 14:53:48 ip-10-139-8-175
                kernel: lockd: nlmsvc_mark_resources</div>
              <div class="gmail_extra">Jun &nbsp;5 10:53:48 ip-10-139-8-175
                kernel: lockd: delete host 10.139.8.175</div>
              <div class="gmail_extra">
                Jun &nbsp;5 10:53:48 ip-10-139-8-175 kernel: lockd:
                nsm_unmonitor(10.139.8.175)</div>
              <div class="gmail_extra">Jun &nbsp;5 10:53:48 ip-10-139-8-175
                kernel: lockd: creating host entry</div>
              <div class="gmail_extra">Jun &nbsp;5 10:53:48 ip-10-139-8-175
                kernel: lockd: get host 10.139.8.175</div>
              <div class="gmail_extra">Jun &nbsp;5 10:53:48 ip-10-139-8-175
                kernel: lockd: nsm_monitor(10.139.8.175)</div>
              <div class="gmail_extra">Jun &nbsp;5 10:53:48 ip-10-139-8-175
                kernel: nsm: xdr_decode_stat_res status 0 state 39</div>
              <div class="gmail_extra">
                Jun &nbsp;5 10:53:48 ip-10-139-8-175 kernel: lockd: call
                procedure 2 on 10.139.8.175</div>
              <div class="gmail_extra">Jun &nbsp;5 10:53:48 ip-10-139-8-175
                kernel: lockd: nlm_bind_host(0a8b08af)</div>
              <div class="gmail_extra">Jun &nbsp;5 14:53:48 ip-10-139-8-175
                kernel: lockd: server returns status 50331648</div>
              <div class="gmail_extra"><br>
              </div>
              <div class="gmail_extra">/var/log/glusterfs/nfs.log</div>
              <div class="gmail_extra">[2013-06-05 14:53:48.147647] T
                [nfs-fops.c:131:nfs_create_frame] 0-nfs: uid: 0, gid 0,
                gids: 7</div>
              <div class="gmail_extra">
                [2013-06-05 14:53:48.147664] T
                [nfs-fops.c:133:nfs_create_frame] 0-nfs: gid: 0</div>
              <div class="gmail_extra">[2013-06-05 14:53:48.147680] T
                [nfs-fops.c:133:nfs_create_frame] 0-nfs: gid: 1</div>
              <div class="gmail_extra">[2013-06-05 14:53:48.147695] T
                [nfs-fops.c:133:nfs_create_frame] 0-nfs: gid: 2</div>
              <div class="gmail_extra">[2013-06-05 14:53:48.147710] T
                [nfs-fops.c:133:nfs_create_frame] 0-nfs: gid: 3</div>
              <div class="gmail_extra">[2013-06-05 14:53:48.147736] T
                [nfs-fops.c:133:nfs_create_frame] 0-nfs: gid: 4</div>
              <div class="gmail_extra">
                [2013-06-05 14:53:48.147752] T
                [nfs-fops.c:133:nfs_create_frame] 0-nfs: gid: 6</div>
              <div class="gmail_extra">[2013-06-05 14:53:48.147767] T
                [nfs-fops.c:133:nfs_create_frame] 0-nfs: gid: 10</div>
              <div class="gmail_extra">[2013-06-05 14:53:48.147798] T
                [rpc-clnt.c:1308:rpc_clnt_record] 0-nfs_test-client-0:
                Auth Info: pid: 1, uid: 0, gid: 0, owner:
                304069702d31302d-3133392d382d3137-35</div>
              <div class="gmail_extra">[2013-06-05 14:53:48.147821] T
                [rpc-clnt.c:1188:rpc_clnt_record_build_header]
                0-rpc-clnt: Request fraglen 196, payload: 88, rpc hdr:
                108</div>
              <div class="gmail_extra">[2013-06-05 14:53:48.147861] T
                [rpc-clnt.c:1507:rpc_clnt_submit] 0-rpc-clnt: submitted
                request (XID: 0x27x Program: GlusterFS 3.1, ProgVers:
                330, Proc: 26) to rpc-transport (nfs_test-client-0)</div>
              <div class="gmail_extra">[2013-06-05 14:53:48.148249] T
                [rpc-clnt.c:685:rpc_clnt_reply_init]
                0-nfs_test-client-0: received rpc message (RPC XID:
                0x27x Program: GlusterFS 3.1, ProgVers: 330, Proc: 26)
                from rpc-transport (nfs_test-client-0)</div>
              <div class="gmail_extra">[2013-06-05 14:53:48.148293] T
                [rpc-clnt.c:1308:rpc_clnt_record] 0-nfs_test-client-1:
                Auth Info: pid: 1, uid: 0, gid: 0, owner:
                304069702d31302d-3133392d382d3137-35</div>
              <div class="gmail_extra">[2013-06-05 14:53:48.148314] T
                [rpc-clnt.c:1188:rpc_clnt_record_build_header]
                0-rpc-clnt: Request fraglen 196, payload: 88, rpc hdr:
                108</div>
              <div class="gmail_extra">[2013-06-05 14:53:48.148349] T
                [rpc-clnt.c:1507:rpc_clnt_submit] 0-rpc-clnt: submitted
                request (XID: 0x48x Program: GlusterFS 3.1, ProgVers:
                330, Proc: 26) to rpc-transport (nfs_test-client-1)</div>
              <div class="gmail_extra">[2013-06-05 14:53:48.149264] T
                [rpc-clnt.c:685:rpc_clnt_reply_init]
                0-nfs_test-client-1: received rpc message (RPC XID:
                0x48x Program: GlusterFS 3.1, ProgVers: 330, Proc: 26)
                from rpc-transport (nfs_test-client-1)</div>
              <div class="gmail_extra">[2013-06-05 14:53:48.149300] D
                [fd-lk.c:456:fd_lk_insert_and_merge] 0-fd-lk: new lock
                requrest: owner = 304069702d31302d-3133392d382d3137-35,
                fl_type = F_WRLCK, fs_start = 0, fs_end = 0, user_flock:
                l_type = F_WRLCK, l_start = 0, l_len = 1</div>
              <div class="gmail_extra">[2013-06-05 14:53:48.149320] D
                [fd-lk.c:419:print_lock_list] 0-fd-lk: lock list:</div>
              <div class="gmail_extra">[2013-06-05 14:53:48.149340] D
                [fd-lk.c:431:print_lock_list] 0-fd-lk: owner =
                304069702d31302d-3133392d382d3137-35, cmd = F_SETLKW
                fl_type = F_WRLCK, fs_start = 0, fs_end = 0, user_flock:
                l_type = F_WRLCK, l_start = 0, l_len = 1,</div>
              <div class="gmail_extra">[2013-06-05 14:53:48.149371] T
                [rpc-clnt.c:1308:rpc_clnt_record] 0-NLM-client: Auth
                Info: pid: 1, uid: 0, gid: 0, owner:
                304069702d31302d-3133392d382d3137-35</div>
              <div class="gmail_extra">[2013-06-05 14:53:48.149392] T
                [rpc-clnt.c:1188:rpc_clnt_record_build_header]
                0-rpc-clnt: Request fraglen 156, payload: 116, rpc hdr:
                40</div>
              <div class="gmail_extra">[2013-06-05 14:53:48.149430] T
                [rpc-clnt.c:1507:rpc_clnt_submit] 0-rpc-clnt: submitted
                request (XID: 0x19x Program: NLMv4, ProgVers: 4, Proc:
                5) to rpc-transport (NLM-client)</div>
              <div class="gmail_extra">
                [2013-06-05 14:53:48.149452] T
                [nfs3.c:447:nfs3_call_state_wipe] 0-nfs-nfsv3: fd
                0x1c9f53fc ref: 4</div>
              <div class="gmail_extra">[2013-06-05 14:53:48.149495] T
                [rpcsvc.c:470:rpcsvc_handle_rpc_call] 0-rpcsvc: Client
                port: 1009</div>
              <div class="gmail_extra">[2013-06-05 14:53:48.149516] T
                [rpcsvc-auth.c:305:rpcsvc_auth_request_init]
                0-rpc-service: Auth handler: AUTH_NULL</div>
              <div class="gmail_extra">[2013-06-05 14:53:48.149533] T
                [rpcsvc.c:382:rpcsvc_request_create] 0-rpc-service:
                received rpc-message (XID: 0x13, Ver: 2, Program:
                100021, ProgVers: 4, Proc: 5) from rpc-transport
                (socket.NLM)</div>
              <div class="gmail_extra">[2013-06-05 14:53:48.149551] E
                [rpcsvc.c:203:rpcsvc_program_actor] 0-rpc-service: RPC
                Program procedure not available for procedure 5 in NLM4</div>
              <div class="gmail_extra">[2013-06-05 14:53:48.149598] D
                [rpcsvc.c:1113:rpcsvc_error_reply]
                (--&gt;/usr/lib64/libgfrpc.so.0(rpc_transport_notify+0x27)
                [0x2b1874ed5e17]
                (--&gt;/usr/lib64/libgfrpc.so.0(rpcsvc_notify+0x16c)
                [0x2b1874ed442c]
                (--&gt;/usr/lib64/libgfrpc.so.0(rpcsvc_handle_rpc_call+0x143)
                [0x2b1874ed40b3]))) 0-: sending a RPC error reply</div>
              <div><br>
              </div>
              -- <br>
              <div dir="ltr">
                <div>Thank You,</div>
                <div><br>
                </div>
                <div>Charles Cooke</div>
                <div>Senior Cloud Software Engineer</div>
                <div>Coupa Software | <a moz-do-not-send="true"
                    href="http://www.coupa.com" target="_blank">www.coupa.com</a></div>
                <div><a moz-do-not-send="true"
                    href="mailto:charles.cooke@coupa.com"
                    target="_blank">charles.cooke@coupa.com</a></div>
                <div>Cell: 902.452.4858&nbsp;</div>
                <div><a moz-do-not-send="true"
                    href="http://www.coupa.com/solutions/new-in-coupa-9"
                    target="_blank"><br>
                  </a></div>
                <div>
                  <br>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Gluster-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a>
<a class="moz-txt-link-freetext" href="http://supercolony.gluster.org/mailman/listinfo/gluster-users">http://supercolony.gluster.org/mailman/listinfo/gluster-users</a></pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Michael Brown               | `One of the main causes of the fall of
Systems Consultant          | the Roman Empire was that, lacking zero,
Net Direct Inc.             | they had no way to indicate successful
&#9742;: +1 519 883 1172 x5106    | termination of their C programs.' - Firth
</pre>
  </body>
</html>