From owner-freebsd-stable@FreeBSD.ORG Sun Apr 6 08:58:12 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1491B1065673 for ; Sun, 6 Apr 2008 08:58:12 +0000 (UTC) (envelope-from tzhuan@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.157]) by mx1.freebsd.org (Postfix) with ESMTP id 85A648FC19 for ; Sun, 6 Apr 2008 08:58:11 +0000 (UTC) (envelope-from tzhuan@gmail.com) Received: by fg-out-1718.google.com with SMTP id 16so1027980fgg.35 for ; Sun, 06 Apr 2008 01:58:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=7zABo8EjsVwmCaje/NCGVnl/Fjg8AiicBGDEzyPXXBg=; b=JHlIXllvVezWqEhAE/VjM9EytLMKcJpU1i+O9brgpT5V50LjJp/GJG90s1fqWAKadoCFv9hYqc9z4ilIEpCJnHK7CB1pKnps79NpzyyhR18YFKKf/aXiC1xCjvIkHZb7+U532jPS3LeMF4yYBZgZPcQupVokcbuuHqygGTDyid8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=VRVmDtEdF8O9iHnL16TD6EKsJBcx13i6fYNyWw5BRABowRyu9aLhcyoBS2MLNn4nwqTRnChPOEgefzXWoVlBuTkNmaPDd2w4anL3FgSyNfNKkFIkrImru1Bi3f3IcvnM20kjTvIacp/nd0lgvjA1vaHCbu4yVEdRTkrUqoGGoIQ= Received: by 10.86.78.4 with SMTP id a4mr2447873fgb.3.1207472288878; Sun, 06 Apr 2008 01:58:08 -0700 (PDT) Received: by 10.86.53.1 with HTTP; Sun, 6 Apr 2008 01:58:08 -0700 (PDT) Message-ID: <6a7033710804060158j38c1314u371130b05225c247@mail.gmail.com> Date: Sun, 6 Apr 2008 16:58:08 +0800 From: "Tz-Huan Huang" Sender: tzhuan@gmail.com To: "Doug Rabson" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <6a7033710804020517y2b0a0336v7ab840ca5a5f5ff4@mail.gmail.com> <6a7033710804052218u3660441bk6d37458af03e7ed@mail.gmail.com> <6eb82e0804052305k4c44679dn92c86c58ac591cdc@mail.gmail.com> <6a7033710804052338l5af386f9xdd5c8d4729be2683@mail.gmail.com> X-Google-Sender-Auth: a77ad44da10fb88d Cc: freebsd-stable@freebsd.org, dfr@freebsd.org, Rong-en Fan , Ken Chen Subject: Re: lock problem: nfs server on FreeBSD 7-stable, client on linux 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: Sun, 06 Apr 2008 08:58:12 -0000 On Sun, Apr 6, 2008 at 3:45 PM, Doug Rabson wrote: > > It would be useful to get a packet trace from tcpdump (e.g. tcpdump -w > ) that shows what happens on the wire when the linux client fails to > lock a file on the freebsd server. Since the nfs server is in production now, I have setup another machine to get the packet trace. Here is the output of tcpdump (I use tcpdump -w host cml8): http://w.csie.org/~tzhuan/tmp/tcpdump.raw cml7 is the nfs server (today's 7-stable, i386) and cml8 is debian linux (amd64). I use this program (http://w.csie.org/~tzhuan/tmp/lock.c) to test the file locking when capturing the packets. It ran about 1m30s and showed ``lock fail''. sockstat -4l on cml7: root sshd 695 3 tcp4 *:22 *:* daemon rpc.lockd 577 4 udp4 *:751 *:* daemon rpc.lockd 577 5 tcp4 *:751 *:* daemon rpc.lockd 577 7 udp4 *:716 *:* root rpc.lockd 565 4 udp4 *:751 *:* root rpc.lockd 565 5 tcp4 *:751 *:* root rpc.lockd 565 7 udp4 *:716 *:* root rpc.statd 559 3 udp4 *:739 *:* root rpc.statd 559 4 tcp4 *:686 *:* root rpc.statd 558 3 udp4 *:739 *:* root rpc.statd 558 4 tcp4 *:686 *:* root nfsd 551 3 tcp4 *:2049 *:* root mountd 542 5 udp4 *:608 *:* root mountd 542 7 tcp4 *:608 *:* root rpcbind 497 6 udp4 *:111 *:* root rpcbind 497 7 udp4 *:725 *:* root rpcbind 497 8 tcp4 *:111 *:* Thanks, Tz-Huan