Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Apr 2013 13:53:40 -0500
From:      Adam Vande More <amvandemore@gmail.com>
To:        Beeblebrox <zaphod@berentweb.com>
Cc:        freebsd-fs <freebsd-fs@freebsd.org>
Subject:   Re: [ZFS] recover destroyed zpool with ZDB
Message-ID:  <CA%2BtpaK24z2uF7yWp1wmJjYhN4ZFydqRRVSfKNGNQbhmf-P8%2BDw@mail.gmail.com>
In-Reply-To: <1366221907838-5804517.post@n5.nabble.com>
References:  <1366221907838-5804517.post@n5.nabble.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Apr 17, 2013 at 1:05 PM, Beeblebrox <zaphod@berentweb.com> wrote:

> I destroyed my zpool but forgot to take the tar backup of /home folder.
> This
> was a single-HDD pool and I first did 'zpool destroy' then 'gpart destroy'
> before realizing my error.
>
> Since then, I have manually re-created the GPT partitions to the size they
> were (testdisk did not correctly identify the geom) and there have been no
> writes to the HDD.
>
> After a lengthly discussion here:
>
> http://freebsd.1045724.n5.nabble.com/ZFS-recover-destroyed-zpool-what-are-the-available-options-td5800299.html
> and getting no result with:
> # zpool import -D -f -R /bsdr -N -F -X 12018916494219117471 rescue =>
> cannot import 'bsdr' as 'rescue': no such pool or dataset. Destroy and
> re-create the pool from a backup source.
>
> I sent an email to an expert and was advised to look into zdb and the -F &
> -X flags. Good news and bad news there. '# zdb -e -F 12018916494219117471'
> gives a lot of output but this is conflicting because although there are no
> errors, %used is showing zero:
>

One thing is that you keep using zpool import -D when the pool isn't in a
destroyed state.

-- 
Adam Vande More



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2BtpaK24z2uF7yWp1wmJjYhN4ZFydqRRVSfKNGNQbhmf-P8%2BDw>