Hi,
I'm trying to concatenate 2 disks using ccd. With an interleave factor
of 0, as described by the man page of ccd(4), it doesn't work. An
interleave factor of 1 works, though. Also, the fstype is 4.2BSD in my
example, but there's no difference if I set it to CCD.
This resembles a bug that was fixed March 30th, 2007:
http://archive.openbsd.nu/?ml=openbsd-bugs&a=2007-03&t=3406566.
User error or system error?
# cat /etc/ccd.conf
# $OpenBSD: ccd.conf,v 1.1 1996/08/24 20:52:22 deraadt Exp $
# Configuration file for concatenated disk devices
#
# ccd ileave flags component devices
ccd0 0 none /dev/wd1a /dev/wd2a
# ccdconfig -C
ccdconfig: ioctl (CCDIOCSET): /dev/ccd0c: Invalid argument
# uname -a
OpenBSD obsdv.lan 4.1 GENERIC#1435 i386
# mount
/dev/wd0a on / type ffs (local)
# fdisk wd1
Disk: wd1 geometry: 520/64/63 [2096640 Sectors]
Offset: 0 Signature: 0xAA55
Starting Ending LBA Info:
#: id C H S - C H S [ start: size ]
------------------------------------------------------------------------
0: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
1: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
2: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
*3: A6 0 1 1 - 519 63 63 [ 63: 2096577 ] OpenBSD
# disklabel wd1
# Inside MBR partition 3: type A6 start 63 size 2096577
# /dev/rwd1c:
type: ESDI
disk: ESDI/IDE disk
label: VMware Virtual I
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 2080
total sectors: 2097152
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
16 partitions:
# size offset fstype [fsize bsize cpg]
a: 2096577 63 4.2BSD 2048 16384 328 # Cyl
0*- 2079
c: 2097152 0 unused 0 0 # Cyl 0
- 2080*
# fdisk wd2
Disk: wd2 geometry: 520/64/63 [2096640 Sectors]
Offset: 0 Signature: 0xAA55
Starting Ending LBA Info:
#: id C H S - C H S [ start: size ]
------------------------------------------------------------------------
0: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
1: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
2: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
*3: A6 0 1 1 - 519 63 63 [ 63: 2096577 ] OpenBSD
# disklabel wd2
# Inside MBR partition 3: type A6 start 63 size 2096577
# /dev/rwd2c:
type: ESDI
disk: ESDI/IDE disk
label: VMware Virtual I
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 2080
total sectors: 2097152
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
16 partitions:
# size offset fstype [fsize bsize cpg]
a: 2096577 63 4.2BSD 0 0 0 # Cyl
0*- 2079
c: 2097152 0 unused 0 0 # Cyl 0
- 2080*