Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Dec 2013 14:04:18 -0800
From:      Artem Belevich <art@freebsd.org>
To:        Florent Peterschmitt <florent@peterschmitt.fr>
Cc:        freebsd-fs <freebsd-fs@freebsd.org>, freebsd-stable stable <freebsd-stable@freebsd.org>, Andriy Gapon <avg@freebsd.org>
Subject:   Re: 10.0-BETA4 (upgraded from 9.2-RELEASE) zpool upgrade -> boot failure
Message-ID:  <CAFqOu6jUqy6Y4AD3D32ZPsVS59GJMWAH286bne6T3roMK19Ofw@mail.gmail.com>
In-Reply-To: <52AA26DA.30809@peterschmitt.fr>
References:  <52A6EB67.3000103@peterschmitt.fr> <52A99917.2050200@FreeBSD.org> <52A9AA45.2000907@peterschmitt.fr> <52A9ABEF.8080509@FreeBSD.org> <CAFqOu6g1ih3Z70Z4gip0BowmSAJ6dE4X8WgR0au1Rx5udmtZXw@mail.gmail.com> <52AA26DA.30809@peterschmitt.fr>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Dec 12, 2013 at 1:12 PM, Florent Peterschmitt
<florent@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=85 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFqOu6jUqy6Y4AD3D32ZPsVS59GJMWAH286bne6T3roMK19Ofw>