From owner-freebsd-stable@FreeBSD.ORG Thu Jul 25 18:45:11 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id A0D5E995 for ; Thu, 25 Jul 2013 18:45:11 +0000 (UTC) (envelope-from lukasz@wasikowski.net) Received: from mail.wasikowski.net (mail.wasikowski.net [IPv6:2001:6a0:1cb::b]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 5D77C295B for ; Thu, 25 Jul 2013 18:45:11 +0000 (UTC) Received: from mail.wasikowski.net (mail.wasikowski.net [IPv6:2001:6a0:1cb::b]) by mail.wasikowski.net (Postfix) with ESMTP id 7D8AD2281; Thu, 25 Jul 2013 20:45:08 +0200 (CEST) X-Virus-Scanned: amavisd-new at wasikowski.net Received: from mail.wasikowski.net ([91.204.91.44]) by mail.wasikowski.net (scan.wasikowski.net [91.204.91.44]) (amavisd-new, port 10026) with ESMTP id NFpgZE0hxRtB; Thu, 25 Jul 2013 20:45:08 +0200 (CEST) Received: from [192.168.168.1] (89-71-136-148.dynamic.chello.pl [89.71.136.148]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.wasikowski.net (Postfix) with ESMTPSA id 0DAB5227E; Thu, 25 Jul 2013 20:45:07 +0200 (CEST) Message-ID: <51F17233.4080903@wasikowski.net> Date: Thu, 25 Jul 2013 20:45:07 +0200 From: =?UTF-8?B?xYF1a2FzeiBXxIVzaWtvd3NraQ==?= User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 MIME-Version: 1.0 To: =?UTF-8?B?VHJvbmQgRW5kcmVzdMO4bA==?= Subject: Re: ZFS: can't read MOS of pool References: <51ED5B69.8050200@wasikowski.net> In-Reply-To: X-Enigmail-Version: 1.5.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: FreeBSD stable X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Jul 2013 18:45:11 -0000 W dniu 2013-07-25 18:40, Trond Endrestøl pisze: >> Any hints how to go from here? > > I'm only subscribed to freebsd-stable@, but as far as I can tell, no > one from freebsd-fs@ nor freebsd-stable@ has yet replied. I'm only > replying to freebsd-stable@. > > First, just some quick questions: > > Have you by chance upgraded the pool format without upgrading the boot > blocks? Or was the pool already at 5000? > > You didn't mention if you have made any attempt at updating the boot > blocks after playing with ezjail-admin. > > Perhaps you should consider updating the boot blocks once more: > > 1. Boot from the live CD. > > 2. Import the pool read-only without mounting any fs: > > zpool import -f -N -o readonly=on klawisz > > 3. Mount the root fs read-only: > > mount -r -t zfs klawisz/ROOTFS /tmp/zroot > > 4. Update the boot blocks from the files stored in the root fs: > > gpart bootcode -b /tmp/zroot/boot/pmbr -p /tmp/zroot/boot/gptzfsboot -i 1 ada0 > > 5. Unmount the root fs: > > umount /tmp/zroot > > 6. Reboot the system, do NOT export the pool. > > Hopefully, the updated gptzfsboot stored in ada0p1 will be able to > read the MOS. > > That's all I can think of at the moment. > > Best of luck. Thank you for your reply. The pool was created with version 5000. I have updated the boot blocks before (but with exporting pool after). I don't think that ezjail-admin has anything to do with booting. I did as you suggested and it didn't help, still MOS can't be read. I'm pretty sure I can reproduce this problem. I will try to do detailed guide and post it here. -- best regards, Lukasz Wasikowski