From owner-freebsd-fs@FreeBSD.ORG Fri May 28 13:36:41 2010 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 1B0E41065676 for ; Fri, 28 May 2010 13:36:41 +0000 (UTC) (envelope-from james-freebsd-fs2@jrv.org) Received: from mail.jrv.org (adsl-70-243-84-13.dsl.austtx.swbell.net [70.243.84.13]) by mx1.freebsd.org (Postfix) with ESMTP id A875B8FC17 for ; Fri, 28 May 2010 13:36:40 +0000 (UTC) Received: from kremvax.housenet.jrv (kremvax.housenet.jrv [192.168.3.124]) by mail.jrv.org (8.14.3/8.14.3) with ESMTP id o4SDacFZ032172 for ; Fri, 28 May 2010 08:36:38 -0500 (CDT) (envelope-from james-freebsd-fs2@jrv.org) Authentication-Results: mail.jrv.org; domainkeys=pass (testing) header.from=james-freebsd-fs2@jrv.org DomainKey-Signature: a=rsa-sha1; s=enigma; d=jrv.org; c=nofws; q=dns; h=message-id:date:from:user-agent:mime-version:to:subject: content-type:content-transfer-encoding; b=nxB3qL9MwOZ9dSAMRzkvxQZj9FrOu8J4QVbGqArRddaKPD1Fj44IEMAV/1i5zv0on TDZhmO/ySczB++OTNcKJRq5dT+QXUICm0KPtoTVUPnL18Rm3LgjajwKuyK0TCHFD9Oa nA1nA20ZHSj9vcUI7eDsKvGobm2tiLdW1UE3tJ0= Message-ID: <4BFFC6E6.2070505@jrv.org> Date: Fri, 28 May 2010 08:36:38 -0500 From: "James R. Van Artsdalen" User-Agent: Thunderbird 2.0.0.24 (Macintosh/20100228) MIME-Version: 1.0 To: freebsd-fs Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: ZFS: how to replace a dead disk? 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: Fri, 28 May 2010 13:36:41 -0000 What's the right way to replace a dead disk under ZFS? When ada1 failed I tried "zpool replace jwrc ada1" and when it finished I got this: root@cyclone ~]# zpool status pool: jwrc state: DEGRADED status: One or more devices has experienced an error resulting in data corruption. Applications may be affected. action: Restore the file in question if possible. Otherwise restore the entire pool from backup. see: http://www.sun.com/msg/ZFS-8000-8A scrub: resilver completed after 14h55m with 11 errors on Fri May 28 04:28:56 2010 config: NAME STATE READ WRITE CKSUM jwrc DEGRADED 0 0 11 raidz1 DEGRADED 0 0 23 ada2 ONLINE 0 0 0 889M resilvered replacing DEGRADED 0 0 0 ada1/old UNAVAIL 0 256K 0 cannot open ada1 ONLINE 0 0 0 1.47T resilvered ada3 ONLINE 0 0 0 879M resilvered ada4 ONLINE 0 0 0 808M resilvered errors: 5 data errors, use '-v' for a list --- It says "replacing" and that the device, vdev and pool are degraded, yet the "resilver" finished hours ago. I cannot detach the ada1/old entry. Is there some other command I should have used to remove the dead ada1 device? This kernel 206111, roughly April 1, on amd64