From owner-freebsd-current@FreeBSD.ORG Sat Aug 9 02:26:59 2014 Return-Path: Delivered-To: freebsd-current@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 ESMTPS id 3E3C7BE9 for ; Sat, 9 Aug 2014 02:26:59 +0000 (UTC) Received: from mx1.scaleengine.net (beauharnois2.bhs1.scaleengine.net [142.4.218.15]) by mx1.freebsd.org (Postfix) with ESMTP id 006782BAA for ; Sat, 9 Aug 2014 02:26:58 +0000 (UTC) Received: from [192.168.1.2] (senat1-01.HML3.ScaleEngine.net [209.51.186.5]) (Authenticated sender: allanjude.freebsd@scaleengine.com) by mx1.scaleengine.net (Postfix) with ESMTPSA id CF11B37292 for ; Sat, 9 Aug 2014 02:26:56 +0000 (UTC) Message-ID: <53E58703.1050602@freebsd.org> Date: Fri, 08 Aug 2014 22:27:15 -0400 From: Allan Jude User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: freebsd-current@freebsd.org Subject: Re: Problems with zpool upgrade embedded_data, and rebooting References: <20140808232316.GA83475@funkthat.com> In-Reply-To: <20140808232316.GA83475@funkthat.com> X-Enigmail-Version: 1.6 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="B8n0V4Bxn9WpfU1EiC3g3sSn9CJFL95X4" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Aug 2014 02:26:59 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --B8n0V4Bxn9WpfU1EiC3g3sSn9CJFL95X4 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 2014-08-08 19:23, John-Mark Gurney wrote: > Daniel Peyrolon wrote this message on Sat, Aug 09, 2014 at 00:41 +0200:= >> Hello everyone, >> >> I just would like to gratuitously rant about something that happened o= n my >> machine. >> >> Basically, I upgraded my zpool to use embedded_data, since it would be= more >> efficient, and rebooted. (I installed the system with zfs using bsdins= tall). >> It turned out that gptzfsboot wasn't able to load that filesystem, so = I >> tried to get it working from a live system that I have on a USB drive.= >> It didn't work on that particular live system, but, fortunately, someo= ne >> could do me a favor and download the latest snapshot, and burn it to m= y USB >> drive. >> >> >From there, it was a matter of importing zroot, mounting it at /mnt, = and >> taking a look at the code of bsdinstall, trying to find the actual com= mand >> to update the bootloader. >> I could manage to find it, and hopefully, everything worked again. Tha= nks >> to those who helped me :) >> >> What would be the better way to avoid this happening in the future? >=20 > Didn't you get the following warning: > # zpool upgrade -a > This system is currently running ZFS pool version 28. >=20 > Successfully upgraded 'tank' >=20 > If you boot from pool 'tank', 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 > Or something similar? >=20 > If you didn't follow the warnings, how else can we help you? >=20 Yeah, there is a big warning with explicit instructions after you zpool upgrade, warning you about this specific issue. In order to save your self from a rescue system, it'd have to support the embedded_data feature as well. --=20 Allan Jude --B8n0V4Bxn9WpfU1EiC3g3sSn9CJFL95X4 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (MingW32) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBAgAGBQJT5YcGAAoJEJrBFpNRJZKf9P0P/iOVrP3QALzdJSHT+RhPHC8K VpChOxEe8HrB6eLFalya51zkAP6f/Bhg+FhMcjeqIwPuXnH/l2Xi0UXFENeB+k/Y 6KkwMnnKFhx3DEC+m0Ak8tE1aAszm5I9NHZyCmfOFzJssIMr8AxEM5neRePpI21h kX9WvR714J1i7BQchQXg3fEoeBGN6dNZvJdvGIywIWZlh/Z3K6D7RtTgjxSa9z99 FfwHi+sWzWoUfh0bbc+GekUXnPXi5I/Fv9q26MAx2U9uUcQl/r3PzkQp/RChr71L lLb+UcHWIx7aHO1P6Ua2/5FA2AGM1uDTGAoN5fFRTRq5h3nVNv/es7wi3IPIQXEh yB7k0XKtaat+XTKwgCNm0AF15iZGiQuTG+RfWY3xH/5Qu+9foHfKDb8l7W7Lff4h BaAvA6pEGutvfgVdccSInaMYlg241cgBPXzUeLwO+HckDQcJO/MFz43nIMwekoG9 /qe/32MZDoBYfvkjOq+2df71nJaD5My8yBQwTlMVHfhwlkq3XSL6f5NKb/WMUI2k ld13PDmRuzDQTgGkjpcr5LjD1lwZYLnqv14wX3Uskr5308UaGO4DY8HTaqZOwdMb jTEjS5ljc337ux43QwtGWik2edQQQP869Crcq7g57e34DhzM2cnGgO/7QVSWY1ZW 6hrIcXhZiVI+x9BGs9eI =ksV4 -----END PGP SIGNATURE----- --B8n0V4Bxn9WpfU1EiC3g3sSn9CJFL95X4--