Multi-Initiator SAS
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
Quoted 4 lines · Douglas Gilbert
With the mptsas driver you can use
smp_utilsto 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