From owner-freebsd-fs@FreeBSD.ORG Thu Aug 11 16:03:16 2011 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 3CB20106564A for ; Thu, 11 Aug 2011 16:03:16 +0000 (UTC) (envelope-from cracauer@koef.zs64.net) Received: from koef.zs64.net (koef.zs64.net [IPv6:2001:470:1f0b:105e::1e6]) by mx1.freebsd.org (Postfix) with ESMTP id 04A2A8FC14 for ; Thu, 11 Aug 2011 16:03:15 +0000 (UTC) Received: from koef.zs64.net (koef.zs64.net [IPv6:2001:470:1f0b:105e::1e6]) by koef.zs64.net (8.14.5/8.14.4) with ESMTP id p7BG3EPA026304 for ; Thu, 11 Aug 2011 18:03:14 +0200 (CEST) (envelope-from cracauer@koef.zs64.net) Received: (from cracauer@localhost) by koef.zs64.net (8.14.5/8.14.4/Submit) id p7BG3EUM026303 for freebsd-fs@freebsd.org; Thu, 11 Aug 2011 12:03:14 -0400 (EDT) (envelope-from cracauer) Date: Thu, 11 Aug 2011 12:03:14 -0400 From: Martin Cracauer To: freebsd-fs@freebsd.org Message-ID: <20110811160314.GA25076@cons.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Subject: ZFS zpool mirror drive replacement confusion 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: Thu, 11 Aug 2011 16:03:16 -0000 My computer keeps doing what I say, not what I want :-) This zpool with a 2-drive mirror had a dead drive (ad10) which I removed. After I tried to put ad2 as a replacement drive I ended up with the drive not in the mirror, it seems to have extended the zpool (it's size?). NAME STATE READ WRITE CKSUM cbackup3 DEGRADED 0 0 0 mirror DEGRADED 0 0 0 ad6 ONLINE 0 0 0 ad10 REMOVED 0 0 0 ad2 ONLINE 0 0 11 Unfortunately I didn't keep note of the specific command that I used. Two questions: - Does somebody know offhand what I did and what I should have done instead to get ad2 into the mirror? - Would there have been a way to remove ad2 from this set? It didn't let me, saying it can only remove drives from mirror or raid sets. I think it should have been possible before I mounted the filesystem in there read-write for the first time after the drive add. This seems like an easy mistake to make. The array doesn't contain important data, just trying to sort out things for the future. Martin -- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Martin Cracauer http://www.cons.org/cracauer/