From owner-freebsd-geom@FreeBSD.ORG Tue Jan 23 19:19:42 2007 Return-Path: X-Original-To: freebsd-geom@FreeBSD.ORG Delivered-To: freebsd-geom@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3B88616A404 for ; Tue, 23 Jan 2007 19:19:42 +0000 (UTC) (envelope-from reedl@tatteredcover.com) Received: from nell.tatteredcover.com (nell.tatteredcover.com [206.124.11.52]) by mx1.freebsd.org (Postfix) with ESMTP id 141F913C461 for ; Tue, 23 Jan 2007 19:19:42 +0000 (UTC) (envelope-from reedl@tatteredcover.com) Received: from [199.26.174.18] (spender.tatteredcover.com [199.26.174.18]) by nell.tatteredcover.com (Postfix) with ESMTP id A63EDA784; Tue, 23 Jan 2007 11:33:35 -0700 (MST) Message-ID: <45B65B68.5040209@tatteredcover.com> Date: Tue, 23 Jan 2007 12:00:56 -0700 From: Reed Loefgren User-Agent: Thunderbird 1.5.0.8 (X11/20061113) MIME-Version: 1.0 To: freebsd-geom@FreeBSD.ORG, fernan.aguero@gmail.com References: <200701231830.l0NIURmC083278@lurza.secnetix.de> In-Reply-To: <200701231830.l0NIURmC083278@lurza.secnetix.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: clear metadata using dd? X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Jan 2007 19:19:42 -0000 Oliver Fromme wrote: > Hi, > > I just noticed this message today, and there's one thing > I don't understand ... > > Fernan Aguero wrote: > > I'm trying to set up two disks to contain both gmirrored and > > gstriped slices. > > > > This is what I'm trying to achieve: > > adxs1, swap > > adxs2, gmirror > > adxs3, gstripe > > Can someone please explain why such a setup makes sense? > > As far as I can tell, the purpose of gmirror is to provide > redundancy in the case of drive failure. I.e. if one > drive fails, the system keeps running happily instead of > crashing. > > But if only part of the disk is mirrored, then the system > will still crash if one drive fails. So what is the point > of using gmirror, if not on whole disks? > > Just wondering. > > Best regards > Oliver > > Oliver, I have gmirror running on my home machine; the entire disk mirrored to a second disk, swap included, because that was the setup I followed on onlamp's BSD section. In retrospect I would not mirror swap since writing to a mirrored swap is a performance hit that might not be compensated by the increased read performance of mirrors. I see swap as both already slow (compared to RAM) but also somewhat disposable. If I were to do it again I would mirror the entire slice (DOS partition) holding the OS but leave two slices with the swap partitions on them independent, mount both of them with identical priorities, and let the OS determine the best usage algorithm. I have a gig of RAM and only rarely even touch swap, plus my career doesn't hang on such decisions so I can afford to play a bit. Your situation might not have that leeway. :) r