Recover ZFS pool after re-initialization

krad kraduk at gmail.com
Thu Jun 5 08:35:04 UTC 2014


try and import -D before you do anything else, you might be lucky, very
lucky


On 1 June 2014 16:36, Steven Hartland <killing at multiplay.co.uk> wrote:

> ----- Original Message ----- From: "Pavlo Greenberg" <dog at virtual.org.ua>
> To: <freebsd-fs at freebsd.org>
> Sent: Sunday, June 01, 2014 3:21 PM
> Subject: Recover ZFS pool after re-initialization
>
>
>
>  Hello.
>> Is it possible to recover the data from a pool, that was accidentally
>> destroyed? I erroneously ran the wrong command from my bash history
>> and instead of "zpool import" did "zpool create". I didn't write
>> anything on this pool after that. The history of the pool is empty now
>> and I can't roll-back what I did.
>> Is there any way to bring the previous pool back or even somehow
>> restore the data it contained? Peculiar situation, I know, but
>> sometimes the most foolish errors are the most fatal.
>>
>
> I would guess not if you did a full create, but I'm very suprised that
> worked as without specifying the additional device parameters the create
> should fail so its rather hard to confuse the two.
>
> In addition I would also expect create to check for an already existing
> pool on the devices before allowing you to proceed. If thats not the case
> it would be a worth while check to add IMO.
>
>    Regards
>    Steve
>
> _______________________________________________
> freebsd-fs at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-fs
> To unsubscribe, send any mail to "freebsd-fs-unsubscribe at freebsd.org"
>


More information about the freebsd-fs mailing list