From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Layton Subject: Re: how to execute a script from NFS mount (which disconnected)? Date: Tue, 22 May 2007 08:29:50 -0400 Message-ID: <20070522082950.405fb4ff.jlayton@redhat.com> References: <4652C7ED.9010309@wpkg.org> <1179835810.6501.8.camel@heimdal.trondhjem.org> <4652DF6D.8020209@wpkg.org> <20070522082554.b7e112d7.jlayton@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Cc: nfs@lists.sourceforge.net To: mangoo@wpkg.org 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 1HqTUv-0000O6-50 for nfs@lists.sourceforge.net; Tue, 22 May 2007 05:29:53 -0700 Received: from mx1.redhat.com ([66.187.233.31]) by mail.sourceforge.net with esmtp (Exim 4.44) id 1HqTUx-0004og-PR for nfs@lists.sourceforge.net; Tue, 22 May 2007 05:29:56 -0700 In-Reply-To: <20070522082554.b7e112d7.jlayton@redhat.com> 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 On Tue, 22 May 2007 08:25:54 -0400 Jeff Layton wrote: > On Tue, 22 May 2007 14:17:49 +0200 > Tomasz Chmielewski wrote: > > > Trond Myklebust schrieb: > > > On Tue, 2007-05-22 at 12:37 +0200, Tomasz Chmielewski wrote: > > >> How can I execute a script from NSF mount - a script which reconfigures > > >> a network interface, and there is a period of network disconnection? > > > > > > Copy it to a RAMFS partition and execute it there. > > > > No, that's not a good solution. Or a solution I would want to use. > > > > I use the same script on systems having rootfs on iSCSI. And they also > > disconnect for a brief period of time. > > There, everything works properly if I just "preload"/cache the > > script/programs with something like: > > > > cat script &>/dev/null > > program --help &>/dev/null > > > > Then, I can disconnect the station for several minutes, but the system > > will have the programs/scripts cached, and will be able to use them. > > > > > > I would like to do something similar with NFS. Isn't there a > > "disconnected" mode for NSF (or "cached", etc.)? > > > > Nope. NFS will (likely) want to check the attributes on the file to make sure > it's not changed before executing it. Copying it to a secondary location is > what you'll want to do. > > > I wonder if you could do something like this on NFSv4 with delegations? > > If it's falling down in the middle of execution, however, the problem may be that the path or something is crossing onto an NFS mount, or it could be hanging on something like NIS. You may want to try stracing it to see what system call it's trying to execute when the hang occurs... > > > > -- > > Tomasz Chmielewski > > http://wpkg.org > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > NFS maillist - NFS@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nfs > > > > > -- > Jeff Layton > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > NFS maillist - NFS@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nfs > -- Jeff Layton ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ NFS maillist - NFS@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nfs