Date: Sun, 1 Jun 2014 16:36:36 +0100 From: "Steven Hartland" <killing@multiplay.co.uk> To: "Pavlo Greenberg" <dog@virtual.org.ua>, <freebsd-fs@freebsd.org> Subject: Re: Recover ZFS pool after re-initialization Message-ID: <4F8352CFDC8643D0AB6F999E4A87847D@multiplay.co.uk> References: <CAPGd3h09Kdp3=jhiz2FdDbH9_w8RN8FV-NY0sPDoe==pwC7nMQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
----- Original Message ----- From: "Pavlo Greenberg" <dog@virtual.org.ua> To: <freebsd-fs@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F8352CFDC8643D0AB6F999E4A87847D>