[Bug 238258] loader cant't find pool by guid

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri May 31 09:41:34 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=238258

--- Comment #3 from cs at 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 at 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.


More information about the freebsd-bugs mailing list