From: Wendy Cheng Subject: Re: [PATCH 2/5] NLM failover - per fs grace period Date: Mon, 14 Aug 2006 11:59:22 -0400 Message-ID: <44E09DDA.9070302@redhat.com> References: <1155535221.3416.26.camel@localhost.localdomain> <1155570281.5664.84.camel@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Cc: cluster-devel@redhat.com, lhh@redhat.com, Linux NFS Mailing List 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 1GCerp-0008BA-97 for nfs@lists.sourceforge.net; Mon, 14 Aug 2006 09:00:41 -0700 Received: from mx1.redhat.com ([66.187.233.31]) by mail.sourceforge.net with esmtp (Exim 4.44) id 1GCero-0007ne-In for nfs@lists.sourceforge.net; Mon, 14 Aug 2006 09:00:41 -0700 To: Trond Myklebust In-Reply-To: <1155570281.5664.84.camel@localhost> 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 Trond Myklebust wrote: >On Mon, 2006-08-14 at 02:00 -0400, Wendy Cheng wrote: > > >>This change enables per NFS-export entry lockd grace period. The >>implementation is based on a global single linked list nlm_servs that >>contains entries of fsid info. It is expected this would not be a >>frequent event. The nlm_servs list should be short and the entries >>expire within a maximum of 50 seconds. The grace period setting follows >>the existing NLM grace period handling logic and is triggered via >>echoing the NFS export filesystem id into /proc/fs/nfsd/nlm_set_igrace >>file as: >> >>shell> echo 1234 > /proc/fs/nfsd/nlm_set_igrace >> >> > >I still don't find the above interface convincing. > >Firstly, as I already told you, the NSM protocol does not allow you to >set only a single filesystem in grace. Clients get notified of server >reboots, not filesystem reboots: if they try to reclaim locks and find >out that some of filesystems they have mounted will not allow them to do >so, then they _will_ get confused and start dropping locks that would >otherwise be perfectly valid. > > I'll check into Linux client code to see what's going on. But please be aware that the individual filesystem grace period goes with floating ip. You notify (nfs) client by floating ip address, NOT by filesystem id (but set the grace period in server via fsid). Say you expect nfs requests going into floating ip 10.10.1.1 that will handle exported fsid 1234 and 1235. On server, you do /proc entries based on 1234 and 1235 and you notify client about 10.10.1.1. >Secondly, with the above interface, you have to export the filesystem >first, and then set the grace period. > No, you don't. The changes and code has nothing to do with export. It just adds the numerical fsid into a global array (nlm_servs). When lock requests finally arrive (later), it extracts the filesystem id from the filehandle to compare. It can be invoked before filesystem is exported. -- Wendy ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ NFS maillist - NFS@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nfs