From owner-freebsd-fs@FreeBSD.ORG Thu Jul 29 23:20:32 2010 Return-Path: Delivered-To: fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0A8F71065670 for ; Thu, 29 Jul 2010 23:20:32 +0000 (UTC) (envelope-from dnewman@networktest.com) Received: from mail3.networktest.com (mail3.networktest.com [69.55.234.60]) by mx1.freebsd.org (Postfix) with ESMTP id C234F8FC0C for ; Thu, 29 Jul 2010 23:20:31 +0000 (UTC) Received: from localhost (localhost [69.55.234.60]) by mail3.networktest.com (Postfix) with ESMTP id DEF74958E4; Thu, 29 Jul 2010 16:20:30 -0700 (PDT) Received: from mail3.networktest.com ([69.55.234.60]) by localhost (mail3.networktest.com [69.55.234.60]) (amavisd-maia, port 10024) with ESMTP id 88564-02; Thu, 29 Jul 2010 16:20:30 -0700 (PDT) Received: from dhcp207.eng.networktest.com (ns.networktest.com [216.240.60.130]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: dnewman@networktest.com) by mail3.networktest.com (Postfix) with ESMTPSA id 5D3AC958B5; Thu, 29 Jul 2010 16:20:27 -0700 (PDT) Message-ID: <4C520CBA.5080504@networktest.com> Date: Thu, 29 Jul 2010 16:20:26 -0700 From: David Newman User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.11) Gecko/20100711 Lightning/1.0b1 Thunderbird/3.0.6 MIME-Version: 1.0 To: mm@FreeBSD.org References: <4C51ECAA.2070707@networktest.com> <4C51FE41.8030906@FreeBSD.org> In-Reply-To: <4C51FE41.8030906@FreeBSD.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: fs@freebsd.org Subject: Re: fixing a busted ZFS upgrade X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jul 2010 23:20:32 -0000 Thanks very much -- updating the boot blocks on all four drives using your ISO restored this system so it can boot. Also, where is the UPDATING file for 8.1-RELEASE? The only file with that name I know is in /usr/ports, and that one says nothing about ZFS. I sorta/kinda knew that ZFS wasn't officially supported, and would be happy to contribute documentation for the 8.0->8.1 upgrade procedure so that others don't make the same mistake. Thanks again. dn On 7/29/10 3:18 PM, Martin Matuska wrote: > Booting from GPT ZFS was not officially supported before 8.1-RELEASE > > Here is a upgrade guide for users who want to run "zpool upgrade" on > their ZFS boot pools: > > Excerpt from 9-CURRENT UPDATING file: > > BEGIN EXCERPT > > ZFS notes > --------- > When upgrading the boot ZFS pool to a new version, always follow > these two steps: > > 1.) recompile and reinstall the ZFS boot loader and boot block > (this is part of "make buildworld" and "make installworld") > > 2.) update the ZFS boot block on your boot drive > > The following example updates the ZFS boot block on the first > partition (freebsd-boot) of a GPT partitioned drive ad0: > "gpart bootcode -p /boot/gptzfsboot -i 1 ad0" > > Non-boot pools do not need these updates. > > END EXCERPT > > In case the boot record is messed even more, you need to reinstall it > completely: > "gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ad0" > > For recovering a system that does not boot anymore, you can use mfsBSD > ISO's: > http://mfsbsd.vx.sk > > You can boot from the iso and repair the boot record. > I recommend you check your gpart partitions with "gpart show" and verify > discovered pools with "zpool import" > (without any flags or arguments) first. > > mm > > Dňa 29. 7. 2010 23:03, David Newman wrote / napísal(a): >> Attempting to upgrade an 8.0-RELEASE to 8.1-RELEASE failed on a system >> running a bootable ZFS partition. >> >> The system boots to the loader prompt and complains there's no bootable >> kernel. Running 'lsmod' shows there are four ZFS disks present. >> >> Thanks in advance for clues on fixing this, and also on the right way to >> upgrade FreeBSD systems with bootable ZFS partitions. >> >> Steps to reproduce: >> >> 1. Build 8.0-RELEASE system following the freebsd.org wiki: >> >> http://wiki.freebsd.org/RootOnZFS/GPTZFSBoot/RAIDZ1 >> >> In this case the system uses raidz1 across four SATA drives. >> >> 2. Upgrade to 8.1-RELEASE using the 'FreeBSD Update' directions: >> >> http://www.freebsd.org/releases/8.1R/announce.html >> >> 3. After first reboot, system boots to the loader prompt. >> >> dn >> >> _______________________________________________ >> freebsd-fs@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-fs >> To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org"