From owner-freebsd-questions@FreeBSD.ORG Tue Sep 16 23:52:27 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1F647106564A for ; Tue, 16 Sep 2008 23:52:27 +0000 (UTC) (envelope-from af300wsm@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.226]) by mx1.freebsd.org (Postfix) with ESMTP id E0A858FC19 for ; Tue, 16 Sep 2008 23:52:26 +0000 (UTC) (envelope-from af300wsm@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so3806961rvf.43 for ; Tue, 16 Sep 2008 16:52:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:cc:references:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:message-id; bh=shSXEzfCbwRcEx84LftUqvoOhau0vvfDPKEMwMkE710=; b=cYZXLgk54LqVb9ST3kxKyh7fQwWzCSwW/0YxtVZ13RUqhLfU2q10DyqkJ0w3ssfc6M /CboqaacNa9wfZg41zkitjMZttIfzaUGkeHjtKe1olNxNvWQ58cC20Kn+0A6paVhA0L9 O/dqMjCl8ZnG7qiYmzDe4DLDIiXkhwZ3W6L9U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:cc:references:in-reply-to :mime-version:content-type:content-transfer-encoding :content-disposition:message-id; b=R7zEBuGzj0zh4fcQ/jroLDQ6aN15RlKT0XmLoNiVAgoTQhcSQuasp5wTGQGSW8zLvu VIitNuZDAycHnKPJL9HkwML+tvP+naAvdn7iWYN2Tto3FWcclLdMJPJc6uNuV4t4kxH3 gfqOR1TmtUKPHjBYRBb2AHD/J5kmycRROnE7w= Received: by 10.141.204.20 with SMTP id g20mr6083583rvq.230.1221609146479; Tue, 16 Sep 2008 16:52:26 -0700 (PDT) Received: from sniper ( [71.221.187.190]) by mx.google.com with ESMTPS id b8sm26329324rvf.4.2008.09.16.16.52.25 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 16 Sep 2008 16:52:25 -0700 (PDT) From: Andrew Falanga To: freebsd-questions@freebsd.org Date: Tue, 16 Sep 2008 17:50:33 -0600 User-Agent: KMail/1.9.6 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200809161750.33886.af300wsm@gmail.com> Cc: patrick Subject: Re: Kill NFS connection X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Sep 2008 23:52:27 -0000 On Monday 08 September 2008 13:01:08 patrick wrote: > Is there a way to kill an NFS connection to a server that's stopped > responding? When I try to simply unmount it, I get a never-ending > stream of "server not responding" messages. (Using FreeBSD 6.2, BTW.) > > Thanks, > > Patrick > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" Another respondent already mentioned "umount -f ..." I wanted to clear up something you may, or may not, know about NFS and that is that there isn't really a connection. Unless the behaviour changed in FBSD 7, when mounting NFS; UDP is used. UDP is a connectionless protocol in the IP suite of protocols. Because of this, detecting a lost "connection" is rather problematic. Usually, timeouts are used when sending new information, or requesting something from the server. I'd read through the mount_nfs(8) manual page just to be sure of options that may help out in this case. The -c -t -D and some others looked rather promising. In my experience, it's usually pretty difficult to unmount an unresponsive NFS mount. In fact, *and only because of the environment in which I was working*, I usually ended up rebooting my box. This is because I didn't want to wait for the timeouts (painfully slow in some default configurations; upwards of 10 minutes or more). This probably isn't feasible if your system hosts services for other clients. Andy