Subject: NetBSD, apple fibre-channel card & 2.8TB Xserve-RAID
To: None <tech-kern@netbsd.org>
From: Jonathan Kay <jpk@panix.com>
List: tech-kern
Date: 12/01/2004 18:11:16
Hello all,

  I have a Xserve RAID w/ 7x400GB drives that are raid-5'd together that
I'm trying to get to talk nicely with NetBSD via apple's PCI-X fibre-channel
card & am running into problems.

I am slightly afraid that the problem is that the card & RAID need to
be updated with apple's Xserve RAID tools 1.3.2...  as it stands now,
the fibre channel card's firmware & bios are the latest from LSI's
website (LSI7202XP-LC) and the RAID's firmware is 1.3.1d1/1.24f.  I say
this mostly because I can't the RAID to be recognised by any OS I've
tried (no, I don't have a OS-X box handy either, more's the pity! :-\ )

NetBSD recognises the fibre card on boot up:

mpt0 at pci2 dev 8 function 0: LSI Logic FC929X FC Adapter
mpt0: interrupting at irq 10
mpt0: Port 0: Link state Failed
mpt0: External Bus Reset
mpt0: Port 0: FC Link Event: LIP(f8,f7) (Loop Initialization)
mpt0:   Device detected loop failure before acquiring AL_PA
mpt0: Port 0: Link state Active
mpt0: Rescan Port 0
scsibus0 at mpt0: 256 targets, 8 luns per target
mpt1 at pci2 dev 8 function 1: LSI Logic FC929X FC Adapter
mpt1: interrupting at irq 11
mpt1: Port 0: Link state Failed
mpt1: External Bus Reset
mpt1: Port 0: FC Link Event: LIP(f8,f7) (Loop Initialization)
mpt1:   Device detected loop failure before acquiring AL_PA
mpt1: Port 0: Link state Active
mpt1: Rescan Port 1
scsibus1 at mpt1: 256 targets, 8 luns per target

but gives those odd loop failures.  the RAID admin says that the link
for the fibre channel is up in an Arbitrated Loop & running at 2Gb/s

but when it comes time to recognise the drive during boot:

sd0 at scsibus0 target 0 lun 0: <APPLE, Xserve RAID, 1.24> disk fixed
sd0(mpt0:0:0:0):  Check Condition on CDB: 0x23 00 00 00 00 00 00 00 0c 00
    SENSE KEY:  Illegal Request
     ASC/ASCQ:  Invalid Command Operation Code

sd0: drive offline

& more of the same later:
sd0(mpt0:0:0:0):  Check Condition on CDB: 0x23 00 00 00 00 00 00 00 0c 00
    SENSE KEY:  Illegal Request
     ASC/ASCQ:  Invalid Command Operation Code

sd0(mpt0:0:0:0):  Check Condition on CDB: 0x23 00 00 00 00 00 00 00 0c 00
    SENSE KEY:  Illegal Request
     ASC/ASCQ:  Invalid Command Operation Code

and here I sit.
I can detach & scan the scsibus to detach & reconnect it, but it doesn't
do much aside from print that Illegal Request message.

Any ideas?  I can possibly find some way to obtain a Mac w/ a pci slot
to run to update, but thought I'd pick some brains first :-)

Thanks!
Jonathan