From owner-freebsd-stable@FreeBSD.ORG Wed Aug 7 10:52:57 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx2.freebsd.org (mx2.freebsd.org [IPv6:2001:1900:2254:206a::19:2]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id BE6C76D0; Wed, 7 Aug 2013 10:52:57 +0000 (UTC) (envelope-from ae@FreeBSD.org) Received: from butcher-nb.yandex.net (hub.freebsd.org [IPv6:2001:1900:2254:206c::16:88]) by mx2.freebsd.org (Postfix) with ESMTP id 8D7A04D24; Wed, 7 Aug 2013 10:52:56 +0000 (UTC) Message-ID: <52022633.4000507@FreeBSD.org> Date: Wed, 07 Aug 2013 14:49:23 +0400 From: "Andrey V. Elsukov" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: J David Subject: Re: Problem with zfsloader on 9.2-BETA2 References: <51FD5709.7050306@FreeBSD.org> <5200C7A3.3070403@yandex.ru> In-Reply-To: X-Enigmail-Version: 1.4.6 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Cc: freebsd-stable@freebsd.org, Andriy Gapon X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Aug 2013 10:52:57 -0000 On 07.08.2013 01:26, J David wrote: > On Tue, Aug 6, 2013 at 5:53 AM, Andrey V. Elsukov 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