Operating System - HP-UX
1833750 Members
2222 Online
110063 Solutions
New Discussion

Re: Can you have other finer methods to stop NFS Client?

 
SeaMark_1
Frequent Advisor

Can you have other finer methods to stop NFS Client?

When NFS server is not available, I try to /sbin/init.d/nfs.clinet or umount [some_nfs_directory] in order to terminate my Nfs-clinet,but it's so gloomy that it always fails.


As a result, execution command, such as df or fuser, bring out being defunct.

Also, I attempt to kill biod&nfsd&rpc.lockd&rpc.statd, which seems to have no effect.

:-(
He must cherish the hope that one day he will be amply rewarded.
8 REPLIES 8
Joseph Loo
Honored Contributor

Re: Can you have other finer methods to stop NFS Client?

hi,

any error message when u try using "/sbin/init.d/nfs client stop"?

regards.
what you do not see does not mean you should not believe
Alex Lavrov.
Honored Contributor

Re: Can you have other finer methods to stop NFS Client?

I ran into this problem many times and I did not find any better solution than reboot.
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Henk Geurts
Esteemed Contributor

Re: Can you have other finer methods to stop NFS Client?

Alex is right
we also have come accross this and reboot was the only solution :-(
David Nixon
Valued Contributor

Re: Can you have other finer methods to stop NFS Client?

To avoid needless reboots you could terminate all processes with open NFS files: and then run:

# /sbin/init.d/nfs.client stop

Obviously, when using this method, you
need to identify which applications are
generating the NFS mounts...
Mark Nieuwboer
Esteemed Contributor

Re: Can you have other finer methods to stop NFS Client?

Pitty but you have to reboot it's the only solution to terminate stuck nfs.

grtz. Mark
Mobeen_1
Esteemed Contributor

Re: Can you have other finer methods to stop NFS Client?

I have tried to explore many options and after all that trying .. resorted to reboot and trust me that works :))

On a serious note, many methods were employed like scripts to check availability of NFS server, if not available, then look for nfs_directories to unmount etc

But unfortunately we did not have much luck.

It was not just on HP-UX, we had even worse problems on Solaris :)

rgds
Mobeen
SeaMark_1
Frequent Advisor

Re: Can you have other finer methods to stop NFS Client?

Thanks for your replay.

it's Very helpful and also proved that I'm not only unfortunate.

With it occurs, I reboot server in same way.

But... I just have another idea.
Now that 'reboot' can get it over, why not 'init 1' and then 'init 3'?

Just a assumption.
Welcome to discuss.
He must cherish the hope that one day he will be amply rewarded.
Bill Hassell
Honored Contributor

Re: Can you have other finer methods to stop NFS Client?

Unix systems treat NFS like any other disk--if you pull the disk out, the system will hang and that's exactly what happens when an NFS goes away. The solution is to never allow the NFS server to go down, or never use NFS. The internal code changes needed to make a umount work successfully are very complex (which is why the problem has existed for so long) but will be implemented fairly soon. The command will be something like umount -f (force). In the meantime, NFS servers should ultra-reliable (no unscheduled downtime) and be connected on a dedicated LAN, especially if the NFS traffic is very high. Get a copy of Dave Olker's book on NFS for HP-UX.


Bill Hassell, sysadmin