For MegaRAID SAS controllers, please see this document.
When using Red Hat Enterprise Linux 3, always use the megaraid2 driver. Do not use the older driver, megaraid, which is unstable under heavy I/O. If RHEL3 is reinstalled, it is necessary to replace the driver manually since the installer uses the old driver. The process consists of the following steps:
alias scsi_hostadapter megaraid2
mkinitrd -f /boot/initrd-2.4.21-27ELsmp.img 2.4.21-27ELsmp mkinitrd -f /boot/initrd-2.4.21-27EL.img 2.4.21-27EL
There are multiple versions of RHEL3 including the original, Update 1, Update 2, Update 3, Update 4, Update 5 and Update 6. Each release might have a different kernel revision. When necessary, replace 2.4.21-27 with the appropriate version number. The kernel version can be extracted by running 'uname -a'.
A console-based raid management utility (megamgr.bin) is used to manage the arrays. In addition, there is another console-based utility (megarc) that can run in a script. Since these tools are not included in any Linux distribution, it is necessary to install them manually if the operating system is reinstalled. For convenience, these tools are included on the ASL Driver CD.
mount /mnt/cdrom cd /mnt/cdrom/ASL-packages/ rpm -i megamon-rh-3.5-1.i386.rpm megamgr-5.20-1.i386.rpm megarc-1.11-1.i386.rpm
mount /media/cdrecorder cd /media/cdrecorder/ASL-packages/ rpm -i megamon-suse-3.5-1.i586.rpm megamgr-5.20-1.i386.rpm megarc-1.11-1.i386.rpm
mount /media/cdrecorder cd /media/cdrecorder/ASL-packages/ rpm -i megamon-suse-3.5-1.x86_64.rpm megamgr-5.20-1.i386.rpm megarc-1.11-1.i386.rpm
RAID events are logged in /var/log/megaserv.log. Note event logging is only available after installing the software above.