Date: Fri, 08 Nov 2013 06:55:09 -0600 From: Mark Felder <feld@FreeBSD.org> To: freebsd-questions@freebsd.org Subject: Re: Running gpart boot code after upgrade zfs pool to feature flag ? Message-ID: <1383915309.25998.44747997.2B6544D9@webmail.messagingengine.com> In-Reply-To: <A6334569-B846-43D4-8BD7-E72106892C28@todoo.biz> References: <A6334569-B846-43D4-8BD7-E72106892C28@todoo.biz>
next in thread | previous in thread | raw e-mail | index | archive | help
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).
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1383915309.25998.44747997.2B6544D9>