From owner-freebsd-stable@FreeBSD.ORG Tue Dec 21 09:04:38 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 69866106566C for ; Tue, 21 Dec 2010 09:04:38 +0000 (UTC) (envelope-from bsd@lordcow.org) Received: from lordcow.org (lordcow.org [41.203.5.188]) by mx1.freebsd.org (Postfix) with ESMTP id 8D4768FC15 for ; Tue, 21 Dec 2010 09:04:36 +0000 (UTC) Received: from lordcow.org (localhost [127.0.0.1]) by lordcow.org (8.14.4/8.14.4) with ESMTP id oBL94TAH029724 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-SHA bits=256 verify=NO) for ; Tue, 21 Dec 2010 11:04:29 +0200 (SAST) (envelope-from lordcow@lordcow.org) Received: (from lordcow@localhost) by lordcow.org (8.14.4/8.14.4/Submit) id oBL94Ox8029723 for stable@freebsd.org; Tue, 21 Dec 2010 11:04:24 +0200 (SAST) (envelope-from lordcow) Date: Tue, 21 Dec 2010 11:04:24 +0200 From: Gareth de Vaux To: stable@freebsd.org Message-ID: <20101221090424.GA29240@lordcow.org> References: <20101127132249.GA80611@lordcow.org> <20101206110754.GA82394@lordcow.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20101206110754.GA82394@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: Tue, 21 Dec 2010 09:04:38 -0000 On Mon 2010-12-06 (13:07), Gareth de Vaux wrote: > '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. As the ZFS guys point out, you can replace the same disk out if you zero both its EFI labels - about 1MB at the beginning and end of the disk.