From owner-freebsd-questions@FreeBSD.ORG Mon Oct 8 15:33:40 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 DAD42106566B for ; Mon, 8 Oct 2012 15:33:40 +0000 (UTC) (envelope-from karolis.eigelis@gmail.com) Received: from mail-ie0-f182.google.com (mail-ie0-f182.google.com [209.85.223.182]) by mx1.freebsd.org (Postfix) with ESMTP id 9E9838FC0A for ; Mon, 8 Oct 2012 15:33:40 +0000 (UTC) Received: by mail-ie0-f182.google.com with SMTP id k10so12602250iea.13 for ; Mon, 08 Oct 2012 08:33:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=kfnD7IrjO1FK/R0K19NCaiS7K6iwOUOC3hU6Tl0wPjs=; b=RDQFDfrBR4j1LIP26zFxHD1tBs+Yzv7BwryT5WsOrRITwPJdqiyREmsMNrGLoRJejf IXupwtwghW/sX+oMtyUX0TS1Jnipg2/9T0RvckIf1TEHJgMCIboEHsKno7mteFCqhhCZ 51YXbvO9aL17vYhzzUD8zDpa6lJcoWMwn1LJKuobaxCN3PT+njvfE06B9wwPG5/MjWG6 DsqO5TngTbDjWM+1Twbhw/gu+A2r/jBrjD+dsU8kmmFqIV57mlXaJd3BoW0CVBJ3j/FW X63Wte0Foi+bt0gLJrzrBJz+4YurT4E3l2c+2EPwgeEQIaWdvlwUL/8jznT9mcf9OTJt +dbw== MIME-Version: 1.0 Received: by 10.50.159.198 with SMTP id xe6mr6416357igb.46.1349710419888; Mon, 08 Oct 2012 08:33:39 -0700 (PDT) Received: by 10.50.189.167 with HTTP; Mon, 8 Oct 2012 08:33:39 -0700 (PDT) In-Reply-To: <5072F16A.70505@fechner.net> References: <5072F16A.70505@fechner.net> Date: Mon, 8 Oct 2012 17:33:39 +0200 Message-ID: From: Karolis Eigelis To: Matthias Fechner Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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 15:33:41 -0000 if you want a mirror you need to do "attach" a new disk :) On Mon, Oct 8, 2012 at 5:29 PM, 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) > > 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 > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" >