From dirkx@foem.leiden.webweaving.org  Tue Feb 11 18:38:30 2003
Return-Path: <dirkx@foem.leiden.webweaving.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id A54B537B401
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 11 Feb 2003 18:38:30 -0800 (PST)
Received: from foem.leiden.webweaving.org (fia224-72.dsl.hccnet.nl [62.251.72.224])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 47EC243F85
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 11 Feb 2003 18:38:29 -0800 (PST)
	(envelope-from dirkx@foem.leiden.webweaving.org)
Received: from foem.leiden.webweaving.org (localhost [127.0.0.1])
	by foem.leiden.webweaving.org (8.12.6/8.12.6) with ESMTP id h1BIOowb056155
	(version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO)
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 11 Feb 2003 19:24:50 +0100 (CET)
	(envelope-from dirkx@foem.leiden.webweaving.org)
Received: (from dirkx@localhost)
	by foem.leiden.webweaving.org (8.12.6/8.12.6/Submit) id h1BIOoAR056154;
	Tue, 11 Feb 2003 19:24:50 +0100 (CET)
Message-Id: <200302111824.h1BIOoAR056154@foem.leiden.webweaving.org>
Date: Tue, 11 Feb 2003 19:24:50 +0100 (CET)
From: Dirk-Willem van Gulik <dirkx@foem.leiden.webweaving.org>
Reply-To: Dirk-Willem van Gulik <dirkx@foem.leiden.webweaving.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: /var/db/mounttab error on diskless boot
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         48195
>Category:       conf
>Synopsis:       /var/db/mounttab error on diskless boot
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 11 18:40:09 PST 2003
>Closed-Date:    
>Last-Modified:  Tue Feb 15 01:40:09 GMT 2005
>Originator:     Dirk-Willem van Gulik
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD foem.leiden.webweaving.org 5.0-CURRENT FreeBSD 5.0-CURRENT #1: Tue Nov 26 13:16:54 CET 2002 dirkx@foem.leiden.webweaving.org:/usr/obj/usr/src/sys/FOEM i386

Diskless PXE boot.

>Description:

Booting diskless, using ng_rc yields the error below:

	...
	Starting file system checks:
	nfs: can't update /var/db/mounttab for 10.11.0.2:/usr/swl/release
	+++ mount_md of /var
	+++ populate /var usin

as /var/ does not yet exist.

>How-To-Repeat:
	
	Normal feature of current boot procedure.

>Fix:

	Possibly a special flag to nfsiod to NOT write
	such or write such to another location which
	may exist.

	Carefull shuffling of the rc order.


>Release-Note:
>Audit-Trail:

From: Harry Coin <harrycoin@qconline.com>
To: freebsd-gnats-submit@FreeBSD.org,
	dirkx@foem.leiden.webweaving.org
Cc:  
Subject: Re: conf/48195: /var/db/mounttab error on diskless boot
Date: Mon, 14 Feb 2005 17:30:22 -0600

 I have the same problem on 5.3
 
 I intend a remote (not local memory disk) /etc and remote /var, but the 
 initdiskless routine fails the mount_nfs in the 
 ..serverdiskless-root:/conf/{ip address}/etc/diskless_remount because 
 mount_nfs wants to update /var/db/mounttab, which at that point is 
 read-only.  Hence it fails.
 
 
 

From: Brooks Davis <brooks@one-eyed-alien.net>
To: Harry Coin <harrycoin@qconline.com>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: conf/48195: /var/db/mounttab error on diskless boot
Date: Mon, 14 Feb 2005 16:08:58 -0800

 --7JfCtLOvnd9MIVvH
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 This is a warning, not an error.  If you're unable to boot, you are
 having a different problem.
 
 The real bug is that there is no way to tell mount_* commands to not
 write to /var/db/mounttab when it is pointless.
 
 -- Brooks
 
 --7JfCtLOvnd9MIVvH
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.2.1 (GNU/Linux)
 
 iD8DBQFCET2aXY6L6fI4GtQRAg0zAKDF7b+P4fum55DXPHA5kYfqnQRJFgCgiAxX
 /C1mf+0OP2olH/MKbpVVS20=
 =fSIX
 -----END PGP SIGNATURE-----
 
 --7JfCtLOvnd9MIVvH--

From: Harry Coin <harrycoin@qconline.com>
To: Brooks Davis <brooks@one-eyed-alien.net>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: conf/48195: /var/db/mounttab error on diskless boot
Date: Mon, 14 Feb 2005 19:37:26 -0600

 Thanks very much for this!
 
 I'm able to PXE boot a diskless kernel, but I just keep getting 'Amnesiac' 
 and various gripes about unable to update (big list) due to RO root FS.
 
 I will ignore it then and continue to debug my setup.  I'm having problems 
 getting the initdiskless diskless_remount to nfs mount a remote etc 
 directory based on the ip address.  No need to reply, I'll post again if I 
 can't figure it out myself and have a specific error to report.
 
 One helpful item:  Some folks were complaining about getting a 
 'setrootbyname failed' error on a diskless machine.  I find that if I just 
 don't mention a / directory in my diskless machine's fstab, that error 
 doesn't appear.
 
 I wish there was some means to discern whether a bootup message is a 
 warning and the command in a script completed to some extent with a notice 
 of some failed secondary op (like updating /var/db/mounttab) and yet 
 returned an exit code of 0) or whether the message is an error and didn't 
 complete.
 
 My objective is not to have any memory disks on the diskless machines, 
 memory is at a premium while there is plenty of remote disk space (compute 
 bound diskless application using lotsa used computers CPU / memory only 
 doing a parallel processing thing).
 
 I'm somewhat new to Freebsd so sorry if this seems 'newbie' ish.
 
 Thanks for all the work on Freebsd, I hope to contribute once I get a 
 little better at all this.
 
 Harry
 
 
>Unformatted:
