Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Nov 2009 07:54:47 -0500
From:      Jeremy Thornhill <jeremy.thornhill@gmail.com>
To:        Stefan Bethke <stb@lassitu.de>
Cc:        freebsd-current@freebsd.org
Subject:   Re: "corrupt or invalid GPT" when attempting to import Solaris ZFS  pool (8.0-RC3)
Message-ID:  <b77635950911170454w78ffae07t12ef27c1634ccbe9@mail.gmail.com>
In-Reply-To: <1DE2E5E5-B6A4-4870-A346-ABC1CD20EE34@lassitu.de>
References:  <b77635950911162010t511ca570v32880acb5e3e25a3@mail.gmail.com> <1DE2E5E5-B6A4-4870-A346-ABC1CD20EE34@lassitu.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Nov 17, 2009 at 1:57 AM, Stefan Bethke <stb@lassitu.de> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b77635950911170454w78ffae07t12ef27c1634ccbe9>