From owner-freebsd-stable@FreeBSD.ORG Sat Dec 14 07:21:47 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2FE98BEB; Sat, 14 Dec 2013 07:21:47 +0000 (UTC) Received: from mail-pd0-x232.google.com (mail-pd0-x232.google.com [IPv6:2607:f8b0:400e:c02::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 017F51E87; Sat, 14 Dec 2013 07:21:46 +0000 (UTC) Received: by mail-pd0-f178.google.com with SMTP id y10so3370123pdj.23 for ; Fri, 13 Dec 2013 23:21:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=GN8JfvyOsMjUsLPv/sJ6i9Mn+wd6Ef/MKXeys29x/9o=; b=mhGgViHqgVnAUmSI1HrNb9qzbH+/f0BbP6cmG7nHMp4YugOzWImT7LsXjIoophgw6v gnV2zbe+kpR/xkZPWqH4iOofayTChHMdu2UQWMBNqwqIL0t4zxOfLp1Iuxl9T7BsG4UK vXoi7uIS+9szBFjEid1usxl8eHCqg/PMCihm9nxFrCKezAUlNdXkM21u0lL1oTdVY1aY iY/9fHhKMsFGieLGZjDidR+UIFC6/9isv8izFI1Ptw0aMRU9q3LIcA1z1ifUuEskr4z7 XmxQos6Pj9DGkjgMHrHMNlvIvbADdNh9Z0jNt+ocKe3mL85Q7mHQgAduu7+BD+AiEKaB getQ== MIME-Version: 1.0 X-Received: by 10.66.158.99 with SMTP id wt3mr7800481pab.113.1387005706524; Fri, 13 Dec 2013 23:21:46 -0800 (PST) Received: by 10.66.142.167 with HTTP; Fri, 13 Dec 2013 23:21:46 -0800 (PST) In-Reply-To: References: Date: Sat, 14 Dec 2013 08:21:46 +0100 Message-ID: Subject: Re: Upgrading from FreeBSD10-B3 to FreeBSD10-RC1 borked From: Zenny To: Devin Teske Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-stable Stable , "Teske, Devin" X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Dec 2013 07:21:47 -0000 Thanks Devin for your hints: However, for others who had similar problems I am adding some changes to your step-by-step instructions: Step 1. Boot into LiveCD Step 2. Execute the following commands... mkdir /tmp/bootpool zpool import -f bootpool (without -f option it refuses to import) zfs set mountpoint=/tmp/bootpool bootpool zfs mount -a cp /tmp/bootpool/boot/encryption.key /tmp/ zfs umount -a zfs set mountpoint=/bootpool bootpool zpool export bootpool (changed from zfs to zpool) geli attach -k /tmp/encryption.key /dev/ada0p3 geli attach -k /tmp/encryption.key /dev/ada1p3 # NB: Substitute ada0p3 for proper disk # NB: Repeat for each disk in the zroot pool zpool import At this point, the final "zpool import" shows the zroot. Is there a version-specific instructions to recover the borked environment in FreeBSD10 after the above steps? Thank you again! On 12/13/13, Teske, Devin wrote: > > On Dec 13, 2013, at 4:53 AM, Zenny wrote: > >> Followed the instructions here: >> http://www.freebsd.org/doc/handbook/updating-upgrading-freebsdupdate.html >> >> The upgrade borked. >> >> Error message: Can't find 'kernel' >> >> When I checked with ls /boot/kernel/, the directory does exist. >> >> :-( >> >> Since the system has encrypted root partion with ZFSonROOT, I tried to >> follow instructions at >> https://forums.freebsd.org/viewtopic.php?&t=8958 to boot with a livecd >> and went to the shell prompt and tried to import the zroot pool with >> 'zpool import -f zroot' but it says no such pool is available. >> >> How to fix it? Any hint? Thanks! > > Before you can import the zroot you have to: > > 1. Import the bootpool (which requires changing of the mountpoint in the > LiveCD environment) > > 2. Do a "geli attach" with the (a) the key that is stored on the bootpool > and > (b) the passphrase that you set. > > After that, you'll see the zroot pool. > > Here's the step-by-step: > > Step 1. Boot into LiveCD > > Step 2. Execute the following commands... > mkdir /tmp/bootpool > zpool import bootpool > zfs set mountpoint=/tmp/bootpool bootpool > zfs mount -a > cp /tmp/bootpool/boot/encryption.key /tmp/ > zfs umount -a > zfs set mountpoint=/bootpool bootpool > zfs export bootpool > geli attach -k /tmp/encryption.key /dev/ada0p3 > # NB: Substitute ada0p3 for proper disk > # NB: Repeat for each disk in the zroot pool > zpool import > > At this point, the final "zpool import" shows the zroot. > > I've found several things that needed fixing in the RC1... > Pending MFC's to releng/10.0: > > http://svnweb.freebsd.org/base?view=revision&revision=258927 > http://svnweb.freebsd.org/base?view=revision&revision=259144 > http://svnweb.freebsd.org/base?view=revision&revision=259148 > > Will be submitted shortly -- in addition I have a few more coming. > -- > Devin > > _____________ > The information contained in this message is proprietary and/or > confidential. If you are not the intended recipient, please: (i) delete the > message and all copies; (ii) do not disclose, distribute or use the message > in any manner; and (iii) notify the sender immediately. In addition, please > be aware that any message addressed to our domain is subject to archiving > and review by persons other than the intended recipient. Thank you. >