Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 May 1999 14:01:31 +0930
From:      Greg Lehey <grog@lemis.com>
To:        Andy Dills <andy@xecu.net>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Striping of drives
Message-ID:  <19990504140130.Q10134@freebie.lemis.com>
In-Reply-To: <Pine.GSO.4.10.9905032031210.19720-100000@shell.xecu.net>; from Andy Dills on Mon, May 03, 1999 at 08:34:03PM -0400
References:  <Pine.GSO.4.10.9905032031210.19720-100000@shell.xecu.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Monday,  3 May 1999 at 20:34:03 -0400, Andy Dills wrote:
>
> Hi, I'm trying to stripe together 3 identitcal 4gig SCSI drives, and am
> having some problems.
>
> I've compiled ccd into my kernel, and created the device.

That's the first problem.  Why aren't you using Vinum?

> I'm using the suggested commands found in the handbook:
>
> cd /dev ; sh MAKDEV ccd0
>
> disklabel -r -w sd0 auto
> disklabel -r -w sd1 auto
> disklabel -r -w sd2 auto
>
> disklabel -e sd0c # change type to 4.2BSD
> disklabel -e sd1c # change type to 4.2BSD
> disklabel -e sd2c # change type to 4.2BSD

You shouldn't really use partition c for data storage.  Use any other
partition.  Yes, I know ccd tells you to do it, but that's almost as
brain-damaged as wanting to have a partition type 4.2BSD.  Partition c
should always be "unused".

> ccdconfig ccd0 32 0 /dev/sd0c /dev/sd1c /dev/sd2c
>
> newfs /dev/rccd0c
>
> My problem is (I assume) when I try to use disklabel -e.
>
> I edit the type, and change it from SCSI to 4.2BSD, and it doesn't take.
> What I mean by that is, if I diskabel -e it again, the type is back to
> SCSI.

You can't change it from SCSI to 4.2BSD.  I suspect you're changing
the wrong field.  The one you need is at the bottom of the disklabel
output:

8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  b:   819200        0      swap                        # (Cyl.    0 - 50*)
  c:  8388608        0    unused        0     0         # (Cyl.    0 - 522*)

Change this to:

8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  b:   819200        0      swap                        # (Cyl.    0 - 50*)
  c:  8388608        0    unused        0     0         # (Cyl.    0 - 522*)
  e:  8388608        0    4.2BSD        0     0         # (Cyl.    0 - 522*)

You'll notice I've used partition e here.  Change your ccdconfig line
accordingly:

  ccdconfig ccd0 32 0 /dev/sd0e /dev/sd1e /dev/sd2e

Greg
--
See complete headers for address, home page and phone numbers
finger grog@lemis.com for PGP public key


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990504140130.Q10134>