Hot Plug and LIBATA
Forgive me as I am sure that this has been asked a 100 times and that the answers are all there to be found, but I am a newbie to Linux and all my experience is within the design of hardware raid. So I have to resolve this, but have come to a dead end.
I have a problem hot-plugging a sata drive and have gone through the following steps:
1 - Initially I was using a standard Linux 2.4.27 kernel and the Silicon Image 3112A's presented the sata drives as HDx. Although the drives functioned fine, hot plug was not possible.
2 - I discovered LIBATA and as it is clearly superior and now presented the drives as SDx.
3 - I could now use a bunch of newer found commands (such as # echo scsi remove-single-drive..) to add and remove the drives. this works as long as I do not physically remove the drive.
4 - if I physically remove a drive, the system hangs when I do an echo scsi add-single-drive..
I am presuming (and it is only a presumption) that LIBATA somehow cannot rescan the sata bus. does anybody know of a workaround / fix / suggestion or decent outlet for a tranquilizer?
Thank you
Quoted 4 lines · Mark Klarzynski
[...]
I am presuming (and it is only a presumption) that LIBATA somehow cannot rescan the sata bus. does anybody know of a workaround / fix / suggestion or decent outlet for a tranquilizer?
Hotplug and libata don't play nicely together, yet.
I am working on this, and I expect others are doing stuff too. Doing anything actually useful is fairly intrusive to the structure and flow of the existing code. Another problem you'd hit is the SCSI layer trying to sync a recently departed drive :)
I don't have a timetable for my work. There are still two things that have got pushed on the stack ahead of hotplug. Neither of these is anywhere near as large or complex as hotplug, thankfully.
Signature · 3 lines
[email protected] Andy Warner Voice: (612) 801-8549 Fax: (208) 575-5634