From owner-freebsd-current@FreeBSD.ORG Thu Jul 23 04:27:34 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 466771065674 for ; Thu, 23 Jul 2009 04:27:34 +0000 (UTC) (envelope-from hartzell@alerce.com) Received: from merlin.alerce.com (merlin.alerce.com [64.62.142.94]) by mx1.freebsd.org (Postfix) with ESMTP id 2F9A18FC1B for ; Thu, 23 Jul 2009 04:27:34 +0000 (UTC) (envelope-from hartzell@alerce.com) Received: from merlin.alerce.com (localhost [127.0.0.1]) by merlin.alerce.com (Postfix) with ESMTP id 923B333C6C; Wed, 22 Jul 2009 21:27:33 -0700 (PDT) Received: from merlin.alerce.com (localhost [127.0.0.1]) by merlin.alerce.com (Postfix) with ESMTP id 336F233C64; Wed, 22 Jul 2009 21:27:33 -0700 (PDT) From: George Hartzell MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Message-ID: <19047.59060.727642.306526@already.local> Date: Wed, 22 Jul 2009 21:27:32 -0700 To: Scot Hetzel In-Reply-To: <790a9fff0907222033t6393b725n59a9f7d8a38f32c9@mail.gmail.com> References: <19047.52443.164412.363239@already.local> <790a9fff0907222033t6393b725n59a9f7d8a38f32c9@mail.gmail.com> X-Mailer: VM 8.0.12 under 22.3.1 (i386-apple-darwin9.6.0) X-Virus-Scanned: ClamAV using ClamSMTP X-Mailman-Approved-At: Thu, 23 Jul 2009 12:34:59 +0000 Cc: freebsd-current@freebsd.org, hartzell@alerce.com Subject: Re: gptzfsboot doesn't like change (failure after swapping drives) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: hartzell@alerce.com List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Jul 2009 04:27:34 -0000 Scot Hetzel writes: > On Wed, Jul 22, 2009 at 9:37 PM, George Hartzell wrote: > > > > I've been playing around with building an 8.0BETA2 system with > > everything on a single zfs filesystem (I'll get fancier later) on = a > > zpool that is a 4 disk raidz. =A0I'm using GPT partitions and glab= els so > > that I can move the drives around w/out drama. > > > > Things work well, but if I swap a pair of drives then try to boot = I > > get the message that other folks have reported: > > > > =A0ZFS: i/o error - all block copies unavailable. > > =A0ZFS: can't read MOS > > =A0ZFS: unexpected object set type lld > > =A0ZFS: unexpected object set type lld > > > > Then a couple of boot: prompts. > > > > If I boot off of the 8.0BETA2 media I can import the pool, even wi= th > > the drives in different slots. > > > > When I put the drives back into their original slots (verified by > > booting the USB stick and checking with glabel status) I still can= 't > > boot off of them, which surprised me a bit. > > > > Can anyone suggest something that I might be able to do to get a > > system in this state to boot? =A0I've tried importing and exportin= g and > > importing the pool several times. > > > I haven't tested this, but try the following: >=20 > 1. boot the 8.0BETA install/fixit media > 2. goto the fixit environment > 3. Create /boot/zfs directory > 4. load the kernel modules opensolaris.ko and zfs.ko > 5. import the pool, and mount the root filesystem on /mnt > 6. Copy /boot/zfs/zpool.cache to /mnt/boot/zfs > 7. Reboot the system I'd tried that, just did it again to be sure. Didn't help. I don't think that the {gpt,}zfsboot code uses that file, I think that's a kernel thing. g.