From owner-freebsd-current@FreeBSD.ORG Fri Jul 13 22:44:57 2007 Return-Path: X-Original-To: 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 1A8E016A406 for ; Fri, 13 Jul 2007 22:44:57 +0000 (UTC) (envelope-from volker@vwsoft.com) Received: from frontmail.ipactive.de (frontmail.maindns.de [85.214.95.103]) by mx1.freebsd.org (Postfix) with ESMTP id D064913C467 for ; Fri, 13 Jul 2007 22:44:56 +0000 (UTC) (envelope-from volker@vwsoft.com) Received: from mail.vtec.ipme.de (F72b3.f.ppp-pool.de [195.4.114.179]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by frontmail.ipactive.de (Postfix) with ESMTP id E135712883F for ; Sat, 14 Jul 2007 00:44:49 +0200 (CEST) Received: from cesar.sz.vwsoft.com (cesar.sz.vwsoft.com [192.168.16.3]) by mail.vtec.ipme.de (Postfix) with ESMTP id D2B2E3F43D; Sat, 14 Jul 2007 00:44:22 +0200 (CEST) Message-ID: <4698005B.3010100@vwsoft.com> Date: Sat, 14 Jul 2007 00:44:43 +0200 From: Volker User-Agent: Thunderbird 2.0.0.4 (X11/20070615) MIME-Version: 1.0 To: Dan Nelson References: <4697F753.5060304@vwsoft.com> <20070713221854.GC44766@dan.emsphone.com> In-Reply-To: <20070713221854.GC44766@dan.emsphone.com> X-Enigmail-Version: 0.95.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-VWSoft-MailScanner: Found to be clean X-MailScanner-From: volker@vwsoft.com X-ipactive-MailScanner-Information: Please contact the ISP for more information X-ipactive-MailScanner: Found to be clean X-ipactive-MailScanner-From: volker@vwsoft.com Cc: 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: Fri, 13 Jul 2007 22:44:57 -0000 On 07/14/07 00:18, Dan Nelson wrote: > In the last episode (Jul 14), Volker said: >> I'm constantly getting this error on bootup: >> >> ZFS: WARNING: pool 'mypool' could not be loaded as it was last >> accessed by another system (host: hostid: 0x0). See: >> http://www.sun.com/msg/ZFS-8000-EY >> >> As I've put /usr into zfs, I need to reboot into single user and >> issue a `zpool import -f mypool' (w/o -forcing, zpool denies to >> import the pool). It's strange as this pool has been created on that >> machine (probably while having booted from a different disk - I don't >> actually remember). >> >> I already imported, exported and re-imported but it didn't help. >> >> Any ideas? >> >> %kenv smbios.system.uuid >> ccf8597d-74fe-d511-a413-782ede476378 > > That may be what's causing your problem. If you boot into single-user, > make sure to run "/etc/rc.d/hostid start", which sets kern.hostuuid > from /etc/hostid or smbios.system.uuid if /etc/hostid doesn't exist. > Dan, 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? Volker