[CentOS] SATA hotswap

Fri May 21 14:22:47 UTC 2010
Les Mikesell <lesmikesell at gmail.com>

On 5/21/2010 8:38 AM, Jakub Jedelský wrote:
> Hi all,
>
> I changed a bad disk (automaticly disabled from software raid1 and
> system for I/O error) in one of our servers and now have problem with
> adding new one to system without reboot. Does anybody have an experience
> with this? Or is it possible? :) We're using hotswap AXX6DRV3G for 6
> SATA disks from Intel connected directly to MB (S5520HC from Intel too).
> There is AHCI as driver (enabled in bios), no HW raid.
> I found, something like that
>
> echo"0 0 0"  >/sys/class/scsi_host/host<n>/scan
>
> but it found only sda disk which is already running..
> Using CentOS 5.5, x86_64.
>
> Thanks for your ideas and replies ... and excuse my english please :)

SATA hotswaps are up to the controller to notice.  Some (most?) will do 
it automatically.  If they don't, I don't think there is a way to force 
it.  'dmesg' should show the disconnect/reconnect activity and the new 
device name.

-- 
   Les Mikesell
    lesmikesell at gmail.com