Bug 225076 - loss zfs pool after reboot
Summary: loss zfs pool after reboot
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 11.1-STABLE
Hardware: i386 Any
: --- Affects Many People
Assignee: freebsd-fs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-11 17:08 UTC by Fedor
Modified: 2022-06-04 21:31 UTC (History)
3 users (show)

See Also:


Attachments
example error (64.50 KB, text/plain)
2018-01-11 17:08 UTC, Fedor
no flags Details
massages (9.57 KB, text/plain)
2018-01-11 17:10 UTC, Fedor
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fedor 2018-01-11 17:08:03 UTC
Created attachment 189623 [details]
example error

only using mbr.

zfsboot (https://github.com/freebsd/freebsd/blob/master/usr.sbin/bsdinstall/scripts/zfsboot) creates two pools: zroot and bootpool. after the system is rebooted, the bootpool disappears.

look example error

way to fix (temporary measure)
zpool import -f bootpool
rm -f /boot
cp -rp /bootpool/ /
zpool export -f bootpool
rm /boot/zfs/zpool.cache
reboot
Comment 1 Fedor 2018-01-11 17:10:06 UTC
Created attachment 189624 [details]
massages
Comment 2 donaldcallen 2022-03-17 03:36:40 UTC
More than 5 years after this report, I am seeing the same behavior. It's more than a bit disconcerting to see a problem this serious unaddressed after such a long time.

I have a USB-connected 2TB Seagate Barracuda I use for backups and archives. The entire drive is a simple zfs pool. When I reboot the system with the pool mounted, the rebooted system shows the pool mounted, via df, which shows the expected number of GB used. But an ls of the mount-point shows no files -- nothing. If I unmount the filesystem and remount it, the file-system now operates normally.

I am running FreeBSD 13.
Comment 3 Ronald Klop 2022-03-17 08:13:55 UTC
(In reply to donaldcallen from comment #2)

Does this match the problem?
https://forums.freebsd.org/threads/auto-importing-a-zfs-pool.12875/
Comment 4 Ronald Klop 2022-03-17 08:21:00 UTC
(In reply to donaldcallen from comment #2)

Oh I re-read your issue. It is different than the original issue. My previous reply is about the original issue which does not have the pool imported after reboot. 

You have the pool imported properly. Just the directory is hidden behind another mount. Can you provide more info about your system but in a new issue or on the mailinglist?
Comment 5 donaldcallen 2022-03-17 12:27:46 UTC
@Ronald Klop

I opened a separate PR as you requested. Please see

Bug 262617 - ZFS pool on USB drive does not mount correctly on startup