From owner-freebsd-stable@FreeBSD.ORG Mon Jun 29 15:01:07 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2E01210656CD for ; Mon, 29 Jun 2009 15:01:07 +0000 (UTC) (envelope-from marius@nuenneri.ch) Received: from mail-fx0-f218.google.com (mail-fx0-f218.google.com [209.85.220.218]) by mx1.freebsd.org (Postfix) with ESMTP id BC79F8FC1F for ; Mon, 29 Jun 2009 15:01:06 +0000 (UTC) (envelope-from marius@nuenneri.ch) Received: by fxm18 with SMTP id 18so1935191fxm.43 for ; Mon, 29 Jun 2009 08:01:05 -0700 (PDT) MIME-Version: 1.0 Received: by 10.102.228.10 with SMTP id a10mr1960807muh.16.1246287665689; Mon, 29 Jun 2009 08:01:05 -0700 (PDT) In-Reply-To: <20090629145055.GF31011@hugo10.ka.punkt.de> References: <20090629094359.GB24054@hugo10.ka.punkt.de> <20090629114610.GA28731@hugo10.ka.punkt.de> <20090629141437.GD31011@hugo10.ka.punkt.de> <20090629145055.GF31011@hugo10.ka.punkt.de> Date: Mon, 29 Jun 2009 17:01:05 +0200 Message-ID: From: =?ISO-8859-1?Q?Marius_N=FCnnerich?= To: "Patrick M. Hausen" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: FreeBSD Stable Mailing List Subject: Re: Zpool on raw disk and weird GEOM complaint X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Jun 2009 15:01:07 -0000 On Mon, Jun 29, 2009 at 16:50, Patrick M. Hausen wrote: > Hi! > > On Mon, Jun 29, 2009 at 04:41:14PM +0200, Marius N=FCnnerich wrote: >> OK, there is the GPT signature which reads "EFI PART" at offset 0x200. >> What was on the disk before? > > Nothing. Factory new. > >> I think it should look different. There is a document from sun which >> explains the ZFS ondisk format and and I don't remember it to look >> like a MBR and GPT ;) Sorry, I don't have the time right now to dig >> through it. > > As I found with Google, ZFS does put a EFI/GPT label on the > disk if you give it an entire disk as a vdev. Looks like > it's not understood by GEOM_PART_GPT. Hmm, it's rather stupid to put a GPT entry in the second sector but not the corresponding one in the last sector. So our GPT implementation has the right to think this GPT is broken. As far as I understand the ondisk spec from sun there is no space for the corresponding one in the last sector (it's part of the uberblock array). I just checked my ZFS mirror it has all zeros in the first few sectors on both disks. It was created with zfs version 6 in freebsd.