From nobody@FreeBSD.org  Thu Jul 30 17:01:43 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id E54C31065673
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 30 Jul 2009 17:01:43 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id D38B08FC14
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 30 Jul 2009 17:01:43 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n6UH1hoD022451
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 30 Jul 2009 17:01:43 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n6UH1hZU022450;
	Thu, 30 Jul 2009 17:01:43 GMT
	(envelope-from nobody)
Message-Id: <200907301701.n6UH1hZU022450@www.freebsd.org>
Date: Thu, 30 Jul 2009 17:01:43 GMT
From: Alex Keda <admin@lissyara.su>
To: freebsd-gnats-submit@FreeBSD.org
Subject: 'WARNING: could not store hostuuid in /tmp/hostid' when root filesystems mount read-only
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         137272
>Category:       misc
>Synopsis:       'WARNING: could not store hostuuid in /tmp/hostid' when root filesystems mount read-only
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    vwe
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 30 17:10:01 UTC 2009
>Closed-Date:    Sat Aug 21 20:23:40 UTC 2010
>Last-Modified:  Sat Aug 21 20:23:40 UTC 2010
>Originator:     Alex Keda
>Release:        7.2
>Organization:
USSR
>Environment:
FreeBSD router.local 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Wed May 13 22:39:57 MSD 2009     lissyara@router.local:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
if root filesystem mount read-only (nfs, or etc), when machine boot I see
eval: cannot create /tmp/hostid: Read-only file system
/etc/rc: WARNING: could not store hostuuid in /tmp/hostid.
Setting hostuuid: 82559667-7d48-11de-a424-0050228da6b7.
Setting hostid: 0xbee50505.
Mounting local file systems:
========
in /etc/rc.conf file I have:
router# grep tmp /etc/rc.conf
hostid_file="/tmp/hostid"
# tmp on memory
tmpmfs="YES"
tmpsize="1m"
router#    

=======
I think, it attempt store hostid before mounting all filesystems

router# rcorder /etc/rc.d/* | grep -E "host|mount"
/etc/rc.d/hostid
/etc/rc.d/mountcritlocal
/etc/rc.d/hostname
/etc/rc.d/mountcritremote
/etc/rc.d/mountd
/etc/rc.d/mountlate
/etc/rc.d/hostapd
router#  
>How-To-Repeat:
boot with
hostid_file="/path/to/not/root/filesystems"
settings into rc.conf
>Fix:
change boot sequence?

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: vwe 
State-Changed-When: Sat Aug 21 20:13:51 UTC 2010 
State-Changed-Why:  
Alex, 
you're just seeing a warning. Nothing bad happens if /tmp/hostid can't be written. 
The hostid is also stored in the sysctl MIB. If have no idea, who's reading 
/tmp/hostid. The rcorder can't be changed as some filesystem tools need it, 
so it must be called early. 


Responsible-Changed-From-To: freebsd-bugs->vwe 
Responsible-Changed-By: vwe 
Responsible-Changed-When: Sat Aug 21 20:13:51 UTC 2010 
Responsible-Changed-Why:  
track 

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