From owner-freebsd-current@FreeBSD.ORG Tue Nov 17 17:30:02 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 ECFAB10656C1 for ; Tue, 17 Nov 2009 17:30:02 +0000 (UTC) (envelope-from rnoland@FreeBSD.org) Received: from gizmo.2hip.net (gizmo.2hip.net [64.74.207.195]) by mx1.freebsd.org (Postfix) with ESMTP id 9A42D8FC1A for ; Tue, 17 Nov 2009 17:30:02 +0000 (UTC) Received: from [192.168.1.4] (adsl-241-172-215.bna.bellsouth.net [74.241.172.215]) (authenticated bits=0) by gizmo.2hip.net (8.14.3/8.14.3) with ESMTP id nAHHTrOb010428 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Tue, 17 Nov 2009 12:29:56 -0500 (EST) (envelope-from rnoland@FreeBSD.org) From: Robert Noland To: Jeremy Thornhill In-Reply-To: References: <1DE2E5E5-B6A4-4870-A346-ABC1CD20EE34@lassitu.de> Content-Type: text/plain Organization: FreeBSD Date: Tue, 17 Nov 2009 11:29:47 -0600 Message-Id: <1258478987.2303.62.camel@balrog.2hip.net> Mime-Version: 1.0 X-Mailer: Evolution 2.26.3 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_PBL, RDNS_DYNAMIC,SPF_SOFTFAIL autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on gizmo.2hip.net Cc: freebsd-current@freebsd.org, Stefan Bethke 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 17:30:03 -0000 On Tue, 2009-11-17 at 07:54 -0500, Jeremy Thornhill wrote: > 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. GEOM requires both copies to be present and identical, IIRC. Since the pool fills the device, there'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 blocks. I'm not sure what Solaris will make of the pool after this, though: > > # dd if=/dev/zero of=/dev/da0 count=34 > > > > However, I'd expect this to have no effect on zpools ability to import the 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 Sigh, yes... you have now trashed you primary gpt table. PLEASE do not go using dd to write stuff to your disks unless you a) know what your doing or b) don't care if you trash your disks... > 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). If is important... I can help you restore the primary header... robert. > Thanks, > Jeremy > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" -- Robert Noland FreeBSD