From owner-freebsd-geom@FreeBSD.ORG Sat Jan 27 23:09:31 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 8704116A400 for ; Sat, 27 Jan 2007 23:09:31 +0000 (UTC) (envelope-from arne_woerner@yahoo.com) Received: from web30305.mail.mud.yahoo.com (web30305.mail.mud.yahoo.com [209.191.69.67]) by mx1.freebsd.org (Postfix) with SMTP id 50DB113C481 for ; Sat, 27 Jan 2007 23:09:31 +0000 (UTC) (envelope-from arne_woerner@yahoo.com) Received: (qmail 96839 invoked by uid 60001); 27 Jan 2007 23:09:30 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=ehAW+bgRyZysasnaEWMRurFeovf9ED1xndeYq+BeY0rPmfexjZNpzepr0q4IXNkSmbty2p45yW7EBqjJOcr7xAaRY5b+fGGYBX4acDJvunm2AJSQCTiqXXbA7SYmYDwynlDQHnjTjkmWQxQKzDX32Tq1YitXcC8Miwty7bGG5Wk= ; Message-ID: <20070127230930.96837.qmail@web30305.mail.mud.yahoo.com> X-YMail-OSG: TB9b1XgVM1mGYroWi80BYXf65FNJrOwoV.dyqACvZBdqIPMd74LVUnS1dfgCpZZbpCD9D6uvpobbjBdXnB2MIMe7OB9p6J.JhLjnr6GjD4ECuwZafIRWHs_YvsS7db.g2c4Djn7CJE3bEmw- Received: from [213.54.8.47] by web30305.mail.mud.yahoo.com via HTTP; Sat, 27 Jan 2007 15:09:30 PST Date: Sat, 27 Jan 2007 15:09:30 -0800 (PST) From: "R. B. Riddick" To: Coen "Bröcker" , freebsd-geom@freebsd.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: Subject: Re: How do I gmirror slices? 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: Sat, 27 Jan 2007 23:09:31 -0000 --- Coen Bröcker wrote: > Currently ad4 contains 3 partitions: > ad4s1 swap, / and /var > ad4s2 /usr > ad4s3 /home > I wan't to mirror ad4s1 and ad4s2. I want to stripe ad4s3. Below is my > current slice setup. > So u have another disk? Or do u want to mirror ad4s1 to ad4s2? That would be not so wise (performance, safety)... > Offset Size(ST) End Name PType Desc Subtype > Flags > > 0 63 62 - 12 unused 0 > 63 12578832 12578894 ad4s1 8 freebsd 165 > 12578895 147814065 160392959 ad4s2 8 freebsd 165 > 160392960 425706435 586099394 ad4s3 8 freebsd 165 > 586099395 15309 586114703 - 12 unused 0 > > Before I continue setting up the mirror I want to make sure I've setup my > slices correctly. > Reading the gmirror man page it states that the gmirror utility uses on-disk > metadata (stored in the provider's last sector) to store all needed > information. > Since I'm no expert in understanding disk structures I'm not sure what the > above means. > gmirror/gstripe use the last sector of its consumers for meta data, and provide a device that is one sector shorter than the smalles consumer. E. g.: gmirror(name=X, consumers=(ad99s1(size=1GB), ad77(size=2GB)), size=1GB-512B) > In my case I think I should create the folowing slice setup: > my last partition on ad4s1 must end at 12578893 instead of 12578894. The > next partition should begin at 12578895 and end at 160392958 creating the > space to store metadata. > The problem with an existing installation is, that it is possible that the last sector of ad4s1 and ad4s2 and ad4s3 is used by a file system. So we need to know the bsdlabel of ad4s1 and ad4s2 and ad4s3 in order to give useful advice. I just wonder why u want to stripe (without any safety) the home fs, which contains most likely quite important and difficult to restore data, while u want to mirror (with disk failure protection) the root-fs (/), although u can just put a CD into ur box and restore it... R u sure, that u dont want to mirror ur home fs, too (or graid3 (e. g. 2disks (data) +1disk (parity)) or so)? -Arne ____________________________________________________________________________________ Never miss an email again! Yahoo! Toolbar alerts you the instant new Mail arrives. http://tools.search.yahoo.com/toolbar/features/mail/