From owner-freebsd-fs@FreeBSD.ORG Mon Nov 5 16:58:56 2012 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 99CDAC5F for ; Mon, 5 Nov 2012 16:58:56 +0000 (UTC) (envelope-from fox@cyberfoxfire.com) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 3DA9C8FC0A for ; Mon, 5 Nov 2012 16:58:55 +0000 (UTC) Received: by mail-ob0-f182.google.com with SMTP id wc20so7407356obb.13 for ; Mon, 05 Nov 2012 08:58:55 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:x-gm-message-state; bh=RJ8bD77oPEjsssbyxpA1Rj9tH4dKpq/dUpcTTPAzHgg=; b=pSXWO3IWXTDn2OwSyapwofpf+jkRQpclInRSkxJur24V1lo9DIaP/uU0UEbNhe2+zQ XfhdedEX3IgHV/Q9ERJTLf+qC3bts9E1gZBKWetnCwa4zPA21KaTiC01napMYmmh5lN8 BNYUIYHwXI+DJ54rFfKajQEu+KaloZfZB+QSBn9PAqpk1wnzebmiMTWq2QzDk968tkUz oenJ5wdh333mC8VuNGrt/80EmifsPDaGcbVY1O/RjGJBSKIZ7NcPWFGbgxgeLofCQyb1 blSMjWNcd9TpdWZG/kiDLHoXHhEo3nmZX3UqyAjbheqi1paZg6rxnea0WDCj+GQgqSs4 ekew== Received: by 10.60.32.241 with SMTP id m17mr8455640oei.50.1352134735157; Mon, 05 Nov 2012 08:58:55 -0800 (PST) Received: from [10.99.99.9] ([67.11.63.242]) by mx.google.com with ESMTPS id j19sm14181689oei.2.2012.11.05.08.58.53 (version=SSLv3 cipher=OTHER); Mon, 05 Nov 2012 08:58:54 -0800 (PST) Message-ID: <5097F04A.5060701@cyberfoxfire.com> Date: Mon, 05 Nov 2012 10:58:50 -0600 From: Fox F User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20121026 Thunderbird/16.0.2 MIME-Version: 1.0 To: Freddie Cash Subject: Re: Convert standalone zpool to RAID1 with data in place References: <50955FB1.2070800@cyberfoxfire.com> In-Reply-To: X-Gm-Message-State: ALoCoQkj68eT3WSvvgZmzThSdZbiy/UOPIyFQyxFCF09eZi8RZncnjQ7b8QF5x6A0t0AOKlthHof Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-fs@freebsd.org X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Nov 2012 16:58:56 -0000 On 11/3/2012 10:23 PM, Freddie Cash wrote: > > You don't. At least, not in that order. Or, at least not with the > ZFS-native tools. > > You can create a pool with 2 separate single-disk vdevs, and data will > be striped across them. Similar to RAID0, there will be no redundancy > to the pool. > zpool create poolname disk1 disk2 > > Later, you can convert the single-disk vdevs to mirrors, thus turning > the pool into a RAID10: > zpool attach poolname disk1 disk3 > zpool attach poolname disk2 disk4 > > Or, you can create a pool with a single mirror vdev: > zpool create poolname mirror disk1 disk2 > > Later, you can add another mirror vdev to the pool, and data will be > striped across the two vdevs, similar to a RAID10: > zpool add poolname mirror disk3 disk4 > > If you are truly hell bent on doing things in the other order (mirror > on top of two stripesets), then you have to use gstripe(8) to create > the stripesets, and then add those to the pool. The following is from > memory, so it may not be perfectly correct: > gstripe label stripe1 disk1 disk2 > gstripe label stripe2 disk3 disk4 > zpool create poolname mirror stripe/stripe1 stripe/stripe2 > > On Nov 3, 2012 11:17 AM, "Fox F" > wrote: > > > > Hello, > > > > My intention is to have a zpool with two drives (1TB and 2TB) > striped. I suppose I'd create it as such: > > > > zpool create zp_test disk1 disk2 > > > > I would then create a zfs filesystem on that zpool and add data to it. > > > > Then, I would want to mirror this data on another identical striped > vdev. > > > > The question is, what is the order of operations for creating the > second striped vdev and adding it as a mirror to the first one, and > how do I do that in such a way that the data on disk1/2 gets mirrored > to the new addition? > > > > I hope I am making sense. > > > > -F > > _______________________________________________ > > 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 > " > Thank you. It sounds like I need to use gstripe then. My need is to have two 3TB mirrors, for which I need a striped device of 1TB + 2TB given my current hardware. Thanks for the help. BTW, your memory seems to have served you well. I recommend anyone needing this advice check the man page for gstripe, though... it's pretty readable.