Date: Mon, 3 Feb 2014 10:14:50 +0100 From: Zenny <garbytrash@gmail.com> To: Scot Hetzel <swhetzel@gmail.com> Cc: FreeBSD Stable <freebsd-stable@freebsd.org>, Devin Teske <Devin.Teske@fisglobal.com> Subject: Re: Recovery of zpools went corrupt!? Message-ID: <CACuV5sCCDs=T9ozSKm8wYRhm38hEvozKJQfiJbX1NNM1txjDkg@mail.gmail.com> In-Reply-To: <CACdU%2Bf98emYbZhLtWjDWDnW4qFVarY52wO2bMUYwJ5a4GR6xEg@mail.gmail.com> References: <CACuV5sC467mygO6ULHOPOk223onSR051vjE3QAvnq8yQED00gw@mail.gmail.com> <CACdU%2Bf98emYbZhLtWjDWDnW4qFVarY52wO2bMUYwJ5a4GR6xEg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2/3/14, Scot Hetzel <swhetzel@gmail.com> wrote:
> On Sun, Feb 2, 2014 at 1:04 PM, Zenny <garbytrash@gmail.com> wrote:
>> Reposting the mail below as I had an oversight not to include subject
>> line. Apology in advance!
>>
>>> Hi:
>>>
>>> Last time, Devin had been very kind to suggest me when the system
>>> borked while trying to upgrade from v10B3 to vRC1.
>>>
>>> Following FreeBSD 10.0-RELEASE, I installed to a new machine with
>>> encrypted root in zfs mirror, and since there was something wrong (a
>>> double quote by mistake) inserted in the /boot/device.hints, the
>>> kernel refused to boot and landed to the mountroot prompt.
>>>
>>> Therefore, in order to make changes what I did was:
>>>
>>> 1. Boot into LiveCD mode
>>> 2. mkdir /tmp/bootpool
>>> zpool import -f 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
>>> zpool export bootpool
>>> geli attach -k /tmp/encryption.key /dev/ada0p4
>>> geli attach -k /tmp/encryption.key /dev/ada1p4
>>> zpool import -R /mnt zroot
>>> zpool import -R /mnt/bootpool bootpool
>>> 3. Removed the double quote (") from /bootpool/boot/device.hints and
>>> saved the file.
>>>
>>> 4. Rebooted the file and now it says that there is no
>>> boot/zfsbootloader.
>>>
> Does the file /boot/zfsloader exist in /boot or /bootpool/boot?
Immediately after reboot, I got an error:
"can't find /boot/zfsloader"
followed by:
"can't load 'kernel'
Therefore, I rebooted livecd and tried to check by mounting bootpool
and the /tmp/bootpool directory was empty! Earlier it was working
desktop.
>
>
> --
> DISCLAIMER:
>
> No electrons were maimed while sending this message. Only slightly bruised.
>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACuV5sCCDs=T9ozSKm8wYRhm38hEvozKJQfiJbX1NNM1txjDkg>
