Subject: Final step with install to DAC960 RAID on AS4100
To: 'port-alpha@netbsd.org' <port-alpha@netbsd.org>
From: Collin Baillie <Collin.Baillie@world.net>
List: port-alpha
Date: 07/07/2003 13:55:30
Hi list,

I've had a modicum of success with my install of 1.6.1 on the AlphaServer
4100 running RAID5 from a DAC960 (DEC KZPAC Firmware 2.42).

I've manually made the device nodes, disklabeled and newfs'd the slices,
installed boot blocks and files, and extracted the sets.

I manually created the fstab to look like the following:


/dev/ld0a	/	ffs	auto,rw
/dev/ld0b	none	swap	auto,sw
/dev/ld0d	/u01	ffs	auto,rw

I have also edited /etc/rc.conf to say YES, so it should boot to multi-user
mode.

On a boot I get this:

>>> boot -fl 0 dra0
(boot dra0.0.0.4.1 -flags 0)
.block 0 of dra0.0.0.4.1 is a valid boot block
reading 15 blocks from dra0.0.0.4.1
bootstrap code read in
base = 200000, image_start = 0, image_bytes = 1e00
initializing HWRPB at 2000
initializing page table at 1f2000
initializing machine state
setting affinity to the primary CPU
configuring I/O adapters...
  ncr0, hose 1, bus 0, slot 1
  tulip0, hose 1, bus 0, slot 2
  isp0, hose 1, bus 2, slot 0
  dac0, hose 1, bus 0, slot 4
  floppy0, hose 0, bus 1, slot 0
  tulip1, hose 0, bus 0, slot 4
jumping to bootstrap code

NetBSD/alpha 1.6.1 FFS Primary Bootstrap
Jumping to entry point...

NetBSD/alpha 1.6.1 Secondary Bootstrap, Revision 1.13
(autobuild@cs20.apochromatic.org, Mon Apr  7 07:42:10 UTC 2003)

VMS PAL rev: 0x4000200010115
OSF PAL rev: 0x4000200020117
Switch to OSF PAL code succeeded.

Boot flags: 0
6276744+416552 [347928+209927]=0x6ea890

Entering netbsd at 0xfffffc0000301290...
Unrecognized boot flag '0'.
[ using 558816 bytes of netbsd ELF symbol table ]
consinit: not using prom console
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 1.6.1 (GENERIC) #0: Mon Apr  7 07:59:37 UTC 2003
 
autobuild@cs20.apochromatic.org:/autobuilder/build/netbsd-1-6/alpha/OBJ/autC
AlphaServer 4100 5/466 4MB, 467MHz, s/n S391000093
8192 byte page size, 2 processors.
total memory = 1024 MB
(2072 KB reserved for PROM, 1021 MB used by NetBSD)
avail memory = 944 MB
using 6553 buffers containing 52424 KB of memory
mainbus0 (root)
cpu0 at mainbus0: ID 0 (primary), 21164A-2
cpu0: Architecture extensions: 1<BWX>
cpu1 at mainbus0: ID 1, 21164A-2
cpu1: processor off-line; multiprocessor support not present in kernel
mcbus0 at mainbus0: 4MB BCache
mcmem0 at mcbus0 mid 1: Memory
mcpcia0 at mcbus0 mid 5: PCI Bridge
mcpcia0: Horse Revision 3, Left Handed Saddle Revision 3, CAP Revision 2
pci0 at mcpcia0 bus 0
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
siop0 at pci0 dev 1 function 0: Symbios Logic 53c810 (fast scsi)
siop0: interrupting at kn300 irq 36
scsibus0 at siop0: 8 targets, 8 luns per target
tlp0 at pci0 dev 2 function 0: DECchip 21140A Ethernet, pass 2.0
tlp0: interrupting at kn300 irq 40
tlp0: DEC DE500-AA, Ethernet address 00:00:f8:03:b0:47
nsphy0 at tlp0 phy 5: DP83840 10/100 media interface, rev. 0
nsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
ppb0 at pci0 dev 3 function 0: Digital Equipment DECchip 21050 PCI-PCI
Bridge ()
pci1 at ppb0 bus 2
pci1: i/o space, memory space enabled, rd/line, wr/inv ok
isp0 at pci1 dev 0 function 0: QLogic 1020 Ultra Wide SCSI HBA
isp0: interrupting at kn300 irq 44
scsibus1 at isp0: 16 targets, 8 luns per target
mlx0 at pci0 dev 4 function 0: Mylex RAID (v2 interface)
mlx0: interrupting at kn300 irq 48
mlx0: DAC960P/PD, 3 channels, firmware 2.42-0-00, 8MB RAM
ld0 at mlx0 unit 0: JBOD, online
ld0: 4091 MB, 2077 cyl, 64 head, 63 sec, 512 bytes/sect x 8378368 sectors
ld1 at mlx0 unit 1: RAID5, online
ld1: 16364 MB, 8311 cyl, 64 head, 63 sec, 512 bytes/sect x 33513472 sectors
ld2 at mlx0 unit 2: RAID5, online
ld2: 20455 MB, 10389 cyl, 64 head, 63 sec, 512 bytes/sect x 41891840 sectors
mcpcia1 at mcbus0 mid 4: PCI Bridge
mcpcia1: Horse Revision 3, Left Handed Saddle Revision 3, CAP Revision 2
pci2 at mcpcia1 bus 0
pci2: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pceb0 at pci2 dev 1 function 0: Intel 82375EB/SB PCI-EISA Bridge (PCEB)
(rev. 0)
vga0 at pci2 dev 2 function 0: S3 Trio32/64 (rev. 0x54)
wsdisplay0 at vga0 (kbdmux ignored)
tlp1 at pci2 dev 4 function 0: DECchip 21143 Ethernet, pass 3.0
tlp1: interrupting at kn300 irq 16
tlp1: DEC DE500-BA, Ethernet address 00:00:f8:09:9a:40
tlp1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
eisa0 at pceb0
isa0 at pceb0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com0: console
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0 (mux ignored)
lpt0 at isa0 port 0x3bc-0x3bf irq 7
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
spkr0 at pcppi0
isabeep0 at pcppi0
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
mcclock0 at isa0 port 0x70-0x71: mc146818 or compatible
stray kn300 irq 44
scsibus0: waiting 2 seconds for devices to settle...
cd0 at scsibus0 target 5 lun 0: <DEC, RRD46   (C) DEC, 1337> SCSI2 5/cdrom
remoe
cd0: sync (100.0ns offset 8), 8-bit (10.000MB/s) transfers
st0 at scsibus0 target 6 lun 0: <DEC, TLZ09     (C)DEC, 03a5> SCSI2
1/sequentiae
st0: drive empty
st0: sync (100.0ns offset 8), 8-bit (10.000MB/s) transfers
scsibus1: waiting 2 seconds for devices to settle...
Kernelized RAIDframe activated
ld1: no disk label
ld2: no disk label
WARNING: can't figure what device matches "RAID 1 4 0 0 0 6000 11069"
root device: ld0a
dump device (default ld0b): 
file system (default generic): ffs
root on ld0a dumps on ld0b
Enter pathname of shell or RETURN for sh: 
Terminal type is vt100.                                                 
We recommend creating a non-root account and using su(1) for root access.
# 

I can 'mount -u /' and the system is up and running nicely... But how do I
get it to 'map' ld0a to "RAID 1 4 0 0 0 6000 11069" so that the system can
boot straight into multi-user mode.

Cheers,

Collin Baillie