10.0-BETA4 (upgraded from 9.2-RELEASE) zpool upgrade -> boot failure

Artem Belevich art at freebsd.org
Thu Dec 12 22:04:19 UTC 2013


On Thu, Dec 12, 2013 at 1:12 PM, Florent Peterschmitt
<florent at peterschmitt.fr> wrote:
>> do  "zdb -l /dev/ada0" (and all other slices on ada0) and check
>> whether it reports anything unexpected.
>>
>> --Artem
>
> rescue-bsd# zdb -l /dev/ada0
> --------------------------------------------
> LABEL 0
> --------------------------------------------
> failed to unpack label 0
> --------------------------------------------
> LABEL 1
> --------------------------------------------
> failed to unpack label 1
> --------------------------------------------
> LABEL 2
> --------------------------------------------
> failed to unpack label 2
> --------------------------------------------
> LABEL 3
> --------------------------------------------
> failed to unpack label 3
>
>
> Well… this sounds bad, right?

This looks the way it's supposed to -- no unwanted ZFS pool info is found.

Now repeat that for all ada0p? and make sure only the slice that's
part of your pool shows ZFS labels and only for one pool.

Think a bit about how bootloader figures out how your pool is built.
All it has access to is a raw disk and partition table. So in order to
find the pool it probes raw disk and all partitions trying to find ZFS
labels and then uses info in those labels to figure out pool
configuration. If bootloader finds stale ZFS labels left from a
previous use of the disk in some other pool, it would potentially mess
up detection of your real boot pool.

--Artem


More information about the freebsd-fs mailing list