-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 OpenBSD 4.0 on UltraSparc II, two 18G SCSI drives
I am trying to set up software RAID disk mirroring. There are many fine howtos out there, including: http://www.monkey.org/openbsd/archive/misc/0203/msg00803.html http://www.eclectica.ca/howto/openbsd-software-raid-howto.php http://os.newsforge.com/os/06/03/08/1646257.shtml?tid=8 However, all of these are for x86 and only the first is SCSI-specific. Some steps, like fdisk and copying some files from mdec, don't apply on sparc64. For example these commands don't work: mount /dev/sd1a /mnt cp /bsd /usr/mdec/boot /mnt /usr/mdec/installboot -v /mnt/boot /usr/mdec/biosboot sd1 umount /mnt There is no /usr/mdec/boot or biosboot in sparc64. I've gotten as far as building a RAID kernel and setting up RAID using raidctl -C but not surprisingly the parity bit is dirty and cannot be set clean. The raid1.conf, disklabel contents, and dmesg.boot output are below. Please let me know what I need to do to get RAID mirroring working on this system. thanks! dn - ------------------------ # raidctl -s raid1 raid1 Components: /dev/sd1d: optimal /dev/sd2d: failed No spares. Parity status: DIRTY Reconstruction is 100% complete. Parity Re-write is 100% complete. Copyback is 100% complete. - ------------------------ raid1.conf: START array # numRow numCol numSpare 1 2 0 START disks /dev/sd1d /dev/sd2d START layout # sectPerSU SUsPerParityUnit SUsPerReconUnit RAID_level_1 32 1 1 1 START queue fifo 100 - ------------------------ # disklabel sd0 # /dev/rsd0c: type: SCSI disk: SCSI disk label: MAN3184MP flags: bytes/sector: 512 sectors/track: 597 tracks/cylinder: 2 sectors/cylinder: 1194 cylinders: 30050 total sectors: 35879700 rpm: 10025 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: 8389044 0 4.2BSD 2048 16384 16 # Cyl 0 - 7025 b: 1048332 8389044 swap # Cyl 7026 - 7903 c: 35879700 0 unused 0 0 # Cyl 0 - 30049 - ------------------------ # disklabel sd1 # /dev/rsd1c: type: SCSI disk: SCSI disk label: MAN3184MP flags: bytes/sector: 512 sectors/track: 597 tracks/cylinder: 2 sectors/cylinder: 1194 cylinders: 30050 total sectors: 35879700 rpm: 10025 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: 205368 0 4.2BSD 2048 16384 16 # Cyl 0 - 171 c: 35879700 0 unused 0 0 # Cyl 0 - 30049 d: 35674332 205368 4.2BSD 2048 16384 16 # Cyl 172 - 30049 ((note: set partition d to type "RAID" when using disklabel -- not sure why it says 4.2BSD now)) - ------------------------ from dmesg.boot: console is /[EMAIL PROTECTED],0/[EMAIL PROTECTED],1/[EMAIL PROTECTED]/[EMAIL PROTECTED],400000:a Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. Copyright (c) 1995-2006 OpenBSD. All rights reserved. http://www.OpenBSD.org OpenBSD 4.0 (GENERIC_RAID) #0: Mon Nov 13 23:14:58 PST 2006 [EMAIL PROTECTED]:/usr/src/sys/arch/sparc64/compile/GENERIC_RAID total memory = 268435456 avail memory = 233644032 using 1638 buffers containing 13418496 bytes of memory bootpath: /[EMAIL PROTECTED],0/[EMAIL PROTECTED],0/[EMAIL PROTECTED],0/[EMAIL PROTECTED],0 mainbus0 (root): SPARCengine(tm)Ultra(tm) AXi (UltraSPARC-IIi 270MHz) cpu0 at mainbus0: SUNW,UltraSPARC-IIi @ 270.012 MHz, version 0 FPU cpu0: physical 32K instruction (32 b/l), 16K data (32 b/l), 256K external (64 b/l) psycho0 at mainbus0 addr 0xfffc0000: SUNW,sabre, impl 0, version 0, ign 7c0 psycho0: bus range 0-128, PCI bus 0 psycho0: dvma map c0000000-dfffffff, iotdb 1135e000-113de000 pci0 at psycho0 ppb0 at pci0 dev 1 function 1 "Sun Simba PCI-PCI" rev 0x11 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 power0 at ebus0 addr 724000-724003 ipl 37 "SUNW,pll" at ebus0 addr 504000-504002 not configured sab0 at ebus0 addr 400000-40007f ipl 43: rev 3.2 sabtty0 at sab0 port 0: console i/o sabtty1 at sab0 port 1 comkbd0 at ebus0 addr 3803f8-3803ff ipl 41: no keyboard com0 at ebus0 addr 3602f8-3602ff ipl 42: mouse: 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 configured clock1 at ebus0 addr 0-1fff: mk48t59 "flashprom" at ebus0 addr 0-fffff not configured beeper0 at ebus0 addr 722000-722003 hme0 at pci1 dev 1 function 1 "Sun HME" rev 0x01: ivec 0x7e1, address 08:00:20:a2:99:b6 nsphy0 at hme0 phy 1: DP83840 10/100 PHY, rev. 1 ppb1 at pci0 dev 1 function 0 "Sun Simba PCI-PCI" rev 0x11 pci2 at ppb1 bus 128 siop0 at pci2 dev 1 function 0 "Symbios Logic 53c875" rev 0x14: ivec 0x7e0, using 4K of on-board RAM scsibus0 at siop0: 16 targets sd0 at scsibus0 targ 0 lun 0: <FUJITSU, MAN3184MP, 0108> SCSI3 0/direct fixed sd0: 17522MB, 30050 cyl, 2 head, 597 sec, 512 bytes/sec, 35885448 sec total sd1 at scsibus0 targ 1 lun 0: <FUJITSU, MAN3184MP, 0108> SCSI3 0/direct fixed sd1: 17522MB, 30050 cyl, 2 head, 597 sec, 512 bytes/sec, 35885448 sec total cd0 at scsibus0 targ 6 lun 0: <PLEXTOR, CD-ROM PX-32TS, 1.02> SCSI2 5/cdrom removable siop1 at pci2 dev 1 function 1 "Symbios Logic 53c875" rev 0x14: ivec 0x7e0, using 4K of on-board RAM scsibus at siop1 not configured vgafb0 at pci2 dev 2 function 0 "ATI Mach64 GV" rev 0x3a wsdisplay0 at vgafb0 wsdisplay0: screen 0 added (std, sun emulation) pcons at mainbus0 not configured No counter-timer -- using %tick at 270MHz as system clock. Kernelized RAIDframe activated siop0: target 0 now using tagged 16 bit 20.0 MHz 16 REQ/ACK offset xfers siop0: target 1 now using tagged 16 bit 20.0 MHz 16 REQ/ACK offset xfers siop0: target 6 now using 8 bit 20.0 MHz 15 REQ/ACK offset xfers root on sd0a rootdev=0x700 rrootdev=0x1100 rawdev=0x1102 raidlookup on device: /dev/sd2d failed ! Hosed component: /dev/sd2d. Hosed component: /dev/sd2d. raid1: Component /dev/sd1d being configured at row: 0 col: 0 Row: 0 Column: 0 Num Rows: 1 Num Columns: 2 Version: 2 Serial Number: 112341 Mod Counter: 88 Clean: No Status: 0 /dev/sd1d is not clean ! raid1: Ignoring /dev/sd2d. raid1 (root)raid1: no disk label raid1: Error re-writing parity! iD8DBQFFXHbMyPxGVjntI4IRAthdAKDTj4kZ4yqvKDrjrVKeirTj7OK8yQCfQIoC zDKqXarUu3i4vOPeyr+uqeI= =MFIU -----END PGP SIGNATURE-----