From owner-freebsd-current@FreeBSD.ORG Thu Jul 23 03:33:16 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 38C7A106568C for ; Thu, 23 Jul 2009 03:33:16 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.27]) by mx1.freebsd.org (Postfix) with ESMTP id E4E4B8FC0C for ; Thu, 23 Jul 2009 03:33:15 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: by qw-out-2122.google.com with SMTP id 3so351687qwe.7 for ; Wed, 22 Jul 2009 20:33:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=nrwk819ZqYxWFKpV6yic9uiEEPueMiUqaXSG2XQRypQ=; b=NasmoQUPy8ccR02cjJ6PZncB/Vh10xKjuUAV1USUsFo9d7N7LZ+y32/NVnVlc19CVu wf6+C+wMuj3VuaBlL9+0df8Ma2Omhiso+N2aliKP5ASeSYOHrAGKJPpqN7SpujVzHUJI X6Jhok2/0EGm9BFM+KZBB9S10+j2R0hkuMxtQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=kfHSxmhtPKl1fGmrujZ2JpWphULfPAI/vx0JDtUdHLZ7VLnJ8J3m2UduUq08RDrciJ nPygGpWX5bOrJB0XSgYEaoDObP+raSHD8+7IlcZt/bE2yOpodPpgAQhx1Zmt7rkGFnVy GsOCg0wfnNW5IeNZM0ycjsLmsuQcLMS9POC9k= MIME-Version: 1.0 Received: by 10.220.83.146 with SMTP id f18mr1450539vcl.20.1248319994961; Wed, 22 Jul 2009 20:33:14 -0700 (PDT) In-Reply-To: <19047.52443.164412.363239@already.local> References: <19047.52443.164412.363239@already.local> Date: Wed, 22 Jul 2009 22:33:14 -0500 Message-ID: <790a9fff0907222033t6393b725n59a9f7d8a38f32c9@mail.gmail.com> From: Scot Hetzel To: hartzell@alerce.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-current@freebsd.org 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 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 03:33:16 -0000 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 glabels 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 with > 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 exporting and > importing the pool several times. > I haven't tested this, but try the following: 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 Scot