All of lore.kernel.org
 help / color / mirror / Atom feed
* how to execute a script from NFS mount (which disconnected)?
@ 2007-05-22 10:37 Tomasz Chmielewski
  2007-05-22 12:10 ` Trond Myklebust
  2007-05-22 12:42 ` Neil Brown
  0 siblings, 2 replies; 7+ messages in thread
From: Tomasz Chmielewski @ 2007-05-22 10:37 UTC (permalink / raw)
  To: nfs

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.


In a short form, the script looks like that:

#!/bin/bash

echo Start

ifdown bond0

echo Step 1...
sleep 4s

echo Step 2...
sleep 4s

echo Step 3...
sleep 4s

echo Step 4...
sleep 4s

echo Step 5...
sleep 4s

ifup bond0

echo End



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.
But I did a "cat script" just before running it - so the system should 
have it cached, right?
Sometimes only, the script executes fully.


How can I execute a script from NSF mount - a script which reconfigures 
a network interface, and there is a period of network disconnection?


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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-05-22 12:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.