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

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 17 Mar 2022 12:58:40 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262617

--- Comment #1 from donaldcallen@gmail.com ---
On the not-plugged-in at boot-time case:

Plugging the disk in results in the GPT primary table corruption messages
previous reported.

Attempting 

zfs mount Primary

results in
"Cannot open 'Primary': data set does not exist"

zpool status Primary:

"cannot open 'Primary': no such pool"

As I said in my earlier post, rebooting with the drive plugged in results in
the pool being mounted:

Filesystem            Size    Used   Avail Capacity  Mounted on
zroot/ROOT/default    219G    7.8G    211G     4%    /
devfs                 1.0K    1.0K      0B   100%    /dev
zroot/tmp             211G     17M    211G     0%    /tmp
zroot                 211G     96K    211G     0%    /zroot
zroot/usr/ports       211G     96K    211G     0%    /usr/ports
zroot/var/mail        211G    144K    211G     0%    /var/mail
zroot/var/audit       211G     96K    211G     0%    /var/audit
zroot/var/crash       211G     96K    211G     0%    /var/crash
zroot/usr/home        215G    4.2G    211G     2%    /usr/home
zroot/var/log         211G    296K    211G     0%    /var/log
zroot/var/tmp         211G     96K    211G     0%    /var/tmp
zroot/usr/src         211G     96K    211G     0%    /usr/src
Primary               1.8T    346G    1.4T    19%    /usr/home/dca/Primary

The space utilization numbers are correct but 'ls Primary' or 'ls' of any files
I know are there returns nothing.

zfs umount Primary
zfs mount Primary

gets the pool mounted properly.

-- 
You are receiving this mail because:
You are the assignee for the bug.