From owner-freebsd-fs@FreeBSD.ORG Thu Feb 5 19:12:33 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 16CB56C6 for ; Thu, 5 Feb 2015 19:12:33 +0000 (UTC) Received: from webmail2.jnielsen.net (webmail2.jnielsen.net [50.114.224.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "webmail2.jnielsen.net", Issuer "freebsdsolutions.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id EA2A5BB9 for ; Thu, 5 Feb 2015 19:12:32 +0000 (UTC) Received: from [10.10.1.196] (office.betterlinux.com [199.58.199.60]) (authenticated bits=0) by webmail2.jnielsen.net (8.15.1/8.14.9) with ESMTPSA id t15JCMC2069226 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 5 Feb 2015 12:12:25 -0700 (MST) (envelope-from lists@jnielsen.net) X-Authentication-Warning: webmail2.jnielsen.net: Host office.betterlinux.com [199.58.199.60] claimed to be [10.10.1.196] Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) Subject: Re: Advice on disk media error recovery From: John Nielsen In-Reply-To: Date: Thu, 5 Feb 2015 12:12:22 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Bengt Ahlgren X-Mailer: Apple Mail (2.2070.6) Cc: freebsd-fs@freebsd.org X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Feb 2015 19:12:33 -0000 On Feb 5, 2015, at 11:20 AM, Bengt Ahlgren wrote: > I have a five-disk non-redundant zpool where two disks have media > errors. One with five sectors unreadable and the other with three > sectors. >=20 > I would like to recover as much data as possible from these disks. = What > are my possible options? (And, no, there is no backup.) (Aside from learn to always have backups and where feasible to use = redundant disks...) > Copying the files that can be read from the pool to a different pool = on > other disks? That would be a good place to start so you at least have backups of most = things. You could use rsync but you would lose and ZFS dataset structure = and attributes. You could add disks to the system and do "zpool replace". You could make a new (hopefully redundant) pool and try "zpool send | = zpool recv". I don't know firsthand if that would cope with errors. > Making block-copy clones of the faulty disks and removing files that = had > the media errors? This might be a last resort. You should export the zpool before you = start.