From owner-freebsd-questions@FreeBSD.ORG Mon Oct 8 15:29:59 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 67781106566C for ; Mon, 8 Oct 2012 15:29:59 +0000 (UTC) (envelope-from idefix@fechner.net) Received: from anny.lostinspace.de (anny.lostinspace.de [IPv6:2a01:138:a006::2]) by mx1.freebsd.org (Postfix) with ESMTP id E37D88FC12 for ; Mon, 8 Oct 2012 15:29:58 +0000 (UTC) Received: from server.idefix.lan (ppp-62-216-215-64.dynamic.mnet-online.de [62.216.215.64]) (authenticated bits=0) by anny.lostinspace.de (8.14.5/8.14.5) with ESMTP id q98FTmqo021271 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Mon, 8 Oct 2012 17:29:53 +0200 (CEST) (envelope-from idefix@fechner.net) Received: from server.idefix.lan (localhost [IPv6:::1]) by server.idefix.lan (Postfix) with ESMTP id 97D346F4EC for ; Mon, 8 Oct 2012 17:29:48 +0200 (CEST) X-Virus-Scanned: amavisd-new at fechner.net Received: from server.idefix.lan ([127.0.0.1]) by server.idefix.lan (server.idefix.lan [127.0.0.1]) (amavisd-new, port 10024) with LMTP id UASJfw2Cx--4 for ; Mon, 8 Oct 2012 17:29:48 +0200 (CEST) Received: from matthias-fechners-macbook.local (ppp-62-216-215-64.dynamic.mnet-online.de [62.216.215.64]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by server.idefix.lan (Postfix) with ESMTPSA id D62406F4E2 for ; Mon, 8 Oct 2012 17:29:47 +0200 (CEST) Message-ID: <5072F16A.70505@fechner.net> Date: Mon, 08 Oct 2012 17:29:46 +0200 From: Matthias Fechner User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 MIME-Version: 1.0 To: freebsd-questions@freebsd.org X-Enigmail-Version: 1.4.4 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (anny.lostinspace.de [0.0.0.0]); Mon, 08 Oct 2012 17:29:53 +0200 (CEST) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,UNPARSEABLE_RELAY autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on anny.lostinspace.de Subject: 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 15:29:59 -0000 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) 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. Has anyone a tip for me, howto convert the stripe to a mirror? Thanks, Matthias -- "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning." -- Rich Cook