From owner-freebsd-stable@FreeBSD.ORG Wed Mar 28 21:51:24 2007 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9B54E16A400 for ; Wed, 28 Mar 2007 21:51:24 +0000 (UTC) (envelope-from tom@tomjudge.com) Received: from smtp801.mail.ird.yahoo.com (smtp801.mail.ird.yahoo.com [217.146.188.61]) by mx1.freebsd.org (Postfix) with SMTP id 1AB7F13C4AE for ; Wed, 28 Mar 2007 21:51:23 +0000 (UTC) (envelope-from tom@tomjudge.com) Received: (qmail 52809 invoked from network); 28 Mar 2007 21:24:43 -0000 Received: from unknown (HELO ?192.168.1.2?) (thomasjudge@btinternet.com@86.140.150.175 with plain) by smtp801.mail.ird.yahoo.com with SMTP; 28 Mar 2007 21:24:43 -0000 X-YMail-OSG: xdY52G8VM1n9X93FCGovMOUq8PW__F8974JIXTsAICsNkQpy Message-ID: <460ADD30.5040207@tomjudge.com> Date: Wed, 28 Mar 2007 22:25:04 +0100 From: Tom Judge User-Agent: Thunderbird 1.5.0.10 (X11/20070306) MIME-Version: 1.0 To: Tom Judge References: <460A9404.1060605@tomjudge.com> In-Reply-To: <460A9404.1060605@tomjudge.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org Subject: Re: [SOLVED] NFS Mount problems X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Mar 2007 21:51:24 -0000 Tom Judge wrote: > Hi, > > > I have a HA NFS server setup, but I am having some problems with > mounting the NFS shares. I have had to patch mountd to allow it to be > configured with an IP to bind to, its a bit of quick hack (no docs, > ipv6 etc...) but solves the problem for us where mountd sends the > packets from the wrong ip. (See patch bellow). > > > The NFS server IP is 172.31.0.200 and we have the following flags set in > rc.conf: > > nfs_server_flags="-u -t -n 4 -h 172.31.0.200" > rpcbind_flags="-h 172.31.0.200" > mountd_flags="-r -p 832 -h 172.31.0.200" > > When I try and mount the share I get the following error the command: > > maverick# mount nfs-server:/usr/home /usr/home > [udp] nfs-server:/usr/home: RPCPROG_MNT: RPC: Timed out > [udp] nfs-server:/usr/home: RPCPROG_MNT: RPC: Timed out > > And the following data from tcpdump on the server: > > [root@beaker /usr/home/mintel]# tcpdump -n 'ip host 172.31.0.2 and ip > host 172.31.0.200' > tcpdump: verbose output suppressed, use -v or -vv for full protocol decode > listening on em0, link-type EN10MB (Ethernet), capture size 68 bytes > 17:10:58.321858 IP 172.31.0.2.906 > 172.31.0.200.111: UDP, length 56 > 17:10:58.322018 IP 172.31.0.200.111 > 172.31.0.2.906: UDP, length 28 > 17:10:58.322231 IP 172.31.0.2.1175084341 > 172.31.0.200.2049: 40 null > 17:10:58.322280 IP 172.31.0.200.2049 > 172.31.0.2.1175084341: reply ok > 24 null > 17:10:58.322481 IP 172.31.0.2.921 > 172.31.0.200.111: [|lwres] > 17:10:58.322560 IP 172.31.0.200.111 > 172.31.0.2.921: [|lwres] > 17:10:58.322731 IP 172.31.0.2.854 > 172.31.0.200.832: UDP, length 112 > 17:11:13.324547 IP 172.31.0.200.832 > 172.31.0.2.854: UDP, length 68 > 17:11:13.324652 IP 172.31.0.2 > 172.31.0.200: ICMP 172.31.0.2 udp port > 854 unreachable, length 36 > > > I can reproduce the problem on a number 6.2 Release systems (i386/amd64). > > Has anyone seen this before, or know of a fix? > After running ktrace on the mountd process during the mount process, I noticed that mountd was trying to do a reverse DNS lookup on the address. The problem was that the DNS server was incorrectly configured and not responding to the request. Adding the client to the server hosts file fixed the problem. Sorry for the noise. Tom