From owner-freebsd-stable@FreeBSD.ORG Mon Jul 19 16:33:30 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 337991065677 for ; Mon, 19 Jul 2010 16:33:30 +0000 (UTC) (envelope-from garrettmoore@gmail.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id D2F928FC26 for ; Mon, 19 Jul 2010 16:33:29 +0000 (UTC) Received: by gyd8 with SMTP id 8so2765054gyd.13 for ; Mon, 19 Jul 2010 09:33:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=o9qIYwliuFENc2I6rMUbX53w/4pIQ6pWmnAkpk9SP3Y=; b=cvGlNWa1OfGGjJiuUxYiJv2PbORrlkx9QyYmIk9uv4DaY9v24Z/fzuKfXS6G1ZWseG 9EnX43fmmzSLaJEUsvHwNfppu/B7vRHiKCNSzAbusPTkmdgSWqnI4CM3lDWP/lxz5H5J F5flUFWg5n1WUdTdS1tkZlGbaPsiaH+lRTUvo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=qWvJfSV+Ozo8fwFVlqLH65EUICr3ZF0Bqp2tw+FtS63Q/umHZ7MN8o/ImgHNjlsVFq ClOOym0yEqbrAndeZ/ZqoumyjdZ25vf1UXidKwRuXgWxjAOwg2/a4Hpf0UABYlYTb/2F Qwi9f6pxjr93JvMky9UCwshcqci+PEs5/MnAM= MIME-Version: 1.0 Received: by 10.151.116.1 with SMTP id t1mr4834815ybm.329.1279557208896; Mon, 19 Jul 2010 09:33:28 -0700 (PDT) Received: by 10.231.117.72 with HTTP; Mon, 19 Jul 2010 09:33:28 -0700 (PDT) In-Reply-To: References: Date: Mon, 19 Jul 2010 12:33:28 -0400 Message-ID: From: Garrett Moore To: Adam Vande More Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-stable Subject: Re: Problems replacing failing drive in ZFS pool X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jul 2010 16:33:30 -0000 I forgot to ask in the last email, is there a way to convert from Z1 to Z2 without losing data? I actually have far more storage than I need so I'd consider going to Z2. On Mon, Jul 19, 2010 at 12:18 PM, Adam Vande More wrote: > On Mon, Jul 19, 2010 at 10:56 AM, Garrett Moore wrote: > >> So you think it's because when I switch from the old disk to the new disk, >> ZFS doesn't realize the disk has changed, and thinks the data is just >> corrupt now? Even if that happens, shouldn't the pool still be available, >> since it's RAIDZ1 and only one disk has gone away? >> >> I don't have / on ZFS; I'm only using it as a 'data' partition, so I >> should >> be able to try your suggestion. My only concern: is there any risk of >> trashing my pool if I try your instructions? Everything I've done so far, >> even when told "insufficient replicas / corrupt data", has not cost me any >> data as long as I switch back to the original (dying) drive. If I mix in >> export/import statements which might 'touch' the pool, is there a chance >> it >> will choke and trash my data? >> > > I'm not sure what's going on in your case, but I have cron'd a zpool scrub > for my pool on weekly basis to avoid this. I run a / zfs mirror and one day > I could no longer boot and saw the dread 'insufficient replicas'. I > eventually got it when disk started to work again briefly then did a > snapshot/send offsite, redid system with new install & disk then restored > data. The export/import shouldn't hurt, I used that when booting off an > MFSBSD cd and imported the zpool to send from there. Perhaps you might want > to consider RAIDZ2 with all those disks. > > -- > Adam Vande More >