Public bug reported:

Hi.

I'm experiencing some strange problem with hotswap on my linux box with
SAS1064 SAS controller and 2.6.24-19 kernel. When I'm trying to remove
disk from system, like this:

# systool -b scsi
Bus = "scsi"

 Device = "0:0:0:0"
 Device = "0:0:1:0"
 Device = "0:0:2:0"
 Device = "0:0:3:0"
 Device = "1:0:0:0"

# echo 1 > 
/sys/class/scsi_host/host0/device/port-0\:0/end_device-0\:0/target0\:0\:0/0\:0\:0\:0/delete
# systool -b scsi
Bus = "scsi"

 Device = "0:0:1:0"
 Device = "0:0:2:0"
 Device = "0:0:3:0"
 Device = "1:0:0:0"

It's OK. Disk successfully removed. When I'm trying to rescan bus
without physical removal of this disk like this:

# echo "- - -" > /sys/class/scsi_host/host0/scan
It's OK again. Disk successfully attached:

# systool -b scsi
Bus = "scsi"

 Device = "0:0:0:0"
 Device = "0:0:1:0"
 Device = "0:0:2:0"
 Device = "0:0:3:0"
 Device = "1:0:0:0"

But when I detach disk from system, physically remove it from box, swap
it with another one and try to attach it like:

# echo "- - -" > /sys/class/scsi_host/host0/scan

Nothing happens. Linux doesn't see any new hard drives attached to this host.
Interesting, that if I will swap disk drives again (inserting an old one), and 
rescan bus - It'll be OK again, and disk will be successfully attached.

I tried 2.6.24-19 and 2.6.26-5 kernels from Hardy and Intrepid
distribution and got the same on both of them. But when I tried Vanilla
2.6.24 or 2.6.26 kernels - It worked as expected. Even handled out
hotplug events. Kernel 2.6.22-14-server from Gutsy distribution worked
fine too.

** Affects: linux (Ubuntu)
     Importance: Undecided
         Status: New

-- 
Hotswapping doesn't work on 2.6.24-19-server kernel with SAS1064
https://bugs.launchpad.net/bugs/259164
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to