From owner-freebsd-geom@FreeBSD.ORG Sun Jan 28 09:40:07 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 E00B816A404 for ; Sun, 28 Jan 2007 09:40:07 +0000 (UTC) (envelope-from arne_woerner@yahoo.com) Received: from web30306.mail.mud.yahoo.com (web30306.mail.mud.yahoo.com [209.191.69.68]) by mx1.freebsd.org (Postfix) with SMTP id 9612713C48D for ; Sun, 28 Jan 2007 09:40:07 +0000 (UTC) (envelope-from arne_woerner@yahoo.com) Received: (qmail 11800 invoked by uid 60001); 28 Jan 2007 09:40:06 -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=c0MM3jUhBy9l5v/SLNVnlSSJgFB0Cy9NDl4GiMAQqKHHr1CsCClDbCUDT35HnqMaoTrafEni8xrVipD4nI14KoS3dnWiZo14J0syvV/VZG/Zu+sCdZVW0e2Pur3phk4LwEdFjxLkllAqAr9wq9V7HjrRmGvauIXDGfzePjjobl4= ; Message-ID: <20070128094006.11798.qmail@web30306.mail.mud.yahoo.com> X-YMail-OSG: rI0E6FoVM1nzL7w48CsHUgXJ1z_yxESttjUmReDxCpbGsKP4o53fwuwqYALgAV4V_2mgmkrpsUi7CKXFluKvAR5AdKb87k7XsJzPLzzz1M2vMqLyTtU- Received: from [213.54.174.136] by web30306.mail.mud.yahoo.com via HTTP; Sun, 28 Jan 2007 01:40:06 PST Date: Sun, 28 Jan 2007 01:40:06 -0800 (PST) From: "R. B. Riddick" To: Hansa , freebsd geom 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: Sun, 28 Jan 2007 09:40:08 -0000 --- Hansa wrote: > > Van: R. B. Riddick [mailto:arne_woerner@yahoo.com] > > > 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 > > > > Considder my setup below: > [----------------------- ad4 ----------------------] (disk) > [--------- s1 ---------][---- s2 ----][---- s3 ----] (slices) > [[--a--][--b--][--d--]*][[--- d ---]*][[--- d ---]*] (partitions) > > I think the metadata is stored at '*' > Is it one sector (512Bytes?) smaller than size(a) + size(b) + size(d) (same > for s2d and s3d). > I would say: s1 is one sector larger than size(a)+size(b)+size(d). And s2 is 1 sector (512B most likely; depends on ur disks) larger than size(d). And s3 dito... > # /dev/ad4s1: > 8 partitions: > # size offset fstype [fsize bsize bps/cpg] > a: 4192256 0 4.2BSD 0 0 0 > b: 4192256 4192256 swap > c: 12578832 0 unused 0 0 # "raw" part, don't > edit > d: 4194320 8384512 4.2BSD 0 0 0 > Here we see, that d ends on the last sector of slice 1 (s1). So u need to shrink partition d by one sector. Since UFS might use that sector, u need an all new file system for partition d... Maybe u want to it like this: 1. fdisk ur new disk first 2. then setup the gmirror-s on the new disk (1. gmirror with only one slice per mirror; 2. bsdlabel on the gmirror devices (u can use the full area, because gmirror hides the last sector of the slice)). 3. then copy ad4s3d to some backup media. 4. then setup the gstripe or gconcat. 5. then copy the filesystems ad4s1a, ad4s1d and ad4s2d to the gmirror-ed partitions mirror1a, mirror1d, mirror2d 6. then restore the backup for the gstripe 7. add the slices ad4s1 and ad4s2 to the gmirror 8. ready... :-) -Arne ____________________________________________________________________________________ It's here! Your new message! Get new email alerts with the free Yahoo! Toolbar. http://tools.search.yahoo.com/toolbar/features/mail/