Date: Sat, 6 May 2000 23:25:13 +0400 From: Dmitry Koltsov <root@hostonfly.com> To: Alfred Perlstein <bright@wintelcom.net> Cc: freebsd-questions@freebsd.org Subject: Re[4]: nfs: soft mountig trouble Message-ID: <4975.000506@hostonfly.com> In-Reply-To: <20000506124310.B15613@fw.wintelcom.net> References: <20000506124310.B15613@fw.wintelcom.net>
next in thread | previous in thread | raw e-mail | index | archive | help
I want to program get error afer 2 attempts access to server (1-2 seconds). but processes tryes attempts access 5-10 minutes.... I have 5 http servers and 1 nfs server. if nfs server not avilable - http daemons try to access to nfs server, but i need that http daemons get error in 1-2 seconds after nfs server goes down Best regards, Dmitry Koltsov Host On Fly S.A. mailto:root@hostonfly.com >> ???????, 6 ??? 2000 ?., you wrote to me: >> >> AP> * Dmitry Koltsov <root@hostonfly.com> [000506 05:56] wrote: >> >> >> >> I use mount command: >> >> >> >> "mount_nfs -i -s -d -R1 -a1 -t1 -x1 xxx.xxx.xxx.xxx:/usr/local/t /usr/local/t" >> >> >> >> after that I'm put down interfeace on xxx.xxx.xxx.xxx, >> >> and then I try to accesss mounted file system: >> >> >> >> "ls /usr/local/t" >> >> >> >> in some seconds i receive message from ls process >> >> >> >> "nfs server xxx.xxx.xxx.xxx:/usr/local/t: not responding" >> >> >> >> But process still tryes to get access to nfs server. It occurs while I >> >> shall not kill process. It is necessary for me, that process stopped >> >> attempts of access and gave out a mistake after 1-2 attempts. >> >> How it to realize? >> >> AP> Soft mounts don't allow you to interrupt the process hung on the >> AP> mount, you need 'intr' (another mount option) for that. >> AP> * Dmitry Koltsov <root@hostonfly.com> [000506 12:21] wrote: >> as you can see - my mount command uses option '-i'. and i can >> interrupt process. but i need that process stopped attempts >> of access and gave out a error after 1-2 attempts. AP> Ok, then I'm totally at a loss, can you try to rephrase the question? AP> If you don't want the program to error, then don't use 'soft', only AP> use 'intr' AP> -Alfred To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4975.000506>