Can anyone suggest what's going wrong with this attempt at setting up a
ccd mirror on sparc64 (t1 105)? Making any changes to the disklabel
(with -e or -E) results in ccd0's disk information changing, e.g.:
cylinders: 245613 -> 49005
total sectors: 31438464 -> 6272640
free sectors: 0 -> 6272640
Steps taken and dmesg follow. Any clues appreciated...
Script started on Mon May 23 23:16:44 2005
bootes# disklabel sd0
# /dev/rsd0c:
type: SCSI
disk: SCSI disk
label: ST318404LSUN18G
flags:
bytes/sector: 512
sectors/track: 248
tracks/cylinder: 19
sectors/cylinder: 4712
cylinders: 7508
total sectors: 35377696
rpm: 7200
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: 263872 0 4.2BSD 2048 16384 16 # Cyl 0
- 55
c: 35377696 0 unused 0 0 # Cyl 0
- 7507
d: 2101552 263872 4.2BSD 2048 16384 16 # Cyl 56
- 501
e: 31438464 3939232 ccd # Cyl 836
- 7507
f: 1573808 2365424 4.2BSD 2048 16384 16 # Cyl 502
- 835
bootes# disklabel sd1
# /dev/rsd1c:
type: SCSI
disk: SCSI disk
label: ST318305LSUN18G
flags:
bytes/sector: 512
sectors/track: 248
tracks/cylinder: 19
sectors/cylinder: 4712
cylinders: 7508
total sectors: 35377696
rpm: 7200
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: 263872 0 4.2BSD 2048 16384 16 # Cyl 0
- 55
b: 2101552 263872 swap # Cyl 56
- 501
c: 35377696 0 unused 0 0 # Cyl 0
- 7507
d: 1573808 2365424 4.2BSD 2048 16384 16 # Cyl 502
- 835
e: 31438464 3939232 ccd # Cyl 836
- 7507
bootes# 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 128 0x04 /dev/sd0e /dev/sd1e
bootes# ccdconfig -C
bootes# disklabel -E ccd0
This platform requires that partition offsets/sizes be on cylinder
boundaries.
Partition offsets/sizes will be rounded to the nearest cylinder
automatically.
Initial label editor (enter '?' for help at any prompt)
p
device: /dev/rccd0c
type: ccd
disk: ccd
label: default label
bytes/sector: 512
sectors/track: 128
tracks/cylinder: 1
sectors/cylinder: 128
cylinders: 245613
total sectors: 31438464
free sectors: 0
rpm: 3600
3 partitions:
# size offset fstype [fsize bsize cpg]
c: 31438464 0 4.2BSD 0 0 0 # Cyl 0
-245612
m c
FS type: [4.2BSD] unknown
offset: [0]
size: [31438464]
w
p
device: /dev/rccd0c
type: ccd
disk: ccd
label: default label
bytes/sector: 512
sectors/track: 128
tracks/cylinder: 1
sectors/cylinder: 128
cylinders: 245613
total sectors: 31438464
free sectors: 0
rpm: 3600
3 partitions:
# size offset fstype [fsize bsize cpg]
c: 31438464 0 unknown # Cyl 0
-245612
q
No label changes.
bootes# !!
disklabel -E ccd0
This platform requires that partition offsets/sizes be on cylinder
boundaries.
Partition offsets/sizes will be rounded to the nearest cylinder
automatically.
Initial label editor (enter '?' for help at any prompt)
p
device: /dev/rccd0c
type: ccd
disk: ccd
label: default label
bytes/sector: 512
sectors/track: 128
tracks/cylinder: 1
sectors/cylinder: 128
cylinders: 49005
total sectors: 6272640
free sectors: 6272640
rpm: 3600
16 partitions:
# size offset fstype [fsize bsize cpg]
c: 31438464 0 unused 0 0 # Cyl 0
-245612
q
No label changes.
bootes# exit
Script done on Mon May 23 23:17:54 2005
====
bootes# dmesg
console is /[EMAIL PROTECTED],0/[EMAIL PROTECTED],1/[EMAIL PROTECTED]/[EMAIL
PROTECTED],3803f8
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights
reserved.
Copyright (c) 1995-2005 OpenBSD. All rights reserved.
http://www.OpenBSD.org
OpenBSD 3.7 (GENERIC) #431: Sun Mar 20 14:10:02 MST 2005
[EMAIL PROTECTED]:/usr/src/sys/arch/sparc64/compile/GENERIC
total memory = 1073741824
avail memory = 970162176
using 6553 buffers containing 53682176 bytes of memory
bootpath: /[EMAIL PROTECTED],0/[EMAIL PROTECTED],1/[EMAIL PROTECTED],0/[EMAIL
PROTECTED],0
mainbus0 (root): Netra t1 (UltraSPARC-IIi 440MHz)
cpu0 at mainbus0: SUNW,UltraSPARC-IIi @ 440.047 MHz, version 0 FPU
cpu0: physical 32K instruction (32 b/l), 16K data (32 b/l), 2048K
external (64 b
/l)
psycho0 at mainbus0 addr 0xfffc0000
SUNW,sabre: impl 0, version 0: ign 7c0 bus range 0 to 3; PCI bus 0
DVMA map: c0000000 to e0000000
IOTDB: 52e4000 to 5364000
pci0 at psycho0
ppb0 at pci0 dev 1 function 1 "Sun Simba PCI-PCI" rev 0x13
pci1 at ppb0 bus 1
ebus0 at pci1 dev 1 function 0 "Sun PCIO Ebus2" rev 0x01
auxio0 at ebus0 addr 726000-726003, 728000-728003, 72a000-72a003,
72c000-72c003,
72f000-72f003
power at ebus0 addr 724000-724003 ipl 37 not configured
SUNW,pll at ebus0 addr 504000-504002 not configured
com0 at ebus0 addr 3803f8-3803ff ipl 28: ns16550a, 16 byte fifo
com0: console
com1 at ebus0 addr 3602f8-3602ff ipl 20: ns16550a, 16 byte fifo
lpt0 at ebus0 addr 340278-340287, 30015c-30015d, 700000-70000f ipl 34:
polled
fdthree at ebus0 addr 3203f0-3203f7, 706000-70600f, 720000-720003 ipl
39 not con
figured
clock1 at ebus0 addr 0-1fff: mk48t59: hostid 80fa68b2
flashprom at ebus0 addr 0-fffff not configured
watchdog at ebus0 addr 200000-20003f ipl 4 not configured
display7seg at ebus0 addr 200040-200040 not configured
beeper0 at ebus0 addr 722000-722003: can't map register space
flashprom at ebus0 addr 400000-5fffff not configured
flashprom at ebus0 addr 800000-9fffff not configured
i2c at ebus0 addr 600000-600003 ipl 40 not configured
i2c at ebus0 addr 100000-100003 ipl 27 not configured
SUNW,lom at ebus0 addr 400000-400063 not configured
hme0 at pci1 dev 1 function 1 "Sun HME" rev 0x01: address
08:00:20:fa:68:b2
ukphy0 at hme0 phy 0: Generic IEEE 802.3u media interface
ukphy0: OUI 0x00601d, model 0x000c, rev. 1
hme0: using ivec 3021 for interrupt
siop0 at pci1 dev 2 function 0 "Symbios Logic 53c875" rev 0x03: ivec
20, using 4
K of on-board RAM
scsibus0 at siop0: 16 targets
sd0 at scsibus0 targ 0 lun 0: <SEAGATE, ST318404LSUN18G, 5221> SCSI3
0/direct fi
xed
sd0: 17274MB, 7508 cyl, 19 head, 248 sec, 512 bytes/sec, 35378533 sec
total
sd1 at scsibus0 targ 1 lun 0: <SEAGATE, ST318305LSUN18G, 0340> SCSI3
0/direct fi
xed
sd1: 17274MB, 7508 cyl, 19 head, 248 sec, 512 bytes/sec, 35378533 sec
total
hme1 at pci1 dev 3 function 1 "Sun HME" rev 0x01: address
08:00:20:fa:68:b3
ukphy1 at hme1 phy 0: Generic IEEE 802.3u media interface
ukphy1: OUI 0x00601d, model 0x000c, rev. 1
hme1: using ivec 301a for interrupt
ppb1 at pci0 dev 1 function 0 "Sun Simba PCI-PCI" rev 0x13
pci2 at ppb1 bus 2
ppb2 at pci2 dev 1 function 0 "DEC 21150 PCI-PCI" rev 0x06
pci3 at ppb2 bus 3
pciide0 at pci3 dev 14 function 0 "CMD Technology PCI0646" rev 0x03:
DMA, channe
l 0 configured to native-PCI, channel 1 configured to native-PCI
pciide0: using ivec 1802 for native-PCI interrupt
pciide0: channel 0 disabled (no drives)
atapiscsi0 at pciide0 channel 1 drive 0
scsibus1 at atapiscsi0: 2 targets
cd0 at scsibus1 targ 0 lun 0: <TOSHIBA, CD-ROM XM-7002Bc, 1111> SCSI0
5/cdrom re
movable
cd0(pciide0:1:0): using PIO mode 4, DMA mode 2
pcons at mainbus0 not configured
No counter-timer -- using %tick at 440MHz as system clock.
root on sd0a
siop0: target 0 now using tagged 16 bit 20.0 MHz 16 REQ/ACK offset xfers
rootdev=0x700 rrootdev=0x1100 rawdev=0x1102
siop0: target 1 now using tagged 16 bit 20.0 MHz 16 REQ/ACK offset xfers