From owner-freebsd-current@FreeBSD.ORG Thu Apr 5 06:34:02 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 23DE116A401 for ; Thu, 5 Apr 2007 06:34:02 +0000 (UTC) (envelope-from vlado@botka.homeunix.org) Received: from smtp-out4.iol.cz (smtp-out4.iol.cz [194.228.2.92]) by mx1.freebsd.org (Postfix) with ESMTP id 72E8513C45B for ; Thu, 5 Apr 2007 06:34:01 +0000 (UTC) (envelope-from vlado@botka.homeunix.org) Received: from smtp-out4.iol.cz (unknown [192.168.30.31]) by smtp-out4.iol.cz (Postfix) with ESMTP id D8D731647F3 for ; Thu, 5 Apr 2007 06:02:17 +0000 (UTC) Received: from ace.botka.homeunix.org (3.77.broadband2.iol.cz [83.208.77.3]) by smtp-out4.iol.cz (Postfix) with ESMTP id 711C247E32 for ; Thu, 5 Apr 2007 08:02:17 +0200 (CEST) Received: by ace.botka.homeunix.org (Postfix, from userid 1001) id A2C44166; Thu, 5 Apr 2007 08:02:16 +0200 (CEST) Received: from srv.g1.netng.org (ac.botka.homeunix.org [192.168.1.5]) by ace.botka.homeunix.org (Postfix) with ESMTP id 7ECA526 for ; Thu, 5 Apr 2007 08:02:13 +0200 (CEST) Received: from srv (srv [10.1.0.10]) by srv.g1.netng.org (Postfix) with ESMTP id 89F1ABCDE for ; Thu, 5 Apr 2007 08:02:12 +0200 (CEST) Date: Thu, 5 Apr 2007 08:02:12 +0200 From: Vladimir Botka To: freebsd-current@freebsd.org Message-ID: <20070405080212.2d7d1c8d@srv> In-Reply-To: <46144FC6.3050801@metricsystems.com> References: <46144FC6.3050801@metricsystems.com> X-Mailer: Claws Mail 2.7.2 (GTK+ 2.10.7; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: Strange NFS root booting behavior. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Apr 2007 06:34:02 -0000 > I've set up a dhcp server to support two (or more) clients, which > mount their root on > an nfs shared volume. > > For one client, the booting process has one symptom: > > after the initial PXEBOOT and getting the parameters from the dhcp > server, the > boot process hangs at: > > pxe_boot: gateway ip: ... > > And after a few minutes eventuall loads the loader.conf > > and after a few more minutes, loads the kernel, which seems pretty > speedy given the twirlers. > > On the other system, oddly, the boot process seems to whip through the > above boot section with no hesitation. However, after the kernel is > loaded, and the init starts up, with in a ver few initial commands > there is a diagnostic to the effect: > > Starting file system checks: > > Then ... > > mount /: Bad file descriptor > Mounting root filesystem rw failed, startup aborted. > > Since I'm booting off of the same hierarchy, I did create a ramdisk > and initialized > a file system to have '/var/run' created local to the client systems. > > Are there other things that need to be separated for each client? And > would failing to do set these up, give the above behavior, in > particular the failure to boot > and run through the normal rc scripts. > > Thanks > John Clark. > > > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to > "freebsd-current-unsubscribe@freebsd.org" Hello, try the script /usr/share/examples/diskless/clone_root to create copy of the root. The procedure in http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-diskless.html works for me. Just an idea but did you compile the diskless kernel with "options BOOTP_NFSROOT" ? Cheers, -vlado