How to get SATA card drivers to load before md autodetection?
Hi there. I'm not quite sure if this is the right forum to post this to... feel free to move it if you want.
Well, I've created a software RAID5 partition on Linux (Slackware 10.0) using the mdadm tools, but the array isn't being recognised on startup (I need to manually re-assemble the array after each reboot to get it recognised). Now the reason for this is that the array is on a Highpoint SATA controller card, for which I have compiled the drivers (it isn't supported natively), and I load them up during bootup by having added "modprobe hptr1540" to /etc/rc.d/rc.local. The problem is that md detects and mounts arrays before the highpoint driver is loaded, and therefore doesn't see my RAID5 array. How can I get the Highpoint drivers to load before the arrays get detected? I assume there must be a way to do this, as this is a pretty common thing to be needing to do... Thanks for the help guys... |
Try placing the highpoint module in the ramdisk file. Make sure the module is decompress and you edit a script in the ramdisk file to load the module. You should not place modules that need to be loaded in rc.local. Its better to use /etc/modules.conf, /etc/modprobe.conf, or if you do not know the syntax of those files use /etc/rc.d/rc.modules.
I have not setup RAID yet. I know you are using RAID 5, but read howtos on RAID 0 and RAID 1 setups. You probably get some ideas how to get it working every time you boot in to Linux. |
Well, I've added the "modprobe hptr1540" line to /etc/rc.d/rc.modules, instead of /etc/rc.d/rc.local, and it doen't seem to have really made any difference: the driver still gets loaded after the md detection stage, which means the array doesn't get picked up.
Any ideas? |
Quote:
|
Right... cheers, I'll have a look into that. Is it entirely necessary in my case though? I'm not trying to boot off the RAID array here... I just want it to be autodetected...
|
Right.... well I've gone for the hacky solution of just adding this right at the end of my /etc/rc.d/rc.S file:
Code:
modprobe hptr1540 |
All times are GMT -5. The time now is 12:23 PM. |