Date: Fri, 31 May 2019 09:41:31 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 238258] loader cant't find pool by guid Message-ID: <bug-238258-227-VSgNci9rBw@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-238258-227@https.bugs.freebsd.org/bugzilla/> References: <bug-238258-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D238258 --- Comment #3 from cs@soi.spb.ru --- Sorry for the incomplete description. New loader (unified with zfsloader) can't find zfs pool on an unpartitioned disk. How to repeat: 1. Connect fresh zeroed-out disk to a freebsd machine. 2. Create zfs pool right over the whole disk: zpool create testpool da0. 3. zpool set bootfs=3Dtestpool testpool 4. mkdir -p /testpool/usr/src 5. cd /testpool/usr/src 6. svnlite co svn://svn.freebsd.org/base/stable/11 . 7. export MAKEOBJDIRPREFIX=3D/testpool/usr/obj 8. make buildworld 9. make buildkernel 10. make DESTDIR=3D/testpool installworld 11. make DESTDIR=3D/testpool distribution 12. make DESTDIR=3D/testpool installkernel 13. echo 'zfs_load=3D"YES"' >> /testpool/boot/loader.conf 14. echo 'devfs /dev devfs rw,multilabel 0 0' >> /testpool/etc/fstab 15. cp -p /testpool/boot/zfsboot /tmp 16. zpool export testpool 17. dd if=3D/tmp/zfsboot of=3D/dev/da0 bs=3D512 count=3D1 18. dd if=3D/tmp/zfsboot of=3D/dev/da0 bs=3D512 skip=3D1 seek=3D1k 19. Reboot from the newly created pool and observe on the console: FreeBSD/x86 bootstrap loader, Revision 1.1 (Thu May 30 18:55:21 MSK 2019 root@white) ZFS: can't find pool by guid ZFS: can't find pool by guid ZFS: can't find pool by guid ..... Workaround: copy old (e.g. from 10.2-RELEASE) zfsloader over /boot/loader (= or wherever boot block expect to find it). Then it will boot correctly. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-238258-227-VSgNci9rBw>