All of lore.kernel.org
 help / color / mirror / Atom feed
* scsi_scan.c reports 'target allocation failed, error -6' w/ mptsas
@ 2012-01-18 10:06 Sander Smeenk
  2012-01-20  3:57 ` Nandigama, Nagalakshmi
  2012-01-31  5:24 ` Nandigama, Nagalakshmi
  0 siblings, 2 replies; 5+ messages in thread
From: Sander Smeenk @ 2012-01-18 10:06 UTC (permalink / raw)
  To: linux-scsi

Hi,

i'm experiencing issues while hot(re)plugging SAS-drives in a server
running 2.6.32-37 (stock Ubuntu Lucid). The disks are connected to an
LSI Logic / Symbios Logic SAS1064 PCI-X Fusion-MPT SAS HBA (1000:0500 r2)
Google has no information at all on this specific errormessage.

Situation:
The server is running on 4xSAS drives with the mptsas module, disks are
JBODed to the OS, the OS has them in mdadm software raid.

Each disk needs to be replaced so i unconfigure one in mdadm, ask the
kernel to 'delete' the device node:
| # echo 1 > /sys/block/sdN/device/delete

And then i pull the disk after which the kernel logs:
| scsi: killing requests for dead queue
| scsi target4:0:1: mptsas: ioc0: delete device: fw_channel 0, fw_id 1,
|                   phy 1, sas_addr 0x500000e019670902

When i reseat the replacement disk, nothing gets logged. When i then ask
the kernel to rescan the scsi bus on host4, the kernel logs an error:

| # echo '- - -' > /sys/class/scsi_host/host4/scan
| scsi target4:0:4: target allocation failed, error -6

The replacement drive will not be available to the OS until the system
is rebooted after which the drive works like a charm. 

The error message is produced in drivers/scsi/scsi_scan.c but i believe
the target_alloc() call comes from the drivers/scsi/mtpsas/mptsas.c
driver. Unfortunately my kernelhack-fu is lacking to look into this
further. As stated, Google has no information about this either.

Anyone on this list with clues as to why this happens or how to
circumvent it from happening with the other three disks?

Thanks,
With regards,
-Sander.
-- 
| How do you write zero in Roman numerals?
| 4096R/20CC6CD2 - 6D40 1A20 B9AA 87D4 84C7  FBD6 F3A9 9442 20CC 6CD2

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-02-02 13:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-18 10:06 scsi_scan.c reports 'target allocation failed, error -6' w/ mptsas Sander Smeenk
2012-01-20  3:57 ` Nandigama, Nagalakshmi
2012-01-23 13:03   ` Sander Smeenk
2012-01-31  5:24 ` Nandigama, Nagalakshmi
2012-02-02 12:45   ` Sander Smeenk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.