From owner-freebsd-stable@FreeBSD.ORG Mon Dec 6 11:08:10 2010 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1BE6F1065698 for ; Mon, 6 Dec 2010 11:08:10 +0000 (UTC) (envelope-from lordcow@lordcow.org) Received: from lordcow.org (lordcow.org [41.203.5.188]) by mx1.freebsd.org (Postfix) with ESMTP id 400468FC20 for ; Mon, 6 Dec 2010 11:08:08 +0000 (UTC) Received: from lordcow.org (localhost [127.0.0.1]) by lordcow.org (8.14.4/8.14.4) with ESMTP id oB6B80LR083319 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-SHA bits=256 verify=NO) for ; Mon, 6 Dec 2010 13:08:00 +0200 (SAST) (envelope-from lordcow@lordcow.org) Received: (from lordcow@localhost) by lordcow.org (8.14.4/8.14.4/Submit) id oB6B7tpF083318 for stable@freebsd.org; Mon, 6 Dec 2010 13:07:55 +0200 (SAST) (envelope-from lordcow) Date: Mon, 6 Dec 2010 13:07:54 +0200 From: Gareth de Vaux To: stable@freebsd.org Message-ID: <20101206110754.GA82394@lordcow.org> References: <20101127132249.GA80611@lordcow.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20101127132249.GA80611@lordcow.org> User-Agent: Mutt/1.4.2.3i X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on lordcow.org Cc: Subject: Re: ZFS raidz recovery 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, 06 Dec 2010 11:08:10 -0000 On Sat 2010-11-27 (15:22), Gareth de Vaux wrote: > Hi all, I'm trying to simulate a disk fail and replacement in > a raidz array and failing myself. What'm I doing wrong? Here's Ok I did some science, it looks like the array doesn't like me throwing zeros at the disk when it's 'offline'. If I take the disk offline, just fiddle with the array's data, then set the disk online it resilvers fine. 'zpool replace' also only works if you physically swap out a disk at the same port, or replace disk1 with disk2 online. 'zpool remove' and 'zpool detach' don't remove devices from a raidz. So I can recover an array if I have an extra disk to play with, to use temporarily or to swap out with. If I don't and a disk is giving trouble I can't drop it from the array, try to do something with it, and reinsert it.