From owner-freebsd-questions Fri Oct 11 6:50:48 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DB37437B411 for ; Fri, 11 Oct 2002 06:50:46 -0700 (PDT) Received: from mail.thundernet.cz (mail.thundernet.cz [62.77.87.114]) by mx1.FreeBSD.org (Postfix) with SMTP id 7AD9943EA3 for ; Fri, 11 Oct 2002 06:50:45 -0700 (PDT) (envelope-from neuhauser@bellavista.cz) Received: (qmail 2063 invoked from network); 11 Oct 2002 13:50:43 -0000 Received: from unknown (HELO freepuppy.bellavista.cz) (62.168.44.50) by mail.thundernet.cz with SMTP; 11 Oct 2002 13:50:43 -0000 Received: by freepuppy.bellavista.cz (Postfix, from userid 1001) id 5773A2FDAB2; Fri, 11 Oct 2002 15:50:39 +0200 (CEST) Date: Fri, 11 Oct 2002 15:50:39 +0200 From: Roman Neuhauser To: Bill Moran Cc: cool46 cool46 , questions Subject: Re: how to kill nfs-blocked process Message-ID: <20021011135038.GA17488@freepuppy.bellavista.cz> Mail-Followup-To: Bill Moran , cool46 cool46 , questions References: <3DA6D49A.70401@potentialtech.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3DA6D49A.70401@potentialtech.com> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG # wmoran@potentialtech.com / 2002-10-11 09:39:38 -0400: > cool46 cool46 wrote: > > thanks for your reply,but it is not work for me.i tried to mount nfs > > with options -i,-R,but the problem is as before.The details of my test > > is as follows: > > my nfs server(IP:10.0.0.1) is a RedHat 7.3 with kernel of 2.4.19 > > version,my nfs client(IP:10.0.0.2) is freebsd 4.5 > > 10.0.0.2: > > mount_nfs -i -R 1 10.0.0.1:/home /usr/home > > cp a_big_file /usr/home > > > > in the course of doing this,i disabled network between these two machine > > by using iptables in 10.0.0.1 > > /sbin/iptables -I INPUT -p udp -s 10.0.0.2 -j DROP > > > > so the process 'cp' in 10.0.0.2 is blocked,I can't kill or interrupt it > > in any way.According to mount_nfs's manual ,it should failed and return > > in a few minutes because i set -R equal to 1,but the fact is not. > > Could you help me? > > thanks agains.i'm a chinese and glad to make friends with you. > > That should be the solution. I'm not an NFS "expert" so you may want to > consult with some others as well. (I've put this email back on the mailing > list) -i Make the mount interruptible, which implies that file system calls that are delayed due to an unresponsive server will fail with EINTR when a termination signal is posted for the process. the above makes it look like you should be able to kill the process with your settings. but see below. -R Set the mount retry count to the specified value. The default is a retry count of zero, which means to keep retrying forever. There is a 60 second delay between each attempt. this is probably what you're missing. works for me. -s A soft mount, which implies that file system calls will fail after Retry round trip timeout intervals. -- begin 666 nonexistent.vbs FreeBSD 4.7-RC 3:46PM up 3:02, 7 users, load averages: 1.37, 1.12, 0.68 end To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message