LSI MegaRAID Linux User Guide

Supported Controllers

For MegaRAID SAS controllers, please see this document.

OS Note

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:

  1. Edit /etc/modules.conf and replace megaraid with megaraid2
    alias scsi_hostadapter megaraid2
    
  2. Create new initial ramdisk using mkinitrd
    	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
    
  3. Reboot the system

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'.

RAID Management:

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.

Red Hat Linux/CentOS (for 32-bit and 64-bit)

	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

SuSE Linux (32-bit)

	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

SuSE Linux (64-bit)

	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.