Subject: Re: diskslices & ccd.
To: Peter B <pb@ludd.luth.se>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: netbsd-help
Date: 06/17/2002 21:08:25
On Mon, Jun 17, 2002 at 06:26:27PM +0200, Peter B wrote:
> 
> I have this warning message (syslog) for a ccd(4) setup:
> 
> Jun 17 17:54:37 thehost /netbsd: WARNING: ccd0: total sector size in disklabel (12354624) != the size of ccd (22650144)
> 
> All discs are (sd1-sd6):
> sd1 at scsibus0 target 1 lun 0: <SEAGATE, ST11200N, 7906> SCSI2 0/direct fixed
> sd1: 1005 MB, 1872 cyl, 15 head, 73 sec, 512 bytes/sect x 2059140 sectors
> 
> /etc/ccd.conf:
> ccd0            48      none    /dev/sd1c /dev/sd2c /dev/sd3c /dev/sd4c /dev/sd5c /dev/sd6c
> 
> 
> newfs /dev/ccd0c:
>   newfs: /dev/ccd0c: not a character-special device
>   Warning: 960 sector(s) in last cylinder unallocated
>   /dev/ccd0c:     12354624 sectors in 6033 cylinders of 1 tracks, 2048 sectors
>           6032.5MB in 378 cyl groups (16 c/g, 16.00MB/g, 3968 i/g)
>   super-block backups (for fsck -b #) at:
>          32,    32800,    65568,    98336,   131104,   163872,   196640,
>   ..
>      12156960, 12189728, 12222496, 12255264, 12288032, 12320800, 12353568,
> 
> df:
> Filesystem  512-blocks     Used    Avail Capacity  Mounted on
> /dev/ccd0c    11967508        2 11369130     0%    /mnt/fs1
> 
> disklabel sd1:
> 3 partitions:
> #        size   offset     fstype   [fsize bsize cpg/sgs]
>   c:  2059140        0     unused        0     0         # (Cyl.    0 - 1880*)
> disklabel: boot block size 0
> disklabel: super block size 0
> Exit 2
> 
> 
> disklabel ccd0:
> 3 partitions:
> #        size   offset     fstype   [fsize bsize cpg/sgs]
>   c: 12354624        0     4.2BSD     1024  8192    16   # (Cyl.    0 - 6032*)
> disklabel: boot block size 0
> disklabel: super block size 0
> Exit 2
> 
> The size 12354624 is correct. While 22650144 is invalid. So can I safely
> disregard this warning. Or should I do something about it?
> I suspect that disklabels should be "fixed" but as I use the whole disk. Does
> it really matter?

Thsi is strange. 
But I don't think you should use the raw partition, for both disks and the ccd.
create another partition on each disk, type RAID, and create another one
on the ccd, type 4.2BSD

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
--