2005-05-31 12:51:08

by Kapil Dhakad

[permalink] [raw]
Subject: How to detect using whether NFS server is down or not

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


Attachments:
(No filename) (538.00 B)
(No filename) (641.00 B)
Download all attachments

2005-06-01 11:29:19

by Neil Horman

[permalink] [raw]
Subject: Re: How to detect using whether NFS server is down or not

On Tue, May 31, 2005 at 06:21:02PM +0530, Kapil Dhakad wrote:
> 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

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

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

2005-06-01 18:08:03

by Dan Stromberg

[permalink] [raw]
Subject: Re: How to detect using whether NFS server is down or not

On Wed, 2005-06-01 at 07:28 -0400, Neil Horman wrote:
> On Tue, May 31, 2005 at 06:21:02PM +0530, Kapil Dhakad wrote:
> > 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
>
> 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


Attachments:
signature.asc (189.00 B)
This is a digitally signed message part