From owner-freebsd-current@FreeBSD.ORG Sat Jul 14 14:52:51 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 0E47C16A51A; Sat, 14 Jul 2007 14:52:51 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.freebsd.org (Postfix) with ESMTP id 8D89813C48D; Sat, 14 Jul 2007 14:52:27 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.1/8.13.8) id l6EEqJnR002629; Sat, 14 Jul 2007 09:52:19 -0500 (CDT) (envelope-from dan) Date: Sat, 14 Jul 2007 09:52:19 -0500 From: Dan Nelson To: Thomas Sparrevohn Message-ID: <20070714145219.GH44766@dan.emsphone.com> References: <4697F753.5060304@vwsoft.com> <20070713221854.GC44766@dan.emsphone.com> <4698005B.3010100@vwsoft.com> <200707141107.48714.Thomas.Sparrevohn@btinternet.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200707141107.48714.Thomas.Sparrevohn@btinternet.com> X-OS: FreeBSD 7.0-CURRENT User-Agent: Mutt/1.5.16 (2007-06-09) Cc: Volker , freebsd-current@freebsd.org, current@freebsd.org Subject: Re: zfs refuses to load pool on boot, zpool denies import 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: Sat, 14 Jul 2007 14:52:51 -0000 In the last episode (Jul 14), Thomas Sparrevohn said: > On Friday 13 July 2007 23:44:43 Volker wrote: > > damned... that's it. Thanks a lot. I was wondering about that > > because I've already seen a system uuid in kenv (only checked > > smbios.system.uuid) while in single user mode so I did not see the > > need to manually fire `/etc/rc.d/hostid start'. > > > > This may be taken into the documentation - I guess more will step into > > this. > > > > Or what about checking the hostid before doing any `zpool create | > > import' and refuse operation (with a useful hint to the operator) if > > hostid is 0x0? That would be useful.. > I got burned by that one as well - I am vondering if ZFS should check > system.uuid as a fall back - It does not seem correct that we have to > run specific startup shell scripts in order to get a filesystem to > work Might work in some cases, but none of my systems have the system.uuid kenv. I'm not even sure how my zfs root volume gets mounted; the kernel has to mount it to even find init, so it does blindly mount zpools in some cases. Maybe the kernl mount logic assumes if it can only see one zpool, it's got to be the right one? :) -- Dan Nelson dnelson@allantgroup.com