Skip to contentSkip to conversation

How to detect using whether NFS server is down or not

DISCUSSION Kapil Dhakad 3 participants 3 messages May 31, 2005 – Jun 1, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hello,

I am using WebNFS SDK client provided by sun, with NFS server. I implemented this client-server architecture in web application, my web application create some document on the fly and store it on different server.

I am facing problem, suppose NFS server is down. At that time WebNFS client continuously make requrest to server and goes into infinite. How to avoid this problem ?
Is there any way using "JAVA" to detect whether server is down or not ? What will be solution over it ?

Please reply urgently

Thanks
- Kapil Dhakad

#1 lore raw
Quoted 13 lines · Kapil Dhakad

Hello,

I am using WebNFS SDK client provided by sun, with NFS server. I implemented this client-server architecture in web application, my web application create some document on the fly and store it on different server.

I am facing problem, suppose NFS server is down. At that time WebNFS client continuously make requrest to server and goes into infinite. How to avoid this problem ?
Is there any way using "JAVA" to detect whether server is down or not ? What will be solution over it ?

Quoted 4 lines

Please reply urgently

Thanks
- Kapil Dhakad

you can use rpcinfo -u as an rpc ping mechanism to see if the apprpriate services are still active on the remote host, but doing so won't avoid occasional hangs on your file system.
Neil

Signature · 18 lines
/***************************************************
 *Neil Horman
 *Software Engineer
 *Red Hat, Inc.
 *[email protected]
 *gpg keyid: 1024D / 0x92A74FA1
 *http://pgp.mit.edu
 ***************************************************/


-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
NFS maillist  -  [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs
#2 lore raw
Quoted 16 lines · Neil Horman
Quoted 15 lines · Kapil Dhakad

Hello,

I am using WebNFS SDK client provided by sun, with NFS server. I implemented this client-server architecture in web application, my web application create some document on the fly and store it on different server.

I am facing problem, suppose NFS server is down. At that time WebNFS client continuously make requrest to server and goes into infinite. How to avoid this problem ?
Is there any way using "JAVA" to detect whether server is down or not ? What will be solution over it ?

Please reply urgently

Quoted 7 lines
Quoted 2 lines

Thanks
- Kapil Dhakad

you can use rpcinfo -u as an rpc ping mechanism to see if the apprpriate services are still active on the remote host, but doing so won't avoid occasional hangs on your file system.
Neil

On a related note:

http://dcs.nac.uci.edu/~strombrg/rpc-health.html