From owner-freebsd-fs@FreeBSD.ORG Fri Aug 8 23:23:18 2014 Return-Path: Delivered-To: freebsd-fs@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 8F8AA5B1; Fri, 8 Aug 2014 23:23:18 +0000 (UTC) Received: from h2.funkthat.com (gate2.funkthat.com [208.87.223.18]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "funkthat.com", Issuer "funkthat.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4B99C2BAA; Fri, 8 Aug 2014 23:23:17 +0000 (UTC) Received: from h2.funkthat.com (localhost [127.0.0.1]) by h2.funkthat.com (8.14.3/8.14.3) with ESMTP id s78NNGS4084643 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 8 Aug 2014 16:23:17 -0700 (PDT) (envelope-from jmg@h2.funkthat.com) Received: (from jmg@localhost) by h2.funkthat.com (8.14.3/8.14.3/Submit) id s78NNGed084642; Fri, 8 Aug 2014 16:23:16 -0700 (PDT) (envelope-from jmg) Date: Fri, 8 Aug 2014 16:23:16 -0700 From: John-Mark Gurney To: Daniel Peyrolon Subject: Re: Problems with zpool upgrade embedded_data, and rebooting Message-ID: <20140808232316.GA83475@funkthat.com> Mail-Followup-To: Daniel Peyrolon , freebsd-current@freebsd.org, freebsd-fs@freebsd.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 7.2-RELEASE i386 X-PGP-Fingerprint: 54BA 873B 6515 3F10 9E88 9322 9CB1 8F74 6D3F A396 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html X-TipJar: bitcoin:13Qmb6AeTgQecazTWph4XasEsP7nGRbAPE X-to-the-FBI-CIA-and-NSA: HI! HOW YA DOIN? can i haz chizburger? X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.2 (h2.funkthat.com [127.0.0.1]); Fri, 08 Aug 2014 16:23:17 -0700 (PDT) Cc: freebsd-fs@freebsd.org, freebsd-current@freebsd.org X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Aug 2014 23:23:18 -0000 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 on 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 bsdinstall). > 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, someone > could do me a favor and download the latest snapshot, and burn it to my 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 command > to update the bootloader. > I could manage to find it, and hopefully, everything worked again. Thanks > to those who helped me :) > > What would be the better way to avoid this happening in the future? Didn't you get the following warning: # zpool upgrade -a This system is currently running ZFS pool version 28. Successfully upgraded 'tank' 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: gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 da0 Or something similar? If you didn't follow the warnings, how else can we help you? -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."