From owner-freebsd-geom@FreeBSD.ORG Mon Oct 29 21:06:35 2007 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 784F616A46C for ; Mon, 29 Oct 2007 21:06:35 +0000 (UTC) (envelope-from lulf@stud.ntnu.no) Received: from decibel.pvv.ntnu.no (unknown [IPv6:2001:700:300:1900:2e0:81ff:fe2d:e9b2]) by mx1.freebsd.org (Postfix) with ESMTP id AA0DA13C4C4 for ; Mon, 29 Oct 2007 21:06:34 +0000 (UTC) (envelope-from lulf@stud.ntnu.no) Received: from tvilling.pvv.ntnu.no ([129.241.210.198] helo=carrot.studby.ntnu.no ident=lulf) by decibel.pvv.ntnu.no with esmtp (Exim 4.60) (envelope-from ) id 1Imbod-0007CW-Di; Mon, 29 Oct 2007 22:06:31 +0100 Date: Mon, 29 Oct 2007 22:06:29 +0100 From: Ulf Lilleengen To: Felipe Neuwald Message-ID: <20071029210629.GA26364@carrot.studby.ntnu.no> Mail-Followup-To: Felipe Neuwald , freebsd-geom@freebsd.org References: <47260370.3060004@neuwald.biz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <47260370.3060004@neuwald.biz> User-Agent: Mutt/1.5.16 (2007-06-09) Cc: freebsd-geom@freebsd.org Subject: Re: Raid 0 + 1 X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ...@carrot.studby.ntnu.no List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Oct 2007 21:06:35 -0000 On Mon, Oct 29, 2007 at 01:59:44PM -0200, Felipe Neuwald wrote: > Hi Folks, > > I talked with my customer, and we decided to implement a 0 + 1 RAID, > with 4 disks of 250Gb each. > > Here is how my RAID is working now: > > [root@fileserver /]# gvinum list > 4 drives: > D a State: up /dev/ad4 A: 0/238474 MB (0%) > D b State: up /dev/ad5 A: 0/238475 MB (0%) > D c State: up /dev/ad6 A: 0/238475 MB (0%) > D d State: up /dev/ad7 A: 0/238475 MB (0%) > > 1 volume: > V data State: up Plexes: 1 Size: 931 GB > > 1 plex: > P data.p0 S State: up Subdisks: 4 Size: 931 GB > > 4 subdisks: > S data.p0.s0 State: up D: a Size: 232 GB > S data.p0.s1 State: up D: b Size: 232 GB > S data.p0.s2 State: up D: c Size: 232 GB > S data.p0.s3 State: up D: d Size: 232 GB > > > Could someone give me on example of how I'll implement a 0 + 1 RAID? > Hello, You need to create two plexes to do this, so something like: drive a device /dev/ad4 drive b device /dev/ad5 drive c device /dev/ad6 drive d device /dev/ad7 volume data plex org striped 493k # or some other stripesize sd drive a sd drive b plex org striped 493k sd drive c sd drive d Should do the trick. Also note that you can use a combination of gstripe(8) and gmirror(8) to achieve the same effect. -- Ulf Lilleengen