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 :) -- Jakub Jedelsk? e-mail/jabber: jakub.jedelsky at gmail.com http://dev.stderr.cz -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20100521/7eb2fa14/attachment.html>
Jakub wrote:> > 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..Not sure what you're supposed to echo, there. I learned, where I'm working now, to use scsi-rescan-bus, which seems to work.> Using CentOS 5.5, x86_64. > > Thanks for your ideas and replies ... and excuse my english please :)There's nothing to excuse - it's better than some folks who allegedly speak it as a native language (we'll leave out a former US president, here....) mark
At Fri, 21 May 2010 15:38:44 +0200 CentOS mailing list <centos at centos.org> 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 :)I didn't need to do anything special when inserting disks into my (cheap) 4x 2.5" SATA hot swap bay. Just inserted the drive and the HAL/udev deamon pick it up all on its own. My motherboard is a nVidia-based: 00:09.0 SATA controller: nVidia Corporation MCP78S [GeForce 8200] AHCI Controller (rev a2) And I am using the AHCI driver. CentOS 5.4, x86_64 (xen). It could be that the SATA controller on your motherboard does not support hotswap detection (not all AHCI controllers support hotswap detection). -- Robert Heller -- 978-544-6933 Deepwoods Software -- Download the Model Railroad System http://www.deepsoft.com/ -- Binaries for Linux and MS-Windows heller at deepsoft.com -- http://www.deepsoft.com/ModelRailroadSystem/
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
>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..Just for your light reading on this matter: http://www.linuxjournal.com/article/7321 Good article outlining that usage...
2010/5/21 Jakub Jedelsk? <jakub.jedelsky at gmail.com>:> 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 :) > -- > Jakub Jedelsk? > e-mail/jabber: jakub.jedelsky at gmail.com > http://dev.stderr.cz >I use the following command to rescan all scsi devices for f in /sys/class/scsi_host/host*; do echo "- - -" > $f/scan; done You can also rescan the partitions on the devices with partprobe -s /dev/sd? Ryan
Jakub Jedelsk? schrieb:> 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 :) > -- > Jakub Jedelsk? > e-mail/jabber: jakub.jedelsky at gmail.com > <mailto:jakub.jedelsky at gmail.com> > http://dev.stderr.cz > > > ------------------------------------------------------------------------ > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centossame mobo (Intel S5520HC) here, and also BIOS configured such that the AHCI driver is being used. I noted the same as you: hotswap does not seem to work - detecting a new disk appears to need a cold start. (I did not try to play with something like echo "0 0 0">/sys/class/scsi_host/host<n>/scan )Hotswap does work on all my non-S5520HC mobos that have AHCI, though. HTH, Kay