setenv PATH hangs when nfs server down

setenv PATH hangs when nfs server down

Post by MWT » Sat, 24 Mar 2001 04:05:02



Hello All,

I've got a line in my .cshrc like so:
   setenv PATH $PATH:/nfsarea

nfsarea is a directory that is nfs mounted from another server.
Whenever that server goes down I can't log in.  It always
hangs on the setenv PATH line.  Is there a way around this?

TIA,
  Mark

 
 
 

setenv PATH hangs when nfs server down

Post by Bill Marcu » Sat, 24 Mar 2001 05:06:02



>Hello All,

>I've got a line in my .cshrc like so:
>   setenv PATH $PATH:/nfsarea

>nfsarea is a directory that is nfs mounted from another server.
>Whenever that server goes down I can't log in.  It always
>hangs on the setenv PATH line.  Is there a way around this?

if (ping nfsserver) then
setenv PATH $PATH:/nfsarea
else echo "NFS server is down"
endif

 
 
 

setenv PATH hangs when nfs server down

Post by MWT » Sat, 24 Mar 2001 05:30:00


True, but this seems like an awkward way of doing it.
Is there a way to do just a BLIND setenv?  So it just sets
the PATH and doesn't check to see if it can stat the
directory.

TIA
  Mark



> >Hello All,

> >I've got a line in my .cshrc like so:
> >   setenv PATH $PATH:/nfsarea

> >nfsarea is a directory that is nfs mounted from another server.
> >Whenever that server goes down I can't log in.  It always
> >hangs on the setenv PATH line.  Is there a way around this?

> if (ping nfsserver) then
> setenv PATH $PATH:/nfsarea
> else echo "NFS server is down"
> endif

 
 
 

setenv PATH hangs when nfs server down

Post by MWT » Sat, 24 Mar 2001 08:15:04


Yep, tried doing an 'unhash' before the setenv but still didn't work.
Any other ideas?



> > Is there a way to do just a BLIND setenv?  So it just sets
> > the PATH and doesn't check to see if it can stat the
> > directory.

> The shell is most likely updating its hash tables. If you turn hashing
> off (builtin command unhash) it might work. But then you have to
> be very careful as you will hang again the first time you try to
> execute a program that is located in a directory placed after the
> NFS directory in the path, or a program that is not found. :-)

> --
> G?ran Larsson     Senior Systems Analyst    hoh AT approve DOT se

 
 
 

setenv PATH hangs when nfs server down

Post by Bill Marcu » Mon, 26 Mar 2001 05:05:02



>Yep, tried doing an 'unhash' before the setenv but still didn't work.
>Any other ideas?

setenv some other variable, and then later you could setenv PATH = that
variable ?
 
 
 

1. NFS client hangs when the server goes down

Hi all,

I'm running a 4.3.3 F50 server that exports some file systems to a
4.3.3 S80 machine. Those machines are connected by a 2 way gigabit
ethernet network. Yesterday I had to get the server down for
maintenance and surprisingly the client machine stopped answering to
its clients, i.e., the applications that runs on that machine hung.

There is a known problem related to that situation ? It might be a
coincidence and the problem with the applications was not really
related with the shutdown of the nfs server ? I looked for related
messages on both logs but I didn't find anything.

Thanks in advance.
Xyko

2. Help: Unable to download man-pages-1.28-6.noarch.rpm

3. stat() hangs indefinetely on NFS when server down

4. Solaris 2.5.1 and nanosleep()

5. Down 'Solaris' NFS Server hangs 'Solaris' Client

6. Trouble with gda0

7. Linux NFS hangs, if server machine goes down

8. Looking for survey of xbench under XFree86

9. NFS: When one server goes down, entire network slows down to a crawl.

10. nfs hangs when remote system goes down

11. Bringing down two servers using NFS

12. shutting down a server without umounting NFS filesystems

13. NIS, NFS and delay problems when primary server is down