Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Dec 2013 16:57:38 +0000
From:      "Teske, Devin" <Devin.Teske@fisglobal.com>
To:        Zenny <garbytrash@gmail.com>
Cc:        Devin Teske <dteske@freebsd.org>, freebsd-stable Stable <freebsd-stable@freebsd.org>, "Teske, Devin" <Devin.Teske@fisglobal.com>
Subject:   Re: Upgrading from FreeBSD10-B3 to FreeBSD10-RC1 borked
Message-ID:  <82E1DEDC-876B-43EF-B86C-9F37DEC63A12@fisglobal.com>
In-Reply-To: <CACuV5sBQUr1fu9u3dWYYySFwMOpDj8aaT3iV28yTF_i-6ujB1g@mail.gmail.com>
References:  <CACuV5sAL8R4hJu=p6W1gZtDfVpgr8xAShxSagSf3G_h46%2BxWNQ@mail.gmail.com> <F6AEA3F4-FA91-4C55-87EF-D5E018D39B39@fisglobal.com> <CACuV5sBQUr1fu9u3dWYYySFwMOpDj8aaT3iV28yTF_i-6ujB1g@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On Dec 13, 2013, at 11:21 PM, 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

Try:
	zpool import -R /mnt zroot
	zpool import -R /mnt/bootpool bootpool

NB: The `-R other_root' feature is temporary and not saved.


That will get your data mounted. From there, you might be able to, say...

	service netif start

In which case, you're now primed and ready to perhaps copy data out?
(that's a question, because it depends on whether you configured network)
--=20
Devin




> Thank you again!
>=20
>=20
>=20
> On 12/13/13, Teske, Devin <Devin.Teske@fisglobal.com> wrote:
>>=20
>> On Dec 13, 2013, at 4:53 AM, Zenny wrote:
>>=20
>>> Followed the instructions here:
>>> http://www.freebsd.org/doc/handbook/updating-upgrading-freebsdupdate.ht=
ml
>>>=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://forums.freebsd.org/viewtopic.php?t=3D8958 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 bootpool
>> 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
>> http://svnweb.freebsd.org/base?view=3Drevision&revision=3D258927
>> http://svnweb.freebsd.org/base?view=3Drevision&revision=3D259144
>> http://svnweb.freebsd.org/base?view=3Drevision&revision=3D259148
>>=20
>> Will be submitted shortly -- in addition I have a few more coming.
>> --
>> Devin

_____________
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?82E1DEDC-876B-43EF-B86C-9F37DEC63A12>