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

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 13 Jun 2022 01:10:35 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262617

--- Comment #7 from donaldcallen@gmail.com ---
(In reply to donaldcallen from comment #5)
I tried something other than FreeBSD on the machine I have written about here
and that experiment did not work out. So I have re-installed FreeBSD. In doing
so, I revisited the problem caused by creating a pool on the whole backup
device, rather than using a partition. This works, but produces error messages
about the primary gpt partition table being corrupt, as I mentioned in an
earlier comment here. I did some googling on this, and I think my speculation
in the comment to which I'm replying is correct. Others have seen this issue
and one person said that zpool create was not wiping the secondary gpt table,
confusing the system at mount time, exactly as I guessed. His recommendation
was to use gpart destroy before creating the pool, which wipes both gpt tables.

I think this is a bug in zfs create. If it's going to create a pool, it needs
to do so in a way that doesn't cause problems when the pool is mounted. That
includes wiping the secondary gpt table.

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