From owner-freebsd-fs@FreeBSD.ORG Wed Dec 26 23:15:27 2007 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 49FF416A417 for ; Wed, 26 Dec 2007 23:15:27 +0000 (UTC) (envelope-from ss.alert@online.no) Received: from mail44.e.nsc.no (mail44.e.nsc.no [193.213.115.44]) by mx1.freebsd.org (Postfix) with ESMTP id 7B55B13C478 for ; Wed, 26 Dec 2007 23:15:26 +0000 (UTC) (envelope-from ss.alert@online.no) Received: from basilisk (ti0034a340-0801.bb.online.no [88.90.3.33]) by mail44.nsc.no (8.13.8/8.13.5) with ESMTP id lBQMUgaD024165 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Wed, 26 Dec 2007 23:30:43 +0100 (MET) Message-Id: <28DDC893-1432-4F0B-95D4-AA6049CD5FB2@online.no> From: Sverre Svenningsen To: Barry Pederson In-Reply-To: <4772C9EE.8090407@barryp.org> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v915) Date: Wed, 26 Dec 2007 23:30:42 +0100 References: <474546F5.2000007@fsn.hu> <20071123183420.GA12811@garage.freebsd.pl> <4772C9EE.8090407@barryp.org> X-Mailer: Apple Mail (2.915) Cc: freebsd-fs@freebsd.org Subject: Re: ZFS and FAULTED devices (corrupted data), can't make the pool ONLINE again X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Dec 2007 23:15:27 -0000 On Dec 26, 2007, at 22:38 , Barry Pederson wrote: > Pawel Jakub Dawidek wrote: >> On Thu, Nov 22, 2007 at 10:08:05AM +0100, Attila Nagy wrote: >>> Hello, >>> >>> FreeBSD RELENG_7, x86, a terrible disk array, called Promise >>> RM-8000 with 8 disks on an ahc. >>> The pool is a RAIDZ2. >>> Tomorrow the array went crazy (its firmware is a total crap), so I >>> had to reboot both the machine and the disk array. >>> >> You should use: >> # zpool replace people da3 da3 >> but to do it, you need this patch, which was not yet MFCed: >> http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/contrib/opensolaris/uts/common/fs/zfs/vdev.c.diff?r1=1.3;r2=1.4 > > I had a drive in a raidz2 pool fail, and wasn't able to replace it > until rebuilding the kernel (7.0beta3) with the above patch. I'm > just mentioning this as a worksforme kind of thing. > > I'm rebuilding today with RELENG_7_0 and saw that the patch still > applied cleanly, so I'm assuming it's still necessary. I hope it or > something similar gets merged in. Or at least maybe the ZFS wiki > could have a list of recommended patches? > > Barry > Doesn't it work even when doing a "zfs offline people da3" first? I installed a 7.0-beta in a Parallels VM just to torture test the raidz recreation (since my real hardware is running linux+evms right now) and i got the error that the device was in use, until i issued the offline command FIRST and then told it to replace the offlined disk with the same disk. This should probably be emphasized in the zfs crash course documentation :) -Sverre