On January 30, 2009 2:26:36 PM -0800 Marcus Reid <mar...@blazingdot.com> 
wrote:
> I am investigating using ZFS as a possible replacement for SVM for
> root disk mirroring.
...
> Great.  However, if I place the disks into a different
> machine and try to boot, I get:
>
>     Executing last command: boot
>     Boot device: disk  File and args:
>     SunOS Release 5.10 Version Generic_137137-09 64-bit
>     Copyright 1983-2008 Sun Microsystems, Inc.  All rights reserved.
>     Use is subject to license terms.
>     WARNING: pool 'rpool' could not be loaded as it was last accessed by
> another system (host:  hostid: 0x80c29c4c)
...
> Is there a way to work through this?

I am doing the exact same thing.  I just updated to U6 (138889-03) and
am using zfs root mirror to replace SVM.  After learning the joys of
zfs root imagine my horror upon reading your message.

I just tested this, and luckily for me I am running x86, where the hostid
is software generated.  So it is identical when I boot from different
hardware, and zfs does not complain.

Here's my first shot at workarounds.

1) clone the hostid.
2) keep the backup system in sync with the primary system as far as
installed software and configuration.  zones may make this easier for
you.  i used to keep zones in sync on different machines for failover
purposed, it's not too awful.

neither of those might be useful if you have one backup system for
multiple primary systems.

But what is probably best,

3) when it comes time to make your backup system act as the failed system,
first boot it from the network or from cdrom, or possibly you could have
it already running, ready to go.  forcibly mount the root pool (just
as any other pool) which will record the hostid, then reboot from that
drive.

A kernel option to forcibly import the root pool would make things a
lot easier.  Looking at kernel(1M) and boot(1M) there doesn't appear
to be one.  Maybe OpenSolaris has it?

-frank
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to