From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id A54F41381F3 for ; Sun, 30 Jun 2013 17:12:27 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E7D68E09B4; Sun, 30 Jun 2013 17:12:18 +0000 (UTC) Received: from oproxy6-pub.bluehost.com (oproxy6-pub.bluehost.com [67.222.54.6]) by pigeon.gentoo.org (Postfix) with SMTP id 90545E08E1 for ; Sun, 30 Jun 2013 17:12:17 +0000 (UTC) Received: (qmail 27814 invoked by uid 0); 30 Jun 2013 17:12:16 -0000 Received: from unknown (HELO box401.bluehost.com) (69.89.31.201) by oproxy6.bluehost.com with SMTP; 30 Jun 2013 17:12:16 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=taydin.org; s=default; h=Content-Transfer-Encoding:Content-Type:Subject:To:MIME-Version:From:Date:Message-ID; bh=zfEgu0rokMVRQUwH60UfBz85EK+l3yZl15mtCw6yuOs=; b=XGdFxYouXAcKzUepOtW/5R9pxhp4BJ5LEJLNQ6nULUBt6nl7yzQBbIpiYMl1L21WPVO518IwLkPXW92eGoqNxgsWDQB9Kiux5T87jdaOxC7NhmaJ/Df6iRNQUoHG1raB; Received: from [176.41.233.165] (port=36924) by box401.bluehost.com with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.80) (envelope-from ) id 1UtLAe-0006W0-HQ for gentoo-user@lists.gentoo.org; Sun, 30 Jun 2013 11:12:16 -0600 Message-ID: <51D0669D.7070000@taydin.org> Date: Sun, 30 Jun 2013 20:10:53 +0300 From: Timur Aydin User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130628 Thunderbird/17.0.7 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: [gentoo-user] configuring NFS server to handle client reboots Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Identified-User: {1590:box401.bluehost.com:taydinor:taydin.org} {sentby:smtp auth 176.41.233.165 authed with ta@taydin.org} X-Archives-Salt: bb3084d7-e2e9-435f-a95f-33e6f5524a82 X-Archives-Hash: aa50737da1c62212bf9567be8219dda5 Hi, I am using Gentoo Linux as an NFS server while doing development on an Blackfin embedded system. The Blackfin is running uClinux and the development host is Gentoo testing version (~amd64). The NFS server version is 1.2.7. Here is the problem that I am observing: I start from a known state, restarting the NFS server on Gentoo and power cycling the Blackfin. Once the Blackfin system has booted, I mount an folder on the Blackfin. This succeeds without any problem. Then I power cycle the Blackfin again and after it is up, I try to mount that same folder again. But this time, the mount command hangs for a minute or so and eventually fails with a timeout error. Here is the mount command: mount -o nolock,tcp 10.2.2.254:/romfs_2011R1 /mnt When I look into the NFS server's system log, I can see that the mount was authenticated: Jun 30 13:54:53 bonsai rpc.mountd[1597]: authenticated mount request from 10.2.2.220:911 for /home/ta/uclinux_2011R1/db1/uclinux-dist/romfs (/home/ta/uclinux_2011R1) I have captured what is happening using wireshark and what I am seeing is that the mount request succeeds, but the client initiates another TCP connection (SYN) and this SYN is never responded to by the server. I know that a sm-notify program is used on both NFS clients/servers to notify reboots, but this embedded system does not have the sm-notify capability. And I would rather not try to port it to uClinux. So, my question is, can I somehow configure the NFS server to allow mounting the same directory repeatedly whenever the NFS client reboots? -- Timur