Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Jul 1998 19:38:37 +0200
From:      Andreas Braukmann <braukmann@tse-online.de>
To:        freebsd-current@FreeBSD.ORG
Subject:   difficulties with CCD? ... (ok. first time CCD-user :(( )
Message-ID:  <19980727193837.A4447@paert.tse-online.de>

next in thread | raw e-mail | index | archive | help
Hi,

 ... I'm trying to use the ccd-driver for mirroring.

I labeled both of the chosen slices (sd1s1, sd2s1) as follows:
> #        size   offset    fstype   [fsize bsize bps/cpg]
>   c:  8916012        0    unused        0     0         # (Cyl.    0 - 554*)
>   e:  8916012        0    4.2BSD        0     0     0   # (Cyl.    0 - 554*)

My ccdconfig is like this:
> adler# ccdconfig -g
> ccd0            32      6       /dev/sd1e /dev/sd2e
[BTW, I was quite astonished that I obviously have to use the compatibility-
notation for the partion names  ....]

The 'automagically'(??) provided disklable for the ccd seems to be ok? 
> adler# disklabel ccd0
> # /dev/rccd0c:
> type: CCD
> disk: ccd
> label: default label
> flags:
> bytes/sector: 512
> sectors/track: 2048
> tracks/cylinder: 1
> sectors/cylinder: 2048
> cylinders: 4353
> sectors/unit: 8915968
> rpm: 3600
> interleave: 1
> trackskew: 0
> cylinderskew: 0
> headswitch: 0           # milliseconds
> track-to-track seek: 0  # milliseconds
> drivedata: 0 
> 
> 3 partitions:
> #        size   offset    fstype   [fsize bsize bps/cpg]
>   c:  8915968        0    4.2BSD        0     0     0   # (Cyl.    0 - 4353*)

But every time a try to newfs the ccd:
> adler# newfs rccd0c
> Warning: 1024 sector(s) in last cylinder unallocated
> /dev/rccd0c:    8915968 sectors in 2177 cylinders of 1 tracks, 4096 sectors
>         4353.5MB in 137 cyl groups (16 c/g, 32.00MB/g, 7936 i/g)
> super-block backups (for fsck -b #) at:
>  32, 65568, 131104, 196640, 262176, 327712, 393248, 458784, 524320, 589856,
>  655392, 720928, 786464, 852000, 917536, 983072, 1048608, 1114144, 1179680,
[...]
>  8912928,
> newfs: ioctl (WDINFO): No such process
> newfs: /dev/rccd0c: can't rewrite disk label

Hmmm. Any hints? I have this feeling, that I might have overseen something
important?

TIA,
   Andreas

-- 
/// TSE TeleService GmbH  |  Gsf: Arne Reuter        |
/// Hovestrasse 14        |       Andreas Braukmann  | We do it with
/// D-48351 Everswinkel   |  HRB: 1430, AG WAF       |  FreeBSD/SMP     
/// -------------------------------------------------------------------
/// PGP-Key:          http://www.tse-online.de/~ab/public-key
/// Key fingerprint:  12 13 EF BC 22 DD F4 B6  3C 25 C9 06 DC D3 45 9B

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



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