Skip to contentSkip to conversation

Multi-Initiator SAS

DISCUSSION Darrick J. Wong 1 participant 2 messages Sep 19, 2006 1 message not in the archive SCSI

lore
Share & tools
lore
#0 lore raw

Hi everybody!

Alexis and I connected both a Adaptec 9410 and a LSI 1064E SAS initiator to an expander. Both machines saw the disks attached to the expander, and both could send I/Os to the disks. So far, so good.

We then connected a SATA disk to the expander. libsas BUGd up in sas_ex_discover_end_dev (sas_expander.c:636):

BUG_ON(sas_port_add(phy->port) != 0);

mptsas didn't seem to do anything with the SATA device at all, though when we disconnected the SATA disk it recognized that a SATA device went away. We'll have a look at the libsas problem in a jiffy.

--D

#2 lore raw
In reply to a message not in the archive
Quoted 4 lines · Douglas Gilbert

With the mptsas driver you can use smp_utils to look at that expander via /dev/mptctl ('modprobe mptctl' first). To get an overview of what the expander sees, try:

 # smp_discover -mb /dev/mptctl

Unfortunately, I see this:

root@elm3a253:~# smp_discover -mb /dev/mptctl
MPTCOMMAND ioctl failed: No such device
ioctl failed
smp_send_req failed, res=-1

...a strace of the app reveals this:

stat("/dev/mptctl", {st_mode=S_IFCHR|0660, st_rdev=makedev(10, 220), ...}) = 0

open("/dev/mptctl", O_RDWR)             = 3
brk(0)                                  = 0x508000
brk(0x529000)                           = 0x529000
ioctl(3, 0xc0486d14, 0x508010)          = -1 ENODEV (No such device)

--D