Linux NFS development
 help / color / mirror / Atom feed
From: Neil Brown <neilb@suse.de>
To: Tomasz Chmielewski <mangoo@wpkg.org>
Cc: nfs@lists.sourceforge.net
Subject: Re: how to execute a script from NFS mount (which disconnected)?
Date: Tue, 22 May 2007 22:42:22 +1000	[thread overview]
Message-ID: <18002.58670.174770.248425@notabene.brown> (raw)
In-Reply-To: message from Tomasz Chmielewski on Tuesday May 22

On Tuesday May 22, mangoo@wpkg.org wrote:
> This question may sound silly, but I didn't find a proper solution to it.
> 
> I have a script on a NFS share. The purpose of this script is to do some 
> network reconfiguration for Xen.
> 
> Unfortunately, it fails to execute somewhere in the middle.
> 
> Basically, the script brings the network interface down, does a bit of 
> reconfiguring, and then, the interface is brought up.
...
> 
> 
> Unfortunately, when I execute it locally, the script freezes somewhere 
> about step 2 or 3. Which I could perfectly understand - as the system 
> can't read it.

Not really.  bash reads the whole script before executing it - or at
least it did in my limited tests.  strace would confirm.

My guess is that your $PATH includes a directory that is on the NFS
mounted volume - so when bash looks for e.g. 'sleep', it looks on the
NFS mounted volume and hangs.
Try running the script with "strace -f".  It might be noisy, but it
will show you what is blocking.

NeilBrown

-------------------------------------------------------------------------
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

      parent reply	other threads:[~2007-05-22 12:42 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-22 10:37 how to execute a script from NFS mount (which disconnected)? Tomasz Chmielewski
2007-05-22 12:10 ` Trond Myklebust
2007-05-22 12:17   ` Tomasz Chmielewski
2007-05-22 12:25     ` Jeff Layton
2007-05-22 12:29       ` Jeff Layton
2007-05-22 12:41     ` Trond Myklebust
2007-05-22 12:42 ` Neil Brown [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=18002.58670.174770.248425@notabene.brown \
    --to=neilb@suse.de \
    --cc=mangoo@wpkg.org \
    --cc=nfs@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox