From: Trond Myklebust Subject: Re: NFS experince story, questions. Date: Thu, 07 Apr 2005 13:39:40 -0400 Message-ID: <1112895580.10366.71.camel@lade.trondhjem.org> References: <1112894081.6230.9.camel@vasiliy.coinfotech.com> Mime-Version: 1.0 Content-Type: text/plain Cc: nfs@lists.sourceforge.net Return-path: Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.11] helo=sc8-sf-mx1.sourceforge.net) by sc8-sf-list2.sourceforge.net with esmtp (Exim 4.30) id 1DJayx-0008Gk-Ly for nfs@lists.sourceforge.net; Thu, 07 Apr 2005 10:39:55 -0700 Received: from pat.uio.no ([129.240.130.16] ident=7411) by sc8-sf-mx1.sourceforge.net with esmtp (TLSv1:AES256-SHA:256) (Exim 4.41) id 1DJayx-0005vg-4l for nfs@lists.sourceforge.net; Thu, 07 Apr 2005 10:39:55 -0700 To: vasiliy@lohankin.com In-Reply-To: <1112894081.6230.9.camel@vasiliy.coinfotech.com> Sender: nfs-admin@lists.sourceforge.net Errors-To: nfs-admin@lists.sourceforge.net List-Unsubscribe: , List-Id: Discussion of NFS under Linux development, interoperability, and testing. List-Post: List-Help: List-Subscribe: , List-Archive: to den 07.04.2005 Klokka 11:14 (-0600) skreiv Vasiliy Boulytchev: > A new task has come up, and we are looking back at NFS, since samba > really does not allow us to have proper user arrangements. I really am > afraid of having stale mounts again. Is this a common newbie problem, > or is this the nature of NFS? When either of the nodes becomes > unstable, has to reboot, (or a failover occurs), does this mean the > other node will have a stale mount point and will need a reboot? A server reboot should not require a client reboot, given a properly configured system, however you do need to understand some of the limitations of the NFS model. NFS relies heavily on the use of "filehandles" in order to ensure that we can retain posix behaviour in cases where a rename() of the file or some element of the path occurs on the server. In order to have the required properties, filehandles tend to have to encode information such as device id (known as the "fsid" in NFS-lingo) and file inode number. If one or more of those changes, then an ESTALE is likely to occur. One common cause of ESTALE on reboot is that the device id changes after reboot (fibre channel being a notable culprit). In order to fix the problem of the filehandles going stale, the Linux kernel server has an export option "fsid" which allows you to fix the device id to some arbitrary value. (See the "exports" manpage for more info) The other common problem is that the filesystem may not support any equivalent of the inode number in permanent storage (MS filesystems tend to have a problem here). We currently have no good solution for that problem on Linux (partly because the NFSv2/v3 protocols did not really allow for it at all). We are certainly planning on hardening the client, and allowing for some recovery, but the whole problem can be avoided, by choosing a filesystem with good NFS support (ext2/ext3, XFS, reiserfs3 are among the list of good choices). The NFS FAQ has a more complete section on this issue. Cheers, Trond -- Trond Myklebust ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ NFS maillist - NFS@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nfs