From gallatin@cs.duke.edu  Tue Mar 21 16:00:34 2000
Return-Path: <gallatin@cs.duke.edu>
Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1])
	by hub.freebsd.org (Postfix) with ESMTP id 72B2637BF39
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 21 Mar 2000 16:00:29 -0800 (PST)
	(envelope-from gallatin@cs.duke.edu)
Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30])
	by duke.cs.duke.edu (8.9.3/8.9.3) with ESMTP id TAA17988
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 21 Mar 2000 19:00:27 -0500 (EST)
Received: (from gallatin@localhost)
	by grasshopper.cs.duke.edu (8.9.3/8.9.1) id SAA06408;
	Tue, 21 Mar 2000 18:59:57 -0500 (EST)
	(envelope-from gallatin@cs.duke.edu)
Message-Id: <200003212359.SAA06408@grasshopper.cs.duke.edu>
Date: Tue, 21 Mar 2000 18:59:57 -0500 (EST)
From: Andrew Gallatin <gallatin@cs.duke.edu>
Reply-To: gallatin@cs.duke.edu
To: FreeBSD-gnats-submit@freebsd.org
Subject: NIS host lookups cause NFS mounts to wedge at boot
X-Send-Pr-Version: 3.2

>Number:         17540
>Category:       conf
>Synopsis:       [nfs] NIS host lookups cause NFS mounts to wedge at boot
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          suspended
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 21 16:10:01 PST 2000
>Closed-Date:    
>Last-Modified:  Tue May 27 02:35:50 UTC 2008
>Originator:     Andrew Gallatin
>Release:        FreeBSD 4.0-RELEASE i386
>Organization:
>Environment:

FreeBSD 4.0-RELEASE as an NIS client, static NFS mounts out of
/etc/fstab, and  nis first in /etc/host.conf

>Description:

Portmap is not started until until the pass2 portion of rc.network is
executed. However, network_pass2 is run after we mount NFS
filesystems.

This is problematic in some environments if you have have nis as one
of the 1st entries in the host search order in /etc/host.conf.  The
problem is that the resolver cannot contact portmap to realize that
ypbind isn't available.  So the machines sits at 
	Mounting NFS file systems.
for quite some time.  Long enough for somebody to assume the machine
is wedged.

>How-To-Repeat:

Change /etc/host.conf so that nis is first in the search order, add an 
nfs mount to /etc/fstab, reboot.

>Fix:

Start portmap before attempting any NFS mounts.

I suppose a shorter timeout when portmap cannot be contacted would
also be a good fix.





>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: mike 
State-Changed-When: Sat Jul 21 17:51:42 PDT 2001 
State-Changed-Why:  

Does this problem still occur in newer versions of FreeBSD, 
such as 4.3-RELEASE? 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=17540 

From: Mike Barcroft <mike@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: conf/17540: NIS host lookups cause NFS mounts to wedge at boot
Date: Wed, 25 Jul 2001 23:40:35 -0400

 Adding to Audit-Trail.
 
 ----- Forwarded message from Andrew Gallatin <gallatin@cs.duke.edu> -----
 
 X-UIDL: 36c6b831b2c06bf0936f0a934146d098
 Delivered-To: mike@freebsd.org
 From: Andrew Gallatin <gallatin@cs.duke.edu>
 Date: Tue, 24 Jul 2001 12:28:04 -0400 (EDT)
 To: mike@FreeBSD.org
 Cc: freebsd-bugs@FreeBSD.org
 Subject: Re: conf/17540: NIS host lookups cause NFS mounts to wedge at boot
 In-Reply-To: <200107220052.f6M0qIG35244@freefall.freebsd.org>
 X-Mailer: VM 6.75 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid
 
 
 mike@FreeBSD.org writes:
  > Synopsis: NIS host lookups cause NFS mounts to wedge at boot
  > 
  > State-Changed-From-To: open->feedback
  > State-Changed-By: mike
  > State-Changed-When: Sat Jul 21 17:51:42 PDT 2001
  > State-Changed-Why: 
  > 
  > Does this problem still occur in newer versions of FreeBSD,
  > such as 4.3-RELEASE?
  > 
  > http://www.FreeBSD.org/cgi/query-pr.cgi?pr=17540
 
 I believe so, yes.  And it turns out that rpc.umntall can also be a
 problem for similar reasons.
 
 FreeBSD 4.3-RELEASE #0: Tue Jul 10 11:44:28 EDT 2001
     gallatin@brahms.cs.duke.edu:/.amd_mnt/grapefruit/export/ari_scratch3/gallatin/4.3/sys/compile/ZCALPHA
 ST6600
 COMPAQ Professional Workstation XP1000, 500MHz
 8192 byte page size, 1 processor.
 <...>
 add net default: gateway 152.3.145.61
 Additional routing options: TCP keepalive=YES.
 routing daemons:.
 Mounting NFS file systems^Tload: 0.06  cmd: rpc.umntall 75 [select] 0.00u 0.00s 0% 1000k
 ^Tload: 0.04  cmd: rpc.umntall 75 [select] 0.00u 0.00s 0% 1000k
 ^Tload: 0.01  cmd: rpc.umntall 75 [select] 0.00u 0.01s 0% 1040k
 
 <or, after replacing rpc.umntall with /usr/bin/true>
 
 Mounting NFS file systems^Tload: 0.04  cmd: mount_nfs 75 [select] 0.00u 0.00s 0% 392k
 ^Tload: 0.04  cmd: mount_nfs 75 [select] 0.00u 0.00s 0% 392k
 ^Tload: 0.04  cmd: mount_nfs 75 [select] 0.00u 0.00s 0% 392k
 
 Cheers,
 
 Drew
 
 
 ----- End forwarded message -----
State-Changed-From-To: feedback->suspended 
State-Changed-By: mike 
State-Changed-When: Wed Jul 25 20:46:17 PDT 2001 
State-Changed-Why:  

This is indeed still a problem.  Andrew's solutions sounds good. 
It should also probably be documented somewhere, if it isn't. 
Awaiting committer. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=17540 
Responsible-Changed-From-To: freebsd-bugs->cel 
Responsible-Changed-By: cel 
Responsible-Changed-When: Sat May 13 00:06:24 UTC 2006 
Responsible-Changed-Why:  


http://www.freebsd.org/cgi/query-pr.cgi?pr=17540 
Responsible-Changed-From-To: cel->freebsd-bugs 
Responsible-Changed-By: cel 
Responsible-Changed-When: Mon Mar 12 15:26:15 UTC 2007 
Responsible-Changed-Why:  
Back to the public pool. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=17540 

[bugmeister note: possibly related to conf/22308]
>Unformatted:
