From owner-freebsd-fs@FreeBSD.ORG Fri Oct 14 19:59:26 2005 Return-Path: X-Original-To: freebsd-fs@FreeBSD.org Delivered-To: freebsd-fs@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5818F16A41F for ; Fri, 14 Oct 2005 19:59:26 +0000 (GMT) (envelope-from Nicolas.Kowalski@imag.fr) Received: from imag.imag.fr (imag.imag.fr [129.88.30.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2D66A43D69 for ; Fri, 14 Oct 2005 19:59:20 +0000 (GMT) (envelope-from Nicolas.Kowalski@imag.fr) Received: from mail-veri.imag.fr (mail-veri.imag.fr [129.88.43.52]) by imag.imag.fr (8.13.0/8.13.0) with ESMTP id j9EJxDJ7017523 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Fri, 14 Oct 2005 21:59:13 +0200 (CEST) Received: from corbeau.imag.fr ([129.88.43.162]) by mail-veri.imag.fr with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.50) id 1EQVhx-0000RO-7B for freebsd-fs@FreeBSD.org; Fri, 14 Oct 2005 21:59:13 +0200 Received: from kowalski by corbeau.imag.fr with local (Exim 4.50) id 1EQVhx-0002C6-4W for freebsd-fs@FreeBSD.org; Fri, 14 Oct 2005 21:59:13 +0200 To: freebsd-fs@FreeBSD.org References: <20051014160128.hev160v52ossokg0@wwws.cs.ait.ac.th> <20051014045824.V5343@odysseus.silby.com> <434FD761.3050506@centtech.com> <434FEDC6.4040405@centtech.com> <434FFAD6.6000002@ant.uni-bremen.de> From: Nicolas KOWALSKI Date: Fri, 14 Oct 2005 21:59:13 +0200 In-Reply-To: <434FFAD6.6000002@ant.uni-bremen.de> Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: Nicolas Kowalski X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.6 (imag.imag.fr [129.88.30.1]); Fri, 14 Oct 2005 21:59:13 +0200 (CEST) X-IMAG-MailScanner: Found to be clean X-IMAG-MailScanner-Information: Please contact the ISP for more information Cc: Subject: Re: FreeBSD NFS server not responding to TCP SYN packets from Linux/SunOS clients X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Oct 2005 19:59:26 -0000 Heinrich Rebehn writes: > Nicolas KOWALSKI wrote: >> Eric Anderson writes: >> >>>Nicolas KOWALSKI wrote: >>> >>>>Eric Anderson writes: >>>> >>>>>Nicolas KOWALSKI wrote: >>>>> >>>>>>Mike Silbersack writes: >>>>>> >>>>>>>Actually, there may be a quick fix for this specific machine. >>>>>>>If you set net.inet.tcp.keepidle to 1 minute (60*whatever >>>>>>>kern.hz is), that'll cause keepalive packets to be sent every >>>>>>>minute to an idle connection, rather than every 2 hours. That >>>>>>>would kill the stuck connections much quicker. >>>> >>>>>>Unfortunately, this does not work as expected. I just tested >>>>>>with my workstation (Linux 2.6), with NFS filesystems mounted >>>>>>with TCP; when the station rebooted abruptely, mounting the same >>>>>>NFS filesystems hung more than 1 minute (15 minutes just >>>>>>now). During this hang, I saw on the server, using netstat, the >>>>>>nfsd process related to my workstation in ESTABLISHED state. >>>>> >>>>>Man fixmount? >>>> >>>>This is a FreeBSD-only command apparently. I did not find it on >>>>Linux or Solaris. It could have been useful, by calling it before >>>>NFS filesystems are mounted on clients, yes. >>> >>>It's available on Fedora Core 2 and 3 at least. >> So, its a non-option, because we are only using Debian Sarge and >> Solaris 9 UNIX workstations. :-( > > For Debian Sarge, it is in am-utils (amd automounter). Oh, thanks for the information... > Since we are bit by the same problem - we have diskless Linux > clients that mount their root fs from a FreeBSD server, which > sometimes takes some 15 minutes - i will try fixmount next week. I just tried it without success. I call it just before /etc/rcS.d/S45mountnfs, and it does not help. It looks "normal" for me, because the hang (visible on the etherreal trace) does not happen at mount call, but when requesting the SYN to the nfsd port on the server. -- Nicolas