Operating System - HP-UX
1758417 Members
3214 Online
108869 Solutions
New Discussion юеВ

bdf hangs on other mahines when nfs server was shutdown

 
SOLVED
Go to solution
f. halili
Trusted Contributor

bdf hangs on other mahines when nfs server was shutdown

hello everyone,

run bdf and it hangs. it previously had an nfs filesystem mounted to 2nd machine. That 2nd machine is currently down.

Any thoughts?

Thanks,
f. halili
derekh
5 REPLIES 5
eran maor
Honored Contributor
Solution

Re: bdf hangs on other mahines when nfs server was shutdown

Hi

this is a clasic problem that you have when you issue a hardcopy of nfs .

when the nfs server goes down the mount point hang , and some command will be hang , the most common is bdf .

to solve this issue you can do a few things :
1. start the nfs server and the problem will disapper .
2. reboot the server ! yes , sorry

if you want to avoid this kind of problem do a soft mount of nfs that will not cause you this problem .

or you can you autofs or automounter .


eran maor
love computers
Steven E. Protter
Exalted Contributor

Re: bdf hangs on other mahines when nfs server was shutdown

Hi,

Its a feature.

If machinea has an nfs mount on machineb and machineb is down, of course bdf will hang.

If the nfs mount is:
/nfsmount
umount /nfsmount

Then bdf

The problem may go away.

Because you have a stale nfs mount, you may need to stop/start /sbin/init.d/nfs.client before the bdf hangs.

Your system is acting normally. Bring up server2 and all will work well.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Bill Hassell
Honored Contributor

Re: bdf hangs on other mahines when nfs server was shutdown

Using NFS can place your client(s) at risk if that server is not reliable. NFS servers must be more reliable thatn any of the clients and cannot be shut down until all the clients have unmounted their NFS mounts.

NFS is treated as a real disk, so yanking that disk out of service is just the same as yanking out a mounted hard disk. Now automounter or autofs can help the situation but NFS should be used with caution on production machines.


Bill Hassell, sysadmin
Darrel Louis
Honored Contributor

Re: bdf hangs on other mahines when nfs server was shutdown

Hi,

Stop the NFS cli├Г┬лnt and start it when the NFS server is back, this will solve your bdf hang.

Darrel
f. halili
Trusted Contributor

Re: bdf hangs on other mahines when nfs server was shutdown

thanks!!!
derekh