From owner-freebsd-questions Sat May 6 12:26: 9 2000 Delivered-To: freebsd-questions@freebsd.org Received: from server1.flyinghosting.com (www.flyhost.com [216.65.103.162]) by hub.freebsd.org (Postfix) with ESMTP id 3DDB437BD1C for ; Sat, 6 May 2000 12:26:07 -0700 (PDT) (envelope-from root@hostonfly.com) Received: from 213.221.48.16 ([213.221.48.16]) by server1.flyinghosting.com (8.9.3/8.9.3) with ESMTP id UAA05828; Sat, 6 May 2000 20:25:23 GMT Date: Sat, 6 May 2000 23:25:13 +0400 From: Dmitry Koltsov X-Mailer: The Bat! (v1.38e) S/N A1D26E39 / Educational Reply-To: Dmitry Koltsov X-Priority: 3 (Normal) Message-ID: <4975.000506@hostonfly.com> To: Alfred Perlstein Cc: freebsd-questions@freebsd.org Subject: Re[4]: nfs: soft mountig trouble In-reply-To: <20000506124310.B15613@fw.wintelcom.net> References: <20000506124310.B15613@fw.wintelcom.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 [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 [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