Subject: diskslices & ccd.
To: None <tech-kern@netbsd.org>
From: Peter B <pb@ludd.luth.se>
List: tech-kern
Date: 06/17/2002 20:23:54
I get this warning message in 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 setup with a label that leaves the label
intact by starting at cylinder 1, and using a partition other than 'c'. But as
I use the whole disk. Does it really matter?
/Peter