Date: Sun, 28 Jan 2007 01:40:06 -0800 (PST) From: "R. B. Riddick" <arne_woerner@yahoo.com> To: Hansa <mythtv@logic-q.nl>, freebsd geom <freebsd-geom@FreeBSD.ORG> Subject: RE: How do I gmirror slices? Message-ID: <20070128094006.11798.qmail@web30306.mail.mud.yahoo.com> In-Reply-To: <LHEFLGAENILPPDJIHADOMEIACFAA.mythtv@logic-q.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
--- Hansa <mythtv@logic-q.nl> 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/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070128094006.11798.qmail>