From owner-freebsd-questions@FreeBSD.ORG Mon Oct 8 16:27:00 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 86D4E106566B for ; Mon, 8 Oct 2012 16:27:00 +0000 (UTC) (envelope-from ateve@sohara.org) Received: from uk1rly2283.eechost.net (relay01a.mail.uk1.eechost.net [217.69.40.75]) by mx1.freebsd.org (Postfix) with ESMTP id 457768FC12 for ; Mon, 8 Oct 2012 16:26:59 +0000 (UTC) Received: from [31.186.37.179] (helo=rpi-1.marelmo.com) by uk1rly2283.eechost.net with esmtpa (Exim 4.72) (envelope-from ) id 1TLG60-0008LR-NZ; Mon, 08 Oct 2012 17:22:20 +0100 Received: from [192.168.63.1] (helo=steve.marelmo.com) by rpi-1.marelmo.com with smtp (Exim 4.72) (envelope-from ) id 1TLGBr-0001xf-BN; Mon, 08 Oct 2012 17:28:23 +0100 Date: Mon, 8 Oct 2012 17:26:50 +0100 From: Steve O'Hara-Smith To: Matthias Fechner Message-Id: <20121008172650.04011d5a18d710af8d1f23b0@sohara.org> In-Reply-To: <5072F16A.70505@fechner.net> References: <5072F16A.70505@fechner.net> X-Mailer: Sylpheed 3.2.0 (GTK+ 2.24.6; amd64-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Auth-Info: 15567@permanet.ie (plain) Cc: freebsd-questions@freebsd.org Subject: Re: ZFS and zpool mistake X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Oct 2012 16:27:00 -0000 On Mon, 08 Oct 2012 17:29:46 +0200 Matthias Fechner wrote: > Dear list, > > I installed a freebsd with freebsd on a zfs root and only one disk: > pool: zroot > state: ONLINE > scan: none requested > config: > > NAME STATE READ WRITE CKSUM > zroot ONLINE 0 0 0 > ada0p3 ONLINE 0 0 0 > > This disk was now insterted into the computer and boots fine. > The next step I wanted was to setup a mirror with a second disk. > > So I inserted a second disk, configured everything with gpart and added > the disk to the zroot with: > zpool add zroot gpt/disk1 > (I think I had to execute zpool add zroot mirror gpt/disk1, this is not > clear from the man page) You need add for a stripe and attach for a mirror. > And now I have a problem, it seems not to be a mirror but a stripe: > NAME STATE READ WRITE CKSUM > zroot ONLINE 0 0 0 > ada0p3 ONLINE 0 0 0 > gpt/disk1 ONLINE 0 0 0 > > Is there any chance to get it into a mirror? > > I don't think there was anything written to the second disk but I cannot > remove it anymore. Yep once you've added a stripe there's no way to remove it. You'll have to copy the data off somewhere and then rebuild the pool. -- Steve O'Hara-Smith