From: Chris Worley Subject: Re: Stopping NFS, ip address take over, zero-copy NFS for 2.4.21, and misc Date: 19 Sep 2003 16:41:36 -0600 Sender: nfs-admin@lists.sourceforge.net Message-ID: <1064011295.9216.873.camel@localhost.localdomain> References: <1063900790.8031.9644.camel@localhost.localdomain> <3F6A21E1.9090404@moving-picture.com> <1063977995.2766.4.camel@mosix> Mime-Version: 1.0 Content-Type: text/plain Cc: James Pearson , 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-list1.sourceforge.net with esmtp (Cipher TLSv1:DES-CBC3-SHA:168) (Exim 3.31-VA-mm2 #1 (Debian)) id 1A0Tzm-0007zy-00 for ; Fri, 19 Sep 2003 15:44:58 -0700 Received: from [208.177.141.226] (helo=localhost.lnxi.com) by sc8-sf-mx1.sourceforge.net with esmtp (Exim 4.22) id 1A0Tzl-0002bp-G9 for nfs@lists.sourceforge.net; Fri, 19 Sep 2003 15:44:57 -0700 To: Matt Schillinger In-Reply-To: <1063977995.2766.4.camel@mosix> Errors-To: nfs-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Id: Discussion of NFS under Linux development, interoperability, and testing. List-Unsubscribe: , List-Archive: On Fri, 2003-09-19 at 07:26, Matt Schillinger wrote: > On Thu, 2003-09-18 at 16:21, James Pearson wrote: > > Chris Worley wrote: > > > > > > 2) IP address takeover between NFS servers. > > > > > > With NFS stateless, and not running lock servers, I thought a simple IP > > > address takeover scheme (when an I/O server goes down, another just adds > > > the failed server's IP address as a virtual interface) would allow > > > clients to immediately renegotiate with the same IP address pointing to > > > another NFS server (serving the same partitions). The take-over is > > > successful: the clients can communicate with the new I/O server, but I > > > get "permission denied" (as root or otherwise) on the NFS mounted > > > partitions most of the time (sometimes it works). > > > > > > What am I missing? > > > > I don't know a lot about NFS fail over, but I guess unless the take-over > > server has a copy (or the same copy) of /var/lib/nfs/rmtab, then you > > will get "permission denied" - the server needs an entry for each > > client. I guess it works some of the time as the take-over server has a > > 'valid' entry in its rmtab file for that client. > > > > Yes, i made a little daemon that for each exported directory, generates > a 'directory specific' rmtab file in > /path/to/directory/.nfs_cluster/rmtab. It updates each export directory > every 2 seconds and copies the rmtab to rmtab.old , then generates a > clean rmtab. it has worked fine for me to prevent permission > denied/Stale NFS handles. > > Upon the failover, after the filesystem is mounted by the 'takeover > server', the .nfs_cluster/rmtab is processed and added to > /var/lib/nfs/rmtab before exportfs instances are ran on the export > directories. > > What are you using for failover? > > I use heartbeat. > > I also had to make a 2 second delay after IP takeover, for the IP to > actually be working, before I run the exportfs for the newly mounted > filesystem. GFS has a built-in "fence" system, which employs some sort of heartbeat. When a server stops responding, a "fence" script gets run by GFS's lock server... there's a fence script for our ICE Boxes: it power cycles the server and adds the virtual interface on the next server (the IP takeover). Chris > > Matt Schillinger > mschilli@vss.fsi.com > > > > James Pearson > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > NFS maillist - NFS@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nfs > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > NFS maillist - NFS@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nfs ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ NFS maillist - NFS@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nfs