Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 07 Aug 2013 14:49:23 +0400
From:      "Andrey V. Elsukov" <ae@FreeBSD.org>
To:        J David <j.david.lists@gmail.com>
Cc:        freebsd-stable@freebsd.org, Andriy Gapon <avg@freebsd.org>
Subject:   Re: Problem with zfsloader on 9.2-BETA2
Message-ID:  <52022633.4000507@FreeBSD.org>
In-Reply-To: <CABXB=RRU9f%2BFmSV=SCmKoaEjhpDptkD5i-v0YVm=gYBEH63Scw@mail.gmail.com>
References:  <CABXB=RRhVDdKCidwnrji1qR41Rx7uvs2Lx1ZPF1FREOHcnm5bg@mail.gmail.com> <51FD5709.7050306@FreeBSD.org> <CABXB=RS4HSmtPHrw%2BcniTaL_63JS5fA3OcB91y-mCN1DmUKs5Q@mail.gmail.com> <5200C7A3.3070403@yandex.ru> <CABXB=RRU9f%2BFmSV=SCmKoaEjhpDptkD5i-v0YVm=gYBEH63Scw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 07.08.2013 01:26, J David wrote:
> On Tue, Aug 6, 2013 at 5:53 AM, Andrey V. Elsukov <bu7cher@yandex.ru> wrote:
>> looking to your `zfs status` output and this, we can see, that GPT
>> wasn't detected on most of disks. Can you try to boot with this loader:
>> http://people.freebsd.org/~ae/zfsloader
>> It's from 10-CURRENT and was build with -DPART_DEBUG, so you will see
>> some additional debug messages while booting.
> 
> OK, some of the output scrolls too fast… since it can't load the
> filesystem it doesn't know to copy to serial console.
> 
> But looking at the tail end, it's a lot of this:
> 
> gpt_checkhdr: invalid entry size or number of entries
> gpt_checkhdr: invalid entry size or number of entries
> ptable_open: PMBR detected
> 
> At least five sets of those, so I assume they are for at least disk2 -
> disk 7.  Unfortunately I can't catch the output for disks 1 and 2,
> which are the only two bootable disks. :(
> 
> Here's the bootparttest output:
> 
> $ sudo ./bootparttest da0
> GEOM provider "da0" opened
> Mediasize: 32296140800 Bytes (63078400 sectors)
> Sectorsize: 512 Bytes
> da0: read 1 blocks from the offset 0 [+0]
> da0: read 1 blocks from the offset 1 [+0]
> ptable_open: PMBR detected
> da0: read 1 blocks from the offset 1 [+0]
> da0: read 32 blocks from the offset 2 [+0]
> da0: read 1 blocks from the offset 63078399 [+0]
> ptable_gptread: new GPT partition added
> ptable_gptread: new GPT partition added
> ptable_gptread: new GPT partition added
> Partition table detected: GPT
>   da0p1: FreeBSD boot              64k
>   da0p2: FreeBSD swap              2048M
>   da0p3: FreeBSD ZFS               28G
> GEOM provider "da1" opened
> Mediasize: 32000000000 Bytes (62500000 sectors)
> Sectorsize: 512 Bytes
> da1: read 1 blocks from the offset 0 [+0]
> da1: read 1 blocks from the offset 1 [+0]
> ptable_open: PMBR detected
> da1: read 1 blocks from the offset 1 [+0]
> da1: read 32 blocks from the offset 2 [+0]
> da1: read 1 blocks from the offset 62499999 [+0]
> ptable_gptread: new GPT partition added
> ptable_gptread: new GPT partition added
> ptable_gptread: new GPT partition added
> Partition table detected: GPT
>   da1p1: FreeBSD boot              64k
>   da1p2: FreeBSD swap              2048M
>   da1p3: FreeBSD ZFS               27G
> $ sudo ./bootparttest da2
> GEOM provider "da2" opened
> Mediasize: 1000204886016 Bytes (1953525168 sectors)
> Sectorsize: 512 Bytes
> da2: read 1 blocks from the offset 0 [+0]
> da2: read 1 blocks from the offset 1 [+0]
> ptable_open: PMBR detected
> da2: read 1 blocks from the offset 1 [+0]
> gpt_checkhdr: invalid entry size or number of entries
> da2: read 1 blocks from the offset 1953525167 [+0]
> gpt_checkhdr: invalid entry size or number of entries
> Partition table detected: None
> 
> (Output for da3 - da7 are identical to da2.)
> 
> So I'm guessing something doesn't like the metadata on the data drives.

Hi,

can you please dump first 34 blocks from da2 and send to me?
i.e.,
 # dd if=/dev/da2 of=./gpt count=34

Also, it is interesting, what tool did you use for partitioning?

-- 
WBR, Andrey V. Elsukov



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