From owner-freebsd-questions@FreeBSD.ORG Fri Nov 8 12:55:21 2013 Return-Path: Delivered-To: freebsd-questions@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 634BE2D4 for ; Fri, 8 Nov 2013 12:55:21 +0000 (UTC) (envelope-from feld@FreeBSD.org) Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 355FB2780 for ; Fri, 8 Nov 2013 12:55:21 +0000 (UTC) Received: from compute5.internal (compute5.nyi.mail.srv.osa [10.202.2.45]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 0FEF220D83 for ; Fri, 8 Nov 2013 07:55:10 -0500 (EST) Received: from web3 ([10.202.2.213]) by compute5.internal (MEProxy); Fri, 08 Nov 2013 07:55:10 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:from:to:mime-version :content-transfer-encoding:content-type:subject:date:in-reply-to :references; s=smtpout; bh=iMw4Wdn0bCGIcIqh9tjG+3wwvyo=; b=rXpYq IxPJ9z9B7D5EZN0WtIzSOT5gZNV+WGj+kOPtylr45GLB8VkFSlvGhkDJ2HKW5lJx n9ukj6mp2JqWBTHB/cZVLaHEAn8H9CL0S3mYIXDHOkP6Y628XLFtbws/3RWgm2Kz qhSEd/90KteltcVFL2ywCrfKPKRmRLIEluIDPM= Received: by web3.nyi.mail.srv.osa (Postfix, from userid 99) id E60B910A9D4; Fri, 8 Nov 2013 07:55:09 -0500 (EST) Message-Id: <1383915309.25998.44747997.2B6544D9@webmail.messagingengine.com> X-Sasl-Enc: 0IHrThG0hbPEIh6qZKegUlZ507OnAA9OtJ+KQX4uduUt 1383915309 From: Mark Felder To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" X-Mailer: MessagingEngine.com Webmail Interface - ajax-d4893488 Subject: Re: Running gpart boot code after upgrade zfs pool to feature flag ? Date: Fri, 08 Nov 2013 06:55:09 -0600 In-Reply-To: References: X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Nov 2013 12:55:21 -0000 On Thu, Nov 7, 2013, at 14:45, bsd@todoo.biz wrote: > Hello,=20 >=20 > I have just successfully upgraded my server from 9.1 to 9.2 and activated > the latest feature flag on my zpool.=20 >=20 >=20 > > tube:root 21:04:53 /root # zpool upgrade -a=20 > > This system supports ZFS pool feature flags. > >=20 > > Successfully upgraded 'zroot' from version 28 to feature flags. > > Enabled the following features on 'zroot': > > async_destroy > > empty_bpobj > > lz4_compress > >=20 > > If you boot from pool 'zroot', don't forget to update boot code. > > Assuming you use GPT partitioning and da0 is your boot disk > > the following command will do it: > >=20 > > gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 da0 > >=20 >=20 > I really don't know if I need to issue this command=E2=80=A6=20 >=20 > I have tried to figure out by reading the man gpart but It is not 100% > clear to me=E2=80=A6=20 >=20 > My gpart config is as follow :=20 >=20 >=20 > > tube:root 21:11:05 /usr/ports/ports-mgmt/poudriere screen # gpart show > > =3D> 34 1677721533 da0 GPT (800G) > > 34 128 1 freebsd-boot (64k) > > 162 6 - free - (3.0k) > > 168 8388608 2 freebsd-swap (4.0G) > > 8388776 1669332784 3 freebsd-zfs (796G) > > 1677721560 7 - free - (3.5k) > >=20 > > =3D> 63 113246145 da1 MBR (54G) > > 63 113242122 1 freebsd [active] (54G) > > 113242185 4023 - free - (2M) > >=20 > > =3D> 0 113242122 da1s1 BSD (54G) > > 0 4194304 1 freebsd-ufs (2.0G) > > 4194304 8388608 2 freebsd-swap (4.0G) > > 12582912 4194304 4 freebsd-ufs (2.0G) > > 16777216 31457280 5 freebsd-ufs (15G) > > 48234496 65007626 6 freebsd-ufs (31G) > >=20 >=20 > Shall I run the command provided or not ?=20 >=20 >=20 > > gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 da0 >=20 >=20 > Any help will be welcome since I really don't want to mess up with my > server.=20 >=20 Is your root filesystem ZFS or UFS? Based on the disk layouts you have provided I want to say you probably use ZFS, but I believe it's possible that you could be booting from da0 and mounting a UFS root from da1 (though I have never tested this type of setup).