From owner-freebsd-stable@FreeBSD.ORG Sat Dec 14 17:19:07 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 CD859F06; Sat, 14 Dec 2013 17:19:07 +0000 (UTC) Received: from mx1.fisglobal.com (mx1.fisglobal.com [199.200.24.190]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 923F1107B; Sat, 14 Dec 2013 17:19:07 +0000 (UTC) Received: from smtp.fisglobal.com ([10.132.206.15]) by ltcfislmsgpa03.fnfis.com (8.14.5/8.14.5) with ESMTP id rBEHJ6HP030661 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Sat, 14 Dec 2013 11:19:06 -0600 Received: from LTCFISWMSGMB21.FNFIS.com ([169.254.1.7]) by LTCFISWMSGHT04.FNFIS.com ([10.132.206.15]) with mapi id 14.03.0158.001; Sat, 14 Dec 2013 11:19:05 -0600 From: "Teske, Devin" To: Zenny Subject: Re: Upgrading from FreeBSD10-B3 to FreeBSD10-RC1 borked Thread-Topic: Upgrading from FreeBSD10-B3 to FreeBSD10-RC1 borked Thread-Index: AQHO+BNRwcguYgNeMUirSUFHc4diJQ== Date: Sat, 14 Dec 2013 17:19:05 +0000 Message-ID: <82E2ACC4-6F34-45DF-B5E3-7E1C0F6FD5E3@fisglobal.com> References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.132.253.120] Content-Type: text/plain; charset="iso-8859-1" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.11.87, 1.0.14, 0.0.0000 definitions=2013-12-14_01:2013-12-12,2013-12-14,1970-01-01 signatures=0 Cc: Devin Teske , 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 17:19:07 -0000 On Dec 14, 2013, at 12:12 AM, Zenny wrote: > I imported the zpool again: >=20 > zpool import -f zroot You do not want to do that. That will cause the zroot to bork your LiveCD environment. You need the "-R tmproot" option (as I mention in a follow-up) --=20 Devin >=20 > but it does not allow me to chroot to zroot: >=20 > chroot /zroot > chroot: /zroot: No such file or directory >=20 > I tried to sftp to another machine, but it states "Host key > verification failed. Connection closed" >=20 > Stuck! Any clues? >=20 > On 12/14/13, Zenny wrote: >> Thanks Devin for your hints: >>=20 >> However, for others who had similar problems I am adding some changes >> to your step-by-step instructions: >>=20 >> Step 1. Boot into LiveCD >>=20 >> Step 2. Execute the following commands... >> mkdir /tmp/bootpool >> zpool import -f bootpool (without -f option it refuses to import) >> zfs set mountpoint=3D/tmp/bootpool bootpool >> zfs mount -a >> cp /tmp/bootpool/boot/encryption.key /tmp/ >> zfs umount -a >> zfs set mountpoint=3D/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 >>=20 >> At this point, the final "zpool import" shows the zroot. >>=20 >> Is there a version-specific instructions to recover the borked >> environment in FreeBSD10 after the above steps? >>=20 >> Thank you again! >>=20 >>=20 >>=20 >> On 12/13/13, Teske, Devin wrote: >>>=20 >>> On Dec 13, 2013, at 4:53 AM, Zenny wrote: >>>=20 >>>> Followed the instructions here: >>>> https://urldefense.proofpoint.com/v1/url?u=3Dhttp://www.freebsd.org/do= c/handbook/updating-upgrading-freebsdupdate.html&k=3D%2FbkpAUdJWZuiTILCq%2F= FnQg%3D%3D%0A&r=3DLTzUWWrRnz2iN3PtHDubWRSAh9itVJ%2BMUcNBCQ4tyeo%3D%0A&m=3DL= I6q%2BB1l5Sbvo6vxBm2Ctg5RIDAnTbAwL2m%2F0x%2B1FsA%3D%0A&s=3D44021f22ff171b24= f82877c3ba63734b6d88bb51d03adeb815b4075f5cc56ef4 >>>>=20 >>>> The upgrade borked. >>>>=20 >>>> Error message: Can't find 'kernel' >>>>=20 >>>> When I checked with ls /boot/kernel/, the directory does exist. >>>>=20 >>>> :-( >>>>=20 >>>> Since the system has encrypted root partion with ZFSonROOT, I tried to >>>> follow instructions at >>>> https://urldefense.proofpoint.com/v1/url?u=3Dhttps://forums.freebsd.or= g/viewtopic.php?%26t%3D8958&k=3D%2FbkpAUdJWZuiTILCq%2FFnQg%3D%3D%0A&r=3DLTz= UWWrRnz2iN3PtHDubWRSAh9itVJ%2BMUcNBCQ4tyeo%3D%0A&m=3DLI6q%2BB1l5Sbvo6vxBm2C= tg5RIDAnTbAwL2m%2F0x%2B1FsA%3D%0A&s=3D38359e503d0f04c5c36c3371634ca1233c7b1= c097816e741078cd2aa82084f61 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. >>>>=20 >>>> How to fix it? Any hint? Thanks! >>>=20 >>> Before you can import the zroot you have to: >>>=20 >>> 1. Import the bootpool (which requires changing of the mountpoint in the >>> LiveCD environment) >>>=20 >>> 2. Do a "geli attach" with the (a) the key that is stored on the bootpo= ol >>> and >>> (b) the passphrase that you set. >>>=20 >>> After that, you'll see the zroot pool. >>>=20 >>> Here's the step-by-step: >>>=20 >>> Step 1. Boot into LiveCD >>>=20 >>> Step 2. Execute the following commands... >>> mkdir /tmp/bootpool >>> zpool import bootpool >>> zfs set mountpoint=3D/tmp/bootpool bootpool >>> zfs mount -a >>> cp /tmp/bootpool/boot/encryption.key /tmp/ >>> zfs umount -a >>> zfs set mountpoint=3D/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 >>>=20 >>> At this point, the final "zpool import" shows the zroot. >>>=20 >>> I've found several things that needed fixing in the RC1... >>> Pending MFC's to releng/10.0: >>>=20 >>> https://urldefense.proofpoint.com/v1/url?u=3Dhttp://svnweb.freebsd.org/= base?view%3Drevision%26revision%3D258927&k=3D%2FbkpAUdJWZuiTILCq%2FFnQg%3D%= 3D%0A&r=3DLTzUWWrRnz2iN3PtHDubWRSAh9itVJ%2BMUcNBCQ4tyeo%3D%0A&m=3DLI6q%2BB1= l5Sbvo6vxBm2Ctg5RIDAnTbAwL2m%2F0x%2B1FsA%3D%0A&s=3D853674f8f262949ea02b14e1= 26e25b7b7f0547af31a8738f1448c86516b218af >>> https://urldefense.proofpoint.com/v1/url?u=3Dhttp://svnweb.freebsd.org/= base?view%3Drevision%26revision%3D259144&k=3D%2FbkpAUdJWZuiTILCq%2FFnQg%3D%= 3D%0A&r=3DLTzUWWrRnz2iN3PtHDubWRSAh9itVJ%2BMUcNBCQ4tyeo%3D%0A&m=3DLI6q%2BB1= l5Sbvo6vxBm2Ctg5RIDAnTbAwL2m%2F0x%2B1FsA%3D%0A&s=3Daace333bd4801075db92c7b1= 4fc909d2b4d57979ff94f1e62447235add1856e7 >>> https://urldefense.proofpoint.com/v1/url?u=3Dhttp://svnweb.freebsd.org/= base?view%3Drevision%26revision%3D259148&k=3D%2FbkpAUdJWZuiTILCq%2FFnQg%3D%= 3D%0A&r=3DLTzUWWrRnz2iN3PtHDubWRSAh9itVJ%2BMUcNBCQ4tyeo%3D%0A&m=3DLI6q%2BB1= l5Sbvo6vxBm2Ctg5RIDAnTbAwL2m%2F0x%2B1FsA%3D%0A&s=3Dba7351dd7c07aeea6fe66749= 1bef1507da3c8e9a36a8fedcdb124e28b9d4393e >>>=20 >>> Will be submitted shortly -- in addition I have a few more coming. >>> -- >>> Devin >>>=20 >>> _____________ >>> 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 archivi= ng >>> and review by persons other than the intended recipient. Thank you. >>>=20 >>=20 _____________ The information contained in this message is proprietary and/or confidentia= l. If you are not the intended recipient, please: (i) delete the message an= d all copies; (ii) do not disclose, distribute or use the message in any ma= nner; and (iii) notify the sender immediately. In addition, please be aware= that any message addressed to our domain is subject to archiving and revie= w by persons other than the intended recipient. Thank you.