Date: Mon, 6 Aug 2018 15:10:51 -0400 (EDT) From: doug <doug@fledge.watson.org> To: Matthias Fechner <idefix@fechner.net> Cc: freebsd-questions@freebsd.org Subject: Re: 11.2 cannot boot with root on ZFS Message-ID: <alpine.BSF.2.20.1808061502320.50032@fledge.watson.org> In-Reply-To: <7415d752-21ab-a397-f90b-afe9945b2585@fechner.net> References: <e49d702d-951c-47f3-0f8c-f26de2fc7613@fechner.net> <CACNAnaGFRzET_RN7Xd4rETQ5qCwUVhyEpqZXAtj29QdAbGt2mA@mail.gmail.com> <7415d752-21ab-a397-f90b-afe9945b2585@fechner.net>
index | next in thread | previous in thread | raw e-mail
On Sun, 5 Aug 2018, Matthias Fechner wrote:
> Hi Kyle,
>
> sry that it took longer, but I had a harddisk failure and it took some
> time to resilver the pool to a new disc.
>
> Am 16.07.2018 um 19:45 schrieb Kyle Evans:
>> To be clear- the kernel can't find the zfs pool, or one of the earlier
>> stages? Giving the pool manually meaning at a mountroot prompt, or
>> somewhere else?
>
> I'm not sure what the problem is.
> If I update the kernel from 11.1 to 11.2 with freebsd-update and reboot,
> it could be a kernel panic with an immediate reboot.
> It is that fast, that it is impossible to see anything on the screen, so
> I cannot give you a clear error message for this.
>
> If I try then to boot the old kernel in the bootloader with:
> unload
> load /boot/kernel.working/kernel
>
> it is not able to mount the zroot pool.
>
> To fix this, I need to boot mfsbsd from an USB stick and do:
> zpool import -o altroot=/mnt zroot
> cd /mnt
> tar xjvf boot_111_working.tar.bz2
> cd /
> zpool export zroot
> reboot
>
>> This is for specifically for aarch64, but you've not specifically
>> mentioned it- you're on aarch64, right?
> you are right, I'm on a normal amd64 platform.
>
>> I think we'll need a little more information about where and
>> specifically how it's failing for you to determine that. Others have
>> reported successful upgrades from 11.1 to 11.2 with root-on-ZFS
>> setups.
>
> is it maybe the way the disc are partitioned?
>
> I have an empty EFI partition on the harddisk (to have later space for EFI):
> gpart show ada0
> => 40 5860533088 ada0 GPT (2.7T)
> 40 262144 1 efi (128M)
> 262184 512 2 freebsd-boot (256K)
> 262696 5860270424 3 freebsd-zfs (2.7T)
> 5860533120 8 - free - (4.0K)
>
> The bootloader is correctly installed using:
>
> gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 2 ada0
>
I have an amd64 ZFS install from the USB file taking all the defaults. Here's
what my disk looks like:
=> 40 1953525088 ada1 GPT (932G)
40 409600 1 efi (200M)
409640 1024 2 freebsd-boot (512K)
410664 984 - free - (492K)
411648 4194304 3 freebsd-swap (2.0G)
4605952 1948917760 4 freebsd-zfs (929G)
1953523712 1416 - free - (708K)
mount_msdosfs /dev/ada1p1 /mnt
cd /mnt/efi/boot/
ls -l
total 385
-rwxr-xr-x 1 root wheel 393216 Apr 16 10:12 BOOTx64.efi
-rwxr-xr-x 1 root wheel 12 Apr 16 10:12 startup.nsh
cat startup.nsh
BOOTx64.efi
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.20.1808061502320.50032>
