From john.marshall@riverwillow.com.au  Tue Oct 28 23:24:50 2008
Return-Path: <john.marshall@riverwillow.com.au>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 6C5371065675
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 28 Oct 2008 23:24:50 +0000 (UTC)
	(envelope-from john.marshall@riverwillow.com.au)
Received: from mail1.riverwillow.net.au (ns1.riverwillow.net.au [203.58.93.40])
	by mx1.freebsd.org (Postfix) with ESMTP id CB04D8FC1B
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 28 Oct 2008 23:24:49 +0000 (UTC)
	(envelope-from john.marshall@riverwillow.com.au)
Received: from rwpc08.mby-g.riverwillow.net.au (rwpc08.mby-g.riverwillow.net.au [192.168.25.71])
	(authenticated bits=0)
	by mail1.riverwillow.net.au (8.14.3/8.14.3) with ESMTP id m9SN9duT072946
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK)
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 29 Oct 2008 10:09:39 +1100 (AEDT)
Received: from rwpc08.mby-g.riverwillow.net.au (localhost [127.0.0.1])
	by rwpc08.mby-g.riverwillow.net.au (8.14.3/8.14.3/Submit) with ESMTP id m9SN9dMw002241
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 29 Oct 2008 10:09:39 +1100 (AEDT)
	(envelope-from john.marshall@riverwillow.com.au)
Received: (from john@localhost)
	by rwpc08.mby-g.riverwillow.net.au (8.14.3/8.14.3/Submit) id m9SN9dsK002240;
	Wed, 29 Oct 2008 10:09:39 +1100 (AEDT)
	(envelope-from john)
Message-Id: <200810282309.m9SN9dsK002240@rwpc08.mby-g.riverwillow.net.au>
Date: Wed, 29 Oct 2008 10:09:39 +1100 (AEDT)
From: John Marshall <john.marshall@riverwillow.com.au>
Reply-To: John Marshall <john.marshall@riverwillow.com.au>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: 6.4-RC1 Boot Fails if NFS Hostname cannot be resolved (mount_nfs)
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         128448
>Category:       kern
>Synopsis:       [nfs] 6.4-RC1 Boot Fails if NFS Hostname cannot be resolved (mount_nfs)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-net
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 28 23:30:01 UTC 2008
>Closed-Date:    
>Last-Modified:  Wed Oct 29 16:03:41 UTC 2008
>Originator:     John Marshall
>Release:        FreeBSD 6.4-RC1 i386
>Organization:
Riverwillow Pty Ltd
>Environment:
System: FreeBSD rwpc08 6.4-RC1 FreeBSD 6.4-RC1 #0: Wed Oct 22 08:52:56 AEDT 2008 root@rwpc08:/build/obj/usr/src/sys/RWPC08 i386
>Description:
In /etc/fstab I have...
mynfssrv:/kits  /kits  nfs  late,rw,-T,-b

Booting with no network available, I see:

 ---
 Mounting late file systems: mynfssrv: hostname nor servname provided, or not known
 Mounting /etc/fstab filesystem failed, startup aborted
 ERROR: ABORTING BOOT (sending SIGTERM to parent)!
 Oct 22 11:46:56 rwpc08 init: /bin/sh on /etc/rc terminated abnormally, going to single user mode
 Oct 22 11:46:56 rwpc08 init: can't get /dev/console for controlling terminal: Operation not permitted
 (only recourse at this stage is to hit the power button and boot single user)
 ---

If I comment out the nfs mount entry in /etc/fstab the system boots
fine.

If I replace the NFS server hostname with an IP address, I see the
familiar behaviour of the NFS mount giving up and backgrounding - and
the boot proceeding happily...
192.0.2.1:/kits  /kits  nfs  late,rw,-T,-b

 ---
 Mounting late file systems:[tcp] 192.0.2.1:/kits: RPCPROG_NFS: RPC: Port mapper failure - RPC: unable t
 mount_nfs: Cannot immediately mount 192.0.2.1:/kits, backgrounding
 ---
>How-To-Repeat:
 - Include an NFS mount in /etc/fstab (using hostname)
 - Unplug the network
 - Boot (at least, as far as it will go)
>Fix:
Workaround is to replace NFS server hostname with IP address in
/etc/fstab
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-net 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Wed Oct 29 16:01:47 UTC 2008 
Responsible-Changed-Why:  
This is really more of an NFS problem I think, but perhaps the folks 
on -net can weigh in here. 

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