MegaIDE Install Instructions (RedHat 9.0(2.4.20-8)) Index 1 Introduction 3 2 Prepare Installation disk(s) 4 2.1 Get required driver image files 4 2.2 Create install disk(s) 4 2.2.1 Using windows system 4 2.2.2 Using Linux system 5 3 Installation methods 5 3.1 Fresh installation 5 3.2 Install megaide as a secondary device (stand alone module) 6 3.3 Install megaide as a secondary device (Build with initrd image) 6 3.4 Update megaide driver on already installed system 8 1 Introduction The purpose of this document is to provide clear instructions on how to install RedHat 9.0 on IDE drives attached to the LSI Logic IDE RAID Controller known as MegaRAID IDE. 2 Prepare Installation disk(s) 2.1 Get required driver image files Megaide driver is provided in the form of driver update disk. Required files for installation listed below. Get these files from the LSI Logic FTP site located at ftp:// www.megaraid.lsilogic.com. New versions of the install image(s) will be made available. The new image(s) will have the same basic name. No File Description 1 dud-.dd MegaRAID IDEal Stack Driver Update Disk 2.2 Create install disk(s) User requires a system with either Microsoft Windows or a UNIX based Operating System and fresh floppy diskette(s) to prepare the install disk(s). The required Installation Diskettes are created on any system. Two common operating system procedures is documented 2.2.1 Using windows system In windows operating system rawwrite floppy image writer utility is used to create disk images from image files. It can be down loaded from Internet. Follow the given procedure to build install diskette(s). Steps Description 1 Copy driver update disc image and the rawrite to a directory Files required are: dud-.dd rawrite.exe 2 Once you have confirmed the files are in the same directory, you may need to change file name of driver update disk to a smaller name with less than 8 characters. copy dud-.dd dud.dd 3 Type the following command followed by to create the two installation diskettes: RAWRITE You will then be prompted to enter the name of the boot image file. Type dud.dd Next, you will be prompted for the target disk drive. Insert a floppy disk into the floppy disk drive and type A Do not remove the disk until the command prompt returns and the floppy disk drive light goes out. Label the Disk “RedHat 9.0 ”. 2.2.2 Using Linux system In linux operating system dd utility is used to create disk images from image files. It can be found in all linux installation. See dd man page for more information about it. Steps Description 1 Copy dud-.dd and boot.img to a linux system 2 Insert a fresh floppy disk in floppy drive Create the Driver Update floppy using the following command: #dd if= dud-.dd of=/dev/fd0 Do not remove the disk until the command prompt returns and the floppy disk drive light goes out. 3 Label the Disk “RedHat 9.0 ” 3 Installation methods There are different types of installation possible with the installation package provided. Those are explained in different sections. 3.1 Fresh installation This mode of installation is selected when user needs to install the Operating system on a fresh MegaRAID IDE controller. For this kind of installation driver update disc is used at the starting of the installation and the installer will update the system with MegaRAID driver images for the required kernels. Follow the procedure given below to install MegaRAID IDEal Soft RAID Stack at the time of Installation. Steps Description 1 Create a RAID array using the MegaRAID IDE BIOS. 2 Boot your system using RedHat 9.0 Disc one 3 At boot prompt type “linux dd” 4 Insert driver update disc when asked. 5 Complete installation with RedHat 9.0 CD’s 3.2 Install megaide as a secondary device (stand alone module) This mode of installation is preferred if megaide controller is used as a secondary device. This is a fast mode of bringing the megaide controller in to active but it is less efficient. It required manual installation of megaide driver module at each boot of the system. Follow the procedure below to achieve this Steps Description 1 Create RAID array on Megaide controller using Megaide BIOS. 2 Boot RedHat 9.0 from primary controller 3 Mount the dud floppy. #mount /dev/fd0 /mnt/floppy 4 Unzip modules.cgz file in driver update disc to get driver images for different RedHat 9.0 kernels #mkdir –p /home/megaide #cd /home/megaide #cp /mnt/floppy/modules.cgz . #gunizip –S .cgz modules.cgz It will generate a new file called modules. #cpio –ivd < modules It will give {2.4.20-8, 2.4.20-8smp, 2.4.20-8bigmem, 2.4.20-8BOOT}/megaide.o 5 Load scsi mid layer modules and Install megaide driver for running kernel #modprobe scsi_mod #cd /home/megaide #insmod /megaide.o 3.3 Install megaide as a secondary device (Build with initrd image) This is preferred if Megaide controller is used as a secondary device. Here megaide driver will be build with the initrd image and there for user need not do insmod at every reboot of the system. Steps Description 1 Create RAID array on Megaide controller using Megaide BIOS. 2 Boot up RedHat 9.0 from primary controller/Disk. 3 Mount the dud floppy. #mount /dev/fd0 /mnt/floppy 4 Unzip modules.cgz file in driver update disc to get driver images for different RedHat 9.0 kernels #mkdir –p /home/megaide #cd /home/megaide #cp /mnt/floppy/modules.cgz . #gunizip –S .cgz modules.cgz It will generate a new file called modules. #cpio –ivd < modules It will give {2.4.20-8, 2.4.20-8smp, 2.4.20-8bigmem, 2.4.20-8BOOT}/megaide.o 5 Install megaide driver module #cd /home/megaide # cp /megaide.o /lib/modules//kernel/drivers/scsi/megaide.o 6 Create Megaide driver Entry in Configuration file. RedHat configuration file is /etc/modules.conf. If megaide entry is not present in /etc/modules.conf add following line. alias scsi_hostadapter megaide 7 Create new initrd image for the required kernel. RedHat uses mk_initrd utility to create initrd image following command will create an initrd image for 2.4.20-8smp kernel in boot directory. See mk_initrd man page more information #mkinitrd /boot/initrd-2.4.20-8smp.img.new 2.4.20-8smp 8 Modify lilo.conf/grub.conf file Add newly created initrd(s) as a new entries in /etc/lilo.conf file. The best suggested method is to copy an existing lilo entry in the file and past it as a new one. Then modify its kernel image name, initrd image name and label name. Sample Lilo Entry image=/boot/vmlinux-2.4.20-8smp label=linux-new initrd=/boot/initrd-2.4.20-8smp.img.new read-only appened=”root=LABEL=/ ” Sample Grub Entry title Red Hat Linux (2.4.20-8smp with megaide driver) root (hd0,0) kernel /vmlinuz-2.4.20-8smp ro root=LABEL=/ initrd /initrd-2.4.20-8smp.img.new 9 Update boot loader If the boot loader is Lilo run lilo command to update boot loader #lilo 10 Reboot the system to the new initrd entries. 3.4 Update megaide driver on already installed system This method is used to update Megaide driver in a system, which is already installed with an older driver version. Here this procedure explains the manual process of updating the driver. Follow the steps given to update driver. Steps Description 1 Create RAID array on Megaide controller using Megaide BIOS. 2 Boot up RedHat 9.0 from primary controller/Disk. 3 Mount the dud floppy. #mount /dev/fd0 /mnt/floppy 4 Unzip modules.cgz file in driver update disc to get driver images for different RedHat 9.0 #mkdir –p /home/megaide #cd /home/megaide #cp /mnt/floppy/modules.cgz . #gunizip –S .cgz modules.cgz It will generate a new file called modules. #cpio –ivd < modules It will give {2.4.20-8, 2.4.20-8smp, 2.4.20-8bigmem, 2.4.20-8BOOT }/megaide.o 5 Update megaide driver module for the required kernels. #cd /home/megaide # cp /megaide.o /lib/modules//kernel/drivers/scsi/megaide.o 6 Create Megaide driver Entry in Configuration file. RedHat configuration file is /etc/modules.conf. If megaide entry is not present in /etc/modules.conf add following line. alias scsi_hostadapter megaide 7 Create new initrd image for the required kernel. RedHat uses mk_initrd utility to create initrd image following command will create an initrd image for 2.4.20-8smp kernel in boot directory. See mk_initrd man page more information #mkinitrd /boot/initrd-2.4.20-8smp.img.new 2.4.20-8smp 8 Modify lilo.conf/grub.conf file Add newly created initrd(s) as a new entries in /etc/lilo.conf file. The best suggested method is to copy an existing lilo entry in the file and past it as a new one. Then modify its kernel image name, initrd image name and label name. Sample Lilo Entry image=/boot/vmlinux-2.4.20-8smp label=linux-new initrd=/boot/initrd-2.4.20-8smp.img.new read-only appened=”root=LABEL=/ ” Sample Grub Entry title Red Hat Linux (2.4.20-8smp with megaide driver) root (hd0,0) kernel /vmlinuz-2.4.20-8smp ro root=LABEL=/ initrd /initrd-2.4.20-8smp.img.new 9 Update boot loader If the boot loader is Lilo run lilo command to update boot loader #lilo 10 Reboot the system to the new initrd entries. MegaIDE RedHat 9.0 Install Instruction 1