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/>
index | next in thread | previous in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=238258 --- 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=testpool 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=/testpool/usr/obj 8. make buildworld 9. make buildkernel 10. make DESTDIR=/testpool installworld 11. make DESTDIR=/testpool distribution 12. make DESTDIR=/testpool installkernel 13. echo 'zfs_load="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=/tmp/zfsboot of=/dev/da0 bs=512 count=1 18. dd if=/tmp/zfsboot of=/dev/da0 bs=512 skip=1 seek=1k 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. -- You are receiving this mail because: You are the assignee for the bug.help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-238258-227-VSgNci9rBw>
