From owner-freebsd-fs@FreeBSD.ORG Thu Aug 11 16:39:30 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 7F4A3106564A for ; Thu, 11 Aug 2011 16:39:30 +0000 (UTC) (envelope-from olivier@gid0.org) Received: from mail-qy0-f182.google.com (mail-qy0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id 4870F8FC14 for ; Thu, 11 Aug 2011 16:39:30 +0000 (UTC) Received: by qyk9 with SMTP id 9so1557845qyk.13 for ; Thu, 11 Aug 2011 09:39:29 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.95.84 with SMTP id c20mr4623063qcn.278.1313079423248; Thu, 11 Aug 2011 09:17:03 -0700 (PDT) Received: by 10.229.87.10 with HTTP; Thu, 11 Aug 2011 09:17:03 -0700 (PDT) In-Reply-To: <20110811160314.GA25076@cons.org> References: <20110811160314.GA25076@cons.org> Date: Thu, 11 Aug 2011 18:17:03 +0200 Message-ID: From: Olivier Smedts To: Martin Cracauer Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-fs@freebsd.org Subject: Re: 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:39:30 -0000 2011/8/11 Martin Cracauer : > 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. =A0After 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?). > > =A0 =A0 =A0 =A0NAME =A0 =A0 =A0 =A0STATE =A0 =A0 READ WRITE CKSUM > =A0 =A0 =A0 =A0cbackup3 =A0 =A0DEGRADED =A0 =A0 0 =A0 =A0 0 =A0 =A0 0 > =A0 =A0 =A0 =A0 =A0mirror =A0 =A0DEGRADED =A0 =A0 0 =A0 =A0 0 =A0 =A0 0 > =A0 =A0 =A0 =A0 =A0 =A0ad6 =A0 =A0 ONLINE =A0 =A0 =A0 0 =A0 =A0 0 =A0 =A0= 0 > =A0 =A0 =A0 =A0 =A0 =A0ad10 =A0 =A0REMOVED =A0 =A0 =A00 =A0 =A0 0 =A0 =A0= 0 > =A0 =A0 =A0 =A0 =A0ad2 =A0 =A0 =A0 ONLINE =A0 =A0 =A0 0 =A0 =A0 0 =A0 =A0= 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 > =A0instead to get ad2 into the mirror? Maybe try : zpool history > - Would there have been a way to remove ad2 from this set? It didn't > =A0let me, saying it can only remove drives from mirror or raid sets. > =A0I think it should have been possible before I mounted the filesystem > =A0in there read-write for the first time after the drive add. =A0This > =A0seems like an easy mistake to make. Unfortunately, There is no way to shrink a pool, or remove vdevs. > The array doesn't contain important data, just trying to sort out > things for the future. > > Martin > -- > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% > Martin Cracauer =A0 http://www.cons.org/cracauer/ > _______________________________________________ > freebsd-fs@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-fs > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org" > --=20 Olivier Smedts=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=A0 _ =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 ASCII ribbon campaign ( ) e-mail: olivier@gid0.org=A0 =A0 =A0 =A0 - against HTML email & vCards=A0 X www: http://www.gid0.org=A0 =A0 - against proprietary attachments / \ =A0 "Il y a seulement 10 sortes de gens dans le monde : =A0 ceux qui comprennent le binaire, =A0 et ceux qui ne le comprennent pas."