Subject: diskslices & ccd.
To: None <netbsd-help@netbsd.org>
From: Peter B <pb@ludd.luth.se>
List: netbsd-help
Date: 06/17/2002 18:26:27
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?

          /Peter