ZFS trashed by bad import
Andriy Gapon
avg at FreeBSD.org
Sat Feb 17 17:50:25 UTC 2018
On 17/02/2018 18:33, James Phillips wrote:
>
> --------------------------------------------
> On Sat, 2/17/18, Andriy Gapon <avg at FreeBSD.org> wrote:
>
> Subject: Re: ZFS trashed by bad import
> To: "James Phillips" <anti_spam256 at yahoo.ca>
> Received: Saturday, February 17, 2018, 2:46 PM
>
> On 17/02/2018 09:41, James
> Phillips via freebsd-fs wrote:
> > # zpool import ->
> shows list of available pools, including degraded striped
> mirror.
> > # zpool import -f
> 8255478166520290766 granny
> > # zpool
> status (any zpool command cause same error):
> > internal error: failed to
> initialize ZFS library
>
> Not sure if this is what happened, but it looks
> like the pool might have a
> filesystem with
> mountpoint set to / and it got mounted over the real / after
> import.
> So, you might have a mismatch
> between userland and kernel that causes the
> further issues.
>
> I did import by number because the zroot label conflicted.
This is not directly related.
It's better to import a new pool using -R (altroot) option, so that it does not
interfere with the already mounted filesystems and you can examine and modify it.
--
Andriy Gapon
More information about the freebsd-fs
mailing list