From owner-freebsd-fs@FreeBSD.ORG Sun Jun 1 15:44:26 2014 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 372627E1 for ; Sun, 1 Jun 2014 15:44:26 +0000 (UTC) Received: from smtp1.multiplay.co.uk (smtp1.multiplay.co.uk [85.236.96.35]) by mx1.freebsd.org (Postfix) with ESMTP id EFD5E26C7 for ; Sun, 1 Jun 2014 15:44:25 +0000 (UTC) Received: by smtp1.multiplay.co.uk (Postfix, from userid 65534) id 3B88020E7088B; Sun, 1 Jun 2014 15:36:36 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp1.multiplay.co.uk X-Spam-Level: ** X-Spam-Status: No, score=2.3 required=8.0 tests=AWL,BAYES_00,DOS_OE_TO_MX, FSL_HELO_NON_FQDN_1,HELO_NO_DOMAIN,RDNS_DYNAMIC,STOX_REPLY_TYPE autolearn=no version=3.3.1 Received: from r2d2 (82-69-141-170.dsl.in-addr.zen.co.uk [82.69.141.170]) by smtp1.multiplay.co.uk (Postfix) with ESMTPS id EC4A420E70886; Sun, 1 Jun 2014 15:36:31 +0000 (UTC) Message-ID: <4F8352CFDC8643D0AB6F999E4A87847D@multiplay.co.uk> From: "Steven Hartland" To: "Pavlo Greenberg" , References: Subject: Re: Recover ZFS pool after re-initialization Date: Sun, 1 Jun 2014 16:36:36 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Jun 2014 15:44:26 -0000 ----- Original Message ----- From: "Pavlo Greenberg" To: 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