From owner-freebsd-fs@FreeBSD.ORG Fri May 28 13:49:29 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 DFAC2106564A for ; Fri, 28 May 2010 13:49:29 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from qmta03.westchester.pa.mail.comcast.net (qmta03.westchester.pa.mail.comcast.net [76.96.62.32]) by mx1.freebsd.org (Postfix) with ESMTP id 8A95A8FC0A for ; Fri, 28 May 2010 13:49:29 +0000 (UTC) Received: from omta24.westchester.pa.mail.comcast.net ([76.96.62.76]) by qmta03.westchester.pa.mail.comcast.net with comcast id NzeE1e0091ei1Bg531pVii; Fri, 28 May 2010 13:49:29 +0000 Received: from koitsu.dyndns.org ([98.248.46.159]) by omta24.westchester.pa.mail.comcast.net with comcast id P1pU1e0013S48mS3k1pUi5; Fri, 28 May 2010 13:49:29 +0000 Received: by icarus.home.lan (Postfix, from userid 1000) id E45589B418; Fri, 28 May 2010 06:49:26 -0700 (PDT) Date: Fri, 28 May 2010 06:49:26 -0700 From: Jeremy Chadwick To: "James R. Van Artsdalen" Message-ID: <20100528134926.GB75411@icarus.home.lan> References: <4BFFC6E6.2070505@jrv.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4BFFC6E6.2070505@jrv.org> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-fs Subject: Re: 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:49:30 -0000 On Fri, May 28, 2010 at 08:36:38AM -0500, James R. Van Artsdalen wrote: > 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? What version of FreeBSD? Please provide uname -a output and not "8.0" or something equally as terse. Some clarification: you didn't remove the device, you simply told ZFS to assuming that the device had been replaced. What did you do (both physically and software/command-line-wise) *prior* to issuing "zpool replace jwrc ada1"? -- | Jeremy Chadwick jdc@parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |