From: "J. Bruce Fields" <bfields@fieldses.org>
To: James Pearson <james-p@moving-picture.com>
Cc: linux-nfs@vger.kernel.org
Subject: Re: Problems with Mac clients mounting a Linux server behind a firewall
Date: Mon, 22 Dec 2008 12:23:09 -0500 [thread overview]
Message-ID: <20081222172309.GO4191@fieldses.org> (raw)
In-Reply-To: <494FC625.4040207@moving-picture.com>
On Mon, Dec 22, 2008 at 04:53:57PM +0000, James Pearson wrote:
> James Pearson wrote:
>> I'm not absolutely sure if this is an NFS server issue, but I have an
>> Linux NFS server running CentOS4 that sits behind a firewall - about
>> once a week rpciod ends up using 99% CPU and the machine needs to be
>> rebooted
>>
>> When it gets into this state, running 'netstat -u -a' shows thousands
>> of entries like:
>>
>> udp 0 0 *:35071 *:*
>> udp 0 0 *:34815 *:*
>> udp 0 0 *:34559 *:*
>> udp 0 0 *:34303 *:*
>> udp 0 0 *:34047 *:*
>> udp 0 0 *:33791 *:*
>> udp 0 0 *:33535 *:*
>> udp 0 0 *:33279 *:*
>> udp 0 0 *:33151 *:*
>> udp 0 0 *:32895 *:*
>>
>> and tcpdump shows lots of udp connection attempts to port 111 on
>> various Macs that are or have mounted the server (via an automounter).
>> The connections don't get through as they are blocked by the firewall.
>> None of these blocked connections are to Linux clients - it's just Mac
>> clients
>>
>> Is there anything that NFS server-wise that could be cause the server
>> to attempt to contact clients in this way?
>
> Running wireshark over the tcpdump output, all these portmap calls are like:
>
> User Datagram Protocol, Src Port: 51947 (51947), Dst Port: sunrpc (111)
> Remote Procedure Call, Type:Call XID:0xacd4150f
> Portmap GETPORT Call NLM(100021) Version:4 UDP
> [Program Version: 2]
> [V2 Procedure: GETPORT (3)]
> Program: NLM (100021)
> Version: 4
> Proto: UDP (17)
> Port: 0
>
> Why would an NFS server need to initiate a call to the lockd process on
> a (MacOS) client?
The communication between lockd's is 2-way, so that, for example,
servers can notify clients when locks are available. Also, the server's
statd needs to contact the clients so it can ask the clients to notify
it when the clients reboot (and hence when their file locks should be
released). And similarly the server needs to be able to notify the
clients when it reboots, so the client can reclaim any locks it
previously held.
So your firewall settings are a problem. But, obviously, we should be
handling this more gracefully on the server.
--b.
next prev parent reply other threads:[~2008-12-22 17:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-19 22:52 Problems with Mac clients mounting a Linux server behind a firewall James Pearson
2008-12-22 16:53 ` James Pearson
2008-12-22 17:23 ` J. Bruce Fields [this message]
2008-12-22 20:36 ` James Pearson
2009-01-02 0:29 ` J. Bruce Fields
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20081222172309.GO4191@fieldses.org \
--to=bfields@fieldses.org \
--cc=james-p@moving-picture.com \
--cc=linux-nfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox