From owner-freebsd-current@FreeBSD.ORG Tue Nov 17 12:54:50 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 057AE1065679 for ; Tue, 17 Nov 2009 12:54:50 +0000 (UTC) (envelope-from jeremy.thornhill@gmail.com) Received: from mail-bw0-f220.google.com (mail-bw0-f220.google.com [209.85.218.220]) by mx1.freebsd.org (Postfix) with ESMTP id 88B668FC1A for ; Tue, 17 Nov 2009 12:54:48 +0000 (UTC) Received: by bwz20 with SMTP id 20so6877671bwz.14 for ; Tue, 17 Nov 2009 04:54:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=5WEg+5sMKIFJad927oj1CooatqZi5TzP1cOFeaPfADQ=; b=L8jlQ5lXckOzS93p8B9chMQDavtuPJiPMOWuwDmCnuu+YgMoQJM4k3/YPsc4PppCI2 mYWrrAk05oI3xrJmzemQh7e5XQG9/bD1nWJhfcyp4n1p2IgeweMUR7gL7uK/qDoHx+7f chm/Zy+RLy9lefHxHuF+NDH/vtC4N9N4nKjA4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=WQ8RvrpEi7CgCb5QQOSG37qyW1ckfIw7WdV5nbhHC0yo0hZtyyx6zp7dJpwQMgBFjl 0zWWyO00RC7gDpOF/BOf1y2gXYnbaGq5DH3+Txb5OvTMBgtnqk44PFg/ScS2B3MADuVb meTjA82MW0l3KERfoxJBa7dWmlZrw2VgAi2Xw= MIME-Version: 1.0 Received: by 10.216.86.129 with SMTP id w1mr1696891wee.145.1258462487441; Tue, 17 Nov 2009 04:54:47 -0800 (PST) In-Reply-To: <1DE2E5E5-B6A4-4870-A346-ABC1CD20EE34@lassitu.de> References: <1DE2E5E5-B6A4-4870-A346-ABC1CD20EE34@lassitu.de> Date: Tue, 17 Nov 2009 07:54:47 -0500 Message-ID: From: Jeremy Thornhill To: Stefan Bethke Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-current@freebsd.org Subject: Re: "corrupt or invalid GPT" when attempting to import Solaris ZFS pool (8.0-RC3) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Nov 2009 12:54:50 -0000 On Tue, Nov 17, 2009 at 1:57 AM, Stefan Bethke wrote: > > What error are you getting from zpool import? > Interestingly enough, no error. The pool itself just doesn't seem to exist: $ zpool import freeagent cannot import 'freeagent': no such pool available > I believe the GEOM error is due to Solaris adding the GPT partition table= to the start of the device, but not the end. =A0GEOM requires both copies = to be present and identical, IIRC. =A0Since the pool fills the device, ther= e's no space at the end, so adding the second copy is not an option. > > You could try destroying the first GPT copy by zeroing the first 34 block= s. =A0I'm not sure what Solaris will make of the pool after this, though: > # dd if=3D/dev/zero of=3D/dev/da0 count=3D34 > > However, I'd expect this to have no effect on zpools ability to import th= e pool. > I attempted this and, as you expected, I was still unable to import the pool. It still reports 'no such pool', although the GEOM messages *seem* to be gone. Taking this drive back to my Solaris system now results in the following output in dmesg when it is attached (though it still seems to function): primary label corrupt; using backup Oddly the disk doesn't appear in the Solaris 'format' utility so I can't restore the label from backup (or at least, I don't know how to). Thanks, Jeremy