From nobody@FreeBSD.org  Mon Jun 11 09:11:50 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 4A390106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 11 Jun 2012 09:11:50 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 352B58FC12
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 11 Jun 2012 09:11:50 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q5B9BoHE078564
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 11 Jun 2012 09:11:50 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id q5B9Bnfh078563;
	Mon, 11 Jun 2012 09:11:49 GMT
	(envelope-from nobody)
Message-Id: <201206110911.q5B9Bnfh078563@red.freebsd.org>
Date: Mon, 11 Jun 2012 09:11:49 GMT
From: Peter Maloney <peter.maloney@brockmann-consult.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [nfs] [hang] nfsd hangs after being restarted (not -HUP) and then an export being mounted
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         168942
>Category:       kern
>Synopsis:       [nfs] [hang] nfsd hangs after being restarted (not -HUP) and then an export being mounted
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-fs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 11 09:20:07 UTC 2012
>Closed-Date:    
>Last-Modified:  Sun Jun 17 22:39:59 UTC 2012
>Originator:     Peter Maloney
>Release:        8.3-STABLE csup *default date=2012.06.01.00.00.00
>Organization:
Brockmann Consult
>Environment:
FreeBSD bcnas1bak.bc.local 8.3-STABLE FreeBSD 8.3-STABLE #2: Thu Jun  7 12:15:33 CEST 2012     root@bcnas1bak.bc.local:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
Here is my forum thread about it, with more detail:

http://forums.freebsd.org/showthread.php?t=26727

If I run this command:
# /etc/rc.d/rpcbind restart ; /etc/rc.d/mountd restart ; /etc/rc.d/nfsd restart

And then try to mount an export somewhere:
# mount -v -t nfs bcnas1bak:/tank/test test

Then the mount command eventually times out, and the server's nfsd process goes up to 130% or so CPU and will never work again until rebooting.

I also tried variations on it, eg. changing the order, stopping all first, waiting in between starting them, using kill -9 and double checking the 3 are shut down, etc. 

The system runs zfs
>How-To-Repeat:
on nfs server:

# /etc/rc.d/rpcbind restart ; /etc/rc.d/mountd restart ; /etc/rc.d/nfsd restart

on nfs client (tested FreeBSD 8.3, Ubuntu and openSUSE Linux):

# mount -v -t nfs bcnas1bak:/tank/test test

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-amd64->freebsd-fs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sun Jun 17 22:39:40 UTC 2012 
Responsible-Changed-Why:  
reclassify. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=168942 
>Unformatted:
