From owner-freebsd-questions@FreeBSD.ORG Mon Aug 2 19:00:06 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9F9811065675 for ; Mon, 2 Aug 2010 19:00:06 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id 0C8388FC26 for ; Mon, 2 Aug 2010 19:00:05 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Og0F1-0000LI-Bl for freebsd-questions@freebsd.org; Mon, 02 Aug 2010 21:00:03 +0200 Received: from 193.33.173.33 ([193.33.173.33]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 02 Aug 2010 21:00:03 +0200 Received: from c.kworr by 193.33.173.33 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 02 Aug 2010 21:00:03 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Volodymyr Kostyrko Date: Mon, 02 Aug 2010 21:58:06 +0300 Lines: 22 Message-ID: <4C57153E.6090404@gmail.com> References: <862183450.117591280774852071.JavaMail.root@mail-01.cse.ucsc.edu> <1307640753.117641280774973685.JavaMail.root@mail-01.cse.ucsc.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 193.33.173.33 User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; uk-UA; rv:1.9.1.11) Gecko/20100722 Thunderbird/3.0.6 In-Reply-To: <1307640753.117641280774973685.JavaMail.root@mail-01.cse.ucsc.edu> Subject: Re: Upgrading Boot Loader X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Aug 2010 19:00:06 -0000 02.08.2010 21:49, Tim Gustafson написав(ла): > Hi, > > I want to update my boot loader based on upgrading to FreeBSD 8.1. I originally installed FreeBSD 8.0 using the "zfsinstall" utility available at http://mfsbsd.vx.sk/ and so my "tank" zpool is currently using version 13, whereas my other non-boot zpool is using version 14. After upgrading (via make buildworld buildkernel installkernel installworld) to FreeBSD 8.1, running "zpool status" tells me: > > The pool is formatted using an older on-disk format. The pool can still be used, but some features are unavailable. Upgrade the pool using 'zpool upgrade'. Once this is done, the pool will no longer be accessible on older software versions. > > I vaguely remember reading that the zfsboot and/or zfsloader need to be updated properly before you upgrade your root zfs pool or the loader won't be able to boot from that partition. > > So, my question is: how do I update the zfsboot and/or zfsloader to the new version? I've read that bsdlabel can install new boot code, but I'm not sure which one of those files (or both) need to be used. My best guess is that I need to run: > > bsdlabel -B -b /boot/zfsboot > > Is that correct? Is there anything else I should do? What's the proper way to "roll back" in the event that the system becomes unbootable? Nope. Read http://www.mail-archive.com/freebsd-stable@freebsd.org/msg103917.html You need the dd sequence. And you need to do that on exported pool. -- Sphinx of black quartz judge my vow.