From owner-freebsd-stable@FreeBSD.ORG Sat Dec 14 08:12:09 2013 Return-Path: Delivered-To: freebsd-stable@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 913BD2E7; Sat, 14 Dec 2013 08:12:09 +0000 (UTC) Received: from mail-pb0-x230.google.com (mail-pb0-x230.google.com [IPv6:2607:f8b0:400e:c01::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 6196510FF; Sat, 14 Dec 2013 08:12:09 +0000 (UTC) Received: by mail-pb0-f48.google.com with SMTP id md12so3517181pbc.7 for ; Sat, 14 Dec 2013 00:12:09 -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=aMrKWvzj3eohOdn/Tqn11Q0976hiCthxsWRJsH+JQG8=; b=xlZoubhMGY7Q5TJ3XeHGlfAehO7P/IIw0UTScw56hK7HNi8N7MCcrSE2LE+kZGcDgf U0CnnMRaqRJN+pZbLGXavm+1XJz5ZJwi+MEKxE/Gw5DwZ0bRftbirDORxGcordc4/Ieq lyFNKbTsTNJWLen59hkQkCXlVpCsv8CqJKNUlIc5Fb3gFaSGrQmoFd2OuHAzmpwjdOvF 66vHbybZNAZdCdukw+EPZQWPWr3t2oSeiQXA9dvGY6SYOGdOTehlURFJOS433v3xdwce jhsx7MLB2Z1rLQfDgcPRlDjwFFx5d+04+b50Va+cL5Yg65wpvfjaUpSOMOHlYWnbWfl7 IXSg== MIME-Version: 1.0 X-Received: by 10.68.66.1 with SMTP id b1mr8176027pbt.43.1387008728952; Sat, 14 Dec 2013 00:12:08 -0800 (PST) Received: by 10.66.142.167 with HTTP; Sat, 14 Dec 2013 00:12:08 -0800 (PST) In-Reply-To: References: Date: Sat, 14 Dec 2013 09:12:08 +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 08:12:09 -0000 I imported the zpool again: zpool import -f zroot but it does not allow me to chroot to zroot: chroot /zroot chroot: /zroot: No such file or directory I tried to sftp to another machine, but it states "Host key verification failed. Connection closed" Stuck! Any clues? On 12/14/13, Zenny wrote: > 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. >> >