From owner-freebsd-fs@freebsd.org Thu Jan 25 16:31:43 2018 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 79CE1EBD9E2 for ; Thu, 25 Jan 2018 16:31:43 +0000 (UTC) (envelope-from borjam@sarenet.es) Received: from cu01176b.smtpx.saremail.com (cu01176b.smtpx.saremail.com [195.16.151.151]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 12068854B5 for ; Thu, 25 Jan 2018 16:31:42 +0000 (UTC) (envelope-from borjam@sarenet.es) Received: from [172.16.8.47] (unknown [192.148.167.11]) by proxypop01.sare.net (Postfix) with ESMTPA id ECD5E9DDDBC; Thu, 25 Jan 2018 17:23:09 +0100 (CET) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 11.2 \(3445.5.20\)) Subject: Re: Academic exercise: trying to recover a corrupted pool From: Borja Marcos In-Reply-To: <19f67e4f-7df8-6184-e396-aa8cde44eb83@panic.pl> Date: Thu, 25 Jan 2018 17:23:08 +0100 Cc: freebsd-fs@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <42FE9724-AE6E-46B4-8826-FB31876ED698@sarenet.es> References: <19f67e4f-7df8-6184-e396-aa8cde44eb83@panic.pl> To: Mateusz Kwiatkowski X-Mailer: Apple Mail (2.3445.5.20) X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Jan 2018 16:31:43 -0000 > On 16 Jan 2018, at 14:57, Mateusz Kwiatkowski wrote: >=20 > On 01/08/2018 03:25 PM, Borja Marcos wrote: >> Hi, >> ONLY AS AN ACADEMIC EXERCISE, WARNING :) >> I have a broken ZFS pool and I=E2=80=99m wondering wether it should = be readable. The pool was made with four >> apparently troublesome OCZ SSD drives pulled from other systems. They = are connected to a LSI2008 adapter. >> The pool was created as a raidz2, so it=E2=80=99s supposed to survive = the loss of two drives. It has lost two of them >> and I am unable to import it. >> I have lost no useful data, I was using it just for testing. Now it = has become an interesting study subject though :) >> Any ideas? I have tried to recover even doing the =E2=80=9Cradical = thing=E2=80=9D (zdb -Z -AAA -e -p /dev poolname). No success. >> Again, I am just curious. >> Thanks! >=20 > Few years ago I made similar exercise with pool broken by some ZFS on = Linux bug. After many unsuccessful attempts to import the pool I came up = with an idea to read data without importing the pool. > Here's the script: https://gitlab.com/kwiat/zfs-recovery >=20 > The code is in no way effective nor beautiful, but I learned a lot = about ZFS when I was working on it. :-) Sorry for the very belated answer. It didn=E2=80=99t work either. I = guess that a SSD failure can be especially catastrophic even though I tried to read the drivers with dd and I got no errors. Borja.