From nobody@FreeBSD.org  Mon Apr  2 12:05:51 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 1751337B725
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  2 Apr 2001 12:05:51 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.1/8.11.1) id f32J5p512660;
	Mon, 2 Apr 2001 12:05:51 -0700 (PDT)
	(envelope-from nobody)
Message-Id: <200104021905.f32J5p512660@freefall.freebsd.org>
Date: Mon, 2 Apr 2001 12:05:51 -0700 (PDT)
From: galen.menzel@mail.utexas.edu
To: freebsd-gnats-submit@FreeBSD.org
Subject: FreeBSD 4.3-RC #0 amd fails to automount nfs filesystems
X-Send-Pr-Version: www-1.0

>Number:         26298
>Category:       kern
>Synopsis:       FreeBSD 4.3-RC #0 amd fails to automount nfs filesystems
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 02 12:10:00 PDT 2001
>Closed-Date:    Tue Apr 3 17:43:16 PDT 2001
>Last-Modified:  Tue Apr 03 17:44:18 PDT 2001
>Originator:     Galen Menzel
>Release:        FreeBSD 4.2, FreeBSD 4.x-stable source tree
>Organization:
University of Texas at Austin
>Environment:
FreeBSD valen.cc.utexas.edu 4.3-RC FreeBSD 4.3-RC #0:
Mon Apr  2 12:58:16 CDT 2001
root@valen.cc.utexas.edu:/usr/src/sys/compile/CUSTOM2  i386
>Description:
I am using amd to automount two nfs filesystems, both living on the same
Network Appliance filer.  I am using /etc/amd/source as an amd config
file.  The contents of /etc/amd/source are as follows:

public  type:=nfs;opts:=rw,hard,nosuid;rhost:=<servername>;\
        rfs:=/export/public/source
private type:=nfs;opts:=rw,hard,nosuid;rhost:=<servername>;\
        rfs:=/export/unix-source

with <servername> replaced with the net app filer's service name.  The
following lines are in /etc/rc.conf:

amd_enable="YES"
amd_flags="/usr/share/src /etc/amd/source"

and 'ps auxw | grep amd' yeilds:

amd -p /usr/share/src /etc/amd/source

This configuration works with the FreeBSD 4.2 kernel.  However, with the
current 4.x-stable kernel, as of 2 April 2001, if I try to access
/usr/share/src/public or /usr/share/src/private (via ls, cd, or
whatever), the access hangs for maybe a minute, and then quits with an
"operation timed out" error. After the timeout error has occured,
attempts to access the directory fail with the timeour error
immediately.

Before attempting to access the automount directories, df works fine.
If access is attempted, but canceled before the timeout error is
received, further attempts to access the automount directories,
including df, hang until the error is received.  After the error is
received, df works and shows that the automount filesystems are not
mounted.

I am able to mount both of these filesystems by hand as root.
>How-To-Repeat:
Start amd 'amd -p /usr/share/src /etc/amd/source' and attempt to access
the automount filesystems.
>Fix:

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: dd 
State-Changed-When: Tue Apr 3 17:43:16 PDT 2001 
State-Changed-Why:  
Originator reports that the problem was likely caused by having the 
kernel and userland out of sync, which is definitely a no-no. 

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