Re: zfs refuses to load pool on boot, zpool denies import

From: Volker <volker_at_vwsoft.com>
Date: Sat, 14 Jul 2007 00:44:43 +0200
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
Received on Fri Jul 13 2007 - 20:44:57 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:14 UTC