From owner-freebsd-questions@FreeBSD.ORG Wed Feb 20 04:29:02 2013 Return-Path: Delivered-To: questions@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id A2517F57 for ; Wed, 20 Feb 2013 04:29:02 +0000 (UTC) (envelope-from cyberleo@cyberleo.net) Received: from paka.cyberleo.net (mtumishi.cyberleo.net [216.226.128.201]) by mx1.freebsd.org (Postfix) with ESMTP id 7A280F29 for ; Wed, 20 Feb 2013 04:29:02 +0000 (UTC) Received: from [172.16.44.4] (den.cyberleo.net [216.80.73.130]) by paka.cyberleo.net (Postfix) with ESMTPSA id 8B13911C1D3; Tue, 19 Feb 2013 16:20:58 -0500 (EST) Message-ID: <5123ECBA.6030902@cyberleo.net> Date: Tue, 19 Feb 2013 15:20:58 -0600 From: CyberLeo Kitsana User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130216 Thunderbird/17.0.2 MIME-Version: 1.0 To: Jonni Nakari Subject: Re: ZFS pool data recovery References: <5122355E.3040506@egarden.fi> In-Reply-To: <5122355E.3040506@egarden.fi> X-Enigmail-Version: 1.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: questions@FreeBSD.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Feb 2013 04:29:02 -0000 On 02/18/2013 08:06 AM, Jonni Nakari wrote: > It seems, that while testing suspend to RAM on my machine by running > "acpiconf -s 3" I managed to break a RaidZ zpool. The machine went to > sleep fine, but after waking up commands (e.g. reboot) reported I/O > error. When booting after a hard reset the machine fails to mount the > root filesystem: > > Trying to mount root from zfs:/vault/root []... > Mounting from zfs:/vault/root failed with error 5. > > I booted the system from FreeBSD-9.1-RELEASE-amd64-memstick.img and > tried to import the zpool in the shell: > # zpool import -f vault > cannot import 'vault': I/O error > Destroy and re-create the pool from > a backup source. > > Command "zpool import -nfF vault" from the memstick system gives no > output. (I thought it should always give some output?) > > What should I try next to repair the zpool or recover the data? I > started "zpool import -nfFX vault" but it seems to take quite long. > > Some more information about my system: > zpool vault consists of 5 block devices: > whole disks: ada1, ada2, ada3 > cache: ada0s1e > log: ada0s1d > > The system boots from a UFS filesystem ada0s1a. The zpool and rest of > the system was created with FreeBSD 9.1-RELEASE. Does dmesg or syslog show anything with regards to the supposed I/O errors? Do the disks pass a read-only scan or 'long' SMART test? While unlikely, it is possible that one of the devices picked that precise moment to fail. It's also possible a disk did not appreciate being put to sleep; I've had several SSDs that simply stopped responding under such conditions, prompting warranty replacement. -- Fuzzy love, -CyberLeo Furry Peace! - http://www.fur.com/peace/