Problem with zfsloader on 9.2-BETA2

J David j.david.lists at gmail.com
Tue Aug 6 21:26:56 UTC 2013


On Tue, Aug 6, 2013 at 5:53 AM, Andrey V. Elsukov <bu7cher at 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.

This is a raidz2, so I can certainly offline the disks one by one to
rebuild the partition tables, though that'll take ages; the I/O
performance of this system is awful.  But I do wonder why the
zfsloader from 8.4 can handle whatever's going on in there and 9.2
can't.

Thanks!


More information about the freebsd-stable mailing list