Date: Wed, 29 Oct 2008 10:09:39 +1100 (AEDT) From: John Marshall <john.marshall@riverwillow.com.au> To: FreeBSD-gnats-submit@FreeBSD.org Subject: kern/128448: 6.4-RC1 Boot Fails if NFS Hostname cannot be resolved (mount_nfs) Message-ID: <200810282309.m9SN9dsK002240@rwpc08.mby-g.riverwillow.net.au> Resent-Message-ID: <200810282330.m9SNU2im011480@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 128448 >Category: kern >Synopsis: 6.4-RC1 Boot Fails if NFS Hostname cannot be resolved (mount_nfs) >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >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: >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: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200810282309.m9SN9dsK002240>