From: Jordi Prats Subject: Re: Nfs Failover Date: Tue, 09 Oct 2007 22:08:25 +0200 Message-ID: <470BDFB9.30409@cesca.es> References: <2a46ebd60710091240k37369e15rbc99b57d26579e8a@mail.gmail.com> <20071009195128.GQ22750@fieldses.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Cc: nfs@lists.sourceforge.net To: "J. Bruce Fields" Return-path: Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.91] helo=mail.sourceforge.net) by sc8-sf-list2-new.sourceforge.net with esmtp (Exim 4.43) id 1IfLGA-0001ik-7S for nfs@lists.sourceforge.net; Tue, 09 Oct 2007 13:00:54 -0700 Received: from carlit.cesca.es ([84.88.0.2]) by mail.sourceforge.net with esmtps (TLSv1:DES-CBC3-SHA:168) (Exim 4.44) id 1IfLGB-00036K-2L for nfs@lists.sourceforge.net; Tue, 09 Oct 2007 13:00:59 -0700 In-Reply-To: <20071009195128.GQ22750@fieldses.org> List-Id: "Discussion of NFS under Linux development, interoperability, and testing." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: nfs-bounces@lists.sourceforge.net Errors-To: nfs-bounces@lists.sourceforge.net To avoid the stale state on your clients you should add a tag to your exported filesystems. For example: /usr 10.0.0.1(rw,sync,no_root_squash,nohide,fsid=1) /usr 10.0.0.2(rw,sync,no_root_squash,nohide,fsid=1) /var 10.0.0.1(rw,sync,no_root_squash,nohide,fsid=2) /var 10.0.0.2(rw,sync,no_root_squash,nohide,fsid=2) regards, Jordi J. Bruce Fields wrote: > On Tue, Oct 09, 2007 at 03:40:22PM -0400, Saurabh Sehgal wrote: >> Hi all, >> >> I am trying to do an nfs failover from one server to another in a 4 node >> cluster . During this failover, I have a link from /var/lib/nfs directory to >> a mount that resides on a shared disk. When i want to move the "resources" >> from one node to the other ... this is how I go about initiating the move : >> >> 1) /etc/init.d/nfsserver stop >> 2) mount /var/lib/nfs on the failover node >> 3) move IP address to failover node >> 3) /etc/init.d/nfsserver start >> 4) /sbin/sm-notify -v >> >> Are these the correct steps ? What I end up getting is a Stale NFS File >> handle on all client nodes, until I unmount and remount them again. For the >> purpose of my application this mount/unmount of clients is undesirable . >> What should I do ? Any help would be appreciated. > > What filesystem are you exporting? > > --b. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > NFS maillist - NFS@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nfs > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ NFS maillist - NFS@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nfs