MegaRAID IDE (ATA/66) and MegaRAID IDE 100 (ATA/100) Linux Installation User's Guide MAN-795-LNX 12/13/00
© Copyright 2000 LSI Logic Corporation All rights reserved. LSI Logic Corporation RAID Storage Adapters Division 6145-D Northbelt Parkway Norcross, GA 30071 This publication contains proprietary information which is protected by copyright. No part of this publication can be reproduced, transcribed, stored in a retrieval system, translated into any language or computer language, or transmitted in any form whatsoever without the prior written consent of the publisher, LSI Logic Corporation.
Table of Contents 1 Overview ........................................................................................ 1 2 Installing RedHat on MegaRAID IDE ............................................ 3 Step 1 Download the Required Files .......................................................................................3 Step 2 Create Installation Diskettes .........................................................................................3 Step 3 Installing RedHat..............................
Preface The MegaRAID IDE PCI Bus Master IDE RAID Disk Array Controller provides a cost-effective way to achieve higher transfer rates and reliability. LSI Logic's MegaRAID IDE controller supports two IDE channels and up to four drives. It supports the following drive modes: PIO 0-4, DMA 0-2, and Ultra DMA 0-4. The RAID levels supported are RAID 0, and RAID 1. The highest data transfer rate in UDMA mode 4 is 66 MBs, and in UDMA mode 5 is 100 MBs.
Preface, Continued Package Contents You should have received: • • • • • a MegaRAID IDE RAID Adapter Card a MegaRAID IDE User's Guide software license agreement CD/diskette(s) with the MegaRAID IDE software a warranty registration card Technical Support If you need help installing, configuring, or running the MegaRAID IDE Controller, call LSI Logic technical support at 770-246-8600. Before you call, please complete the MegaRAID IDE Problem Report form on the next page.
MegaRAID IDE Problem Report Form Customer Information Name Company Address City/State Country email address Phone Fax Motherboard: Operating System: Op. Sys. Ver.: MegaRAID IDE Driver Ver.
Preface, Continued Disclaimer This manual describes the operation of the LSI Logic MegaRAID IDE RAID Disk Array Controller.
FCC Regulatory Statement This device complies with Part 15 of the FCC Rules. Operation is subject to the following two conditions: (1) this device may not cause harmful interference, and (2) this device must accept any interference received, including interference that may cause undesired operation. Warning: Changes or modifications to this unit not expressly approved by the party responsible for compliance could void the user's authority to operate the equipment.
1 Overview The purpose of this document is to provide clear instructions on how to install RedHat 6.1 or 6.2 on IDE drives attached to the LSI Logic IDE RAID Controller known as MegaRAID IDE. This document caters to all levels of Linux users. This includes beginning to advanced Linux users. For this reason, advanced users will find parts of this document elementary.
2 MegaRAID IDE Linux Installation User's Guide
2 Installing RedHat on MegaRAID IDE The following steps are required to successfully install the RedHat based Linux Operating System on MegaRAID IDE: Step 1 2 3 4 Description Download the required files Create installation diskettes (two) Installing RedHat Installing the monitoring software Step 1 Download the Required Files Download the required files from the LSI Logic web site located at http://www.lsilogic.com. The files are listed below: File HYPERCONF-1.0-3.I386.RPM Boot.img Post.img Postsmp.
Step 2 Create Installation Diskettes, Continued Windows 95/98 , Continued Steps 1 Description Go to the directory were the files are located. DIR The following is an example of what will appear: Volume in drive C has no label Volume Serial Number is XXXX-XXXX Directory of C:\LINUX_BOOT\ . 10-11-00 .. 10-11-00 boot.img 1,474,560 10-05-00 post.img 1,474,560 10-05-00 postsmp.
Step 2 Create Installation Diskettes, Continued Windows 95/98 , Continued Steps 3 Description After you have successfully created the first diskette, insert the second disk. You can now start to create the post installation disk. Type the same command again followed by to create the second installation diskette: RAWRITE You will again be prompted to enter the name of the boot image file. This time type post.IMG Next, you will be prompted for the target disk drive.
Step 3 Installing RedHat Steps 1 2 3 4 5 6 Description Create a RAID array using the MegaRAID IDE BIOS. Remove all hard disk drives from your system not physically attached to MegaRAID IDE. In your system BIOS, change the boot sequence in such a way that the first boot device is the floppy and the second boot device is the SCSI device. Boot your system using the boot floppy and the RedHat CD disc in your CD-ROM drive. Note: The boot floppy is the first disk you created using the AMIBOOT.IMG image.
Step 3 Installing RedHat, Continued Steps 8 Description Select the
command to see if any partitions exist in the array. If any partitions exit, you must delete them and create three new partitions. The example below shows the
command to see the partition(s) in the RAID and the command to delete the previous partition(s). To confirm that no partitions exist, use the command again.
Step 3 Installing RedHat, Continued Steps Description Command (m for help): p Disk /dev/amiraid/ar0: 16 heads, 63 sectors, 19589 cylinders Units = cylinders of 1008 * 512 bytes Device Boot /dev/amiraid/ar0p1 /dev/amiraid/ar0p2 /dev/amiraid/ar0p3 10 Start 1 4065 4573 End 4064 4572 5080 Blocks 2048224+ 256032 256032 Id 83 83 83 System Linux Linux Linux You should now have three partitions. You must convert one of these partitions to a SWAP partition. To do this, use the command.
Step 3 Installing RedHat, Continued Steps 13 14 Description Click on Edit and assign mount points to the first three partitions. Continue with the normal installation until you come to the boot disk creation screen.
Step 3 Installing RedHat, Continued Steps 15 Description At the prompt type Bash# runpinst You will then be prompted to enter the AMIPINST floppy. Insert this floppy and hit the key. When the prompt returns and the floppy drive light turns off, press to return to the installation window. 16 Note: Do not create a boot floppy. It is not supported by MegaRAID IDE at this time. Click Next, then Exit and Reboot. Remove the floppy and the RedHat CD while your system is rebooting.
3 Running Hyperconf To run MegaRAID IDE simply log on as super user and type the following at the command prompt: Hyperconf Getting Help The easiest way to get help on Hyperconf is to access the Man Page. This can be done by typing the following at the command prompt: Man Hyperconf Working with MegaRAID IDE To activate the menu in Hyperconf, press the key on your keyboard. Note: Hyperconf cannot be navigated using the mouse RAID Options You cannot create or delete a RAID array using Hyperconf.
Information To obtain information about your system, press the and keys to access Information. Item Controller Array Physical Drives Error Log Activity Log Mirror 12 Description Here you will find information concerning the controller.
4 Installing MegaRAID IDE on an Existing Installation Installing MegaRAID IDE on an Existing Installation If you have RedHat installed on your system and want to add additional storage, these are the steps that you should follow. • • • Upgrade the Linux Kernel to provide support for MegaRAID IDE Install MegaRAID IDE drive(s) Install the monitoring software How to Upgrade the Kernel The standard Redhat installation installs kernel 2.2.14-5. Redhat Linux kernel 2.2.14-5.
How to Upgrade the Kernel, Continued The line root=/dev/hda5 will not be correct if you are booting from a different partition. Look for a previous entry in the file for the correct partition. root=/dev/hda? Exit and save lilo.conf. Run the command "lilo –v" Reboot. At the boot prompt hit the tab key. This should give you the option to boot to the new kernel.
Installing MegaRAID IDE Driver Download the zipped driver file for RedHat 6.1 and 6.2 from the LSI Logic web site (http://www.lsilogic.com ). It contains the following files: • • Amiraid.o MAKEDEV Create a directory called /usr/src/linux/drivers/block/amiraid and copy the above files to it. Run the following command: "./MAKEDEV" To load Hyperconf driver run the command: "insmod amiraid.o" To unload the driver run the command: "rmmod amiraid" Note: The driver will not load unless you have created a RAID.
16 MegaRAID IDE Linux Installation User's Guide
5 Trouble Shooting Common Problems Problem Hyperconf does not show any information. I have saved my options in Hyperconf but it does not do what I ask of it. When I load the driver amiraid.o I get an error that the driver was not compiled for this kernel. Possible Solution(s) Make sure you have created a RAID, Hyperconf cannot report on what does not exist. Check to make sure the daemon (spyd) is running. You can do this but entering the following command pidof spyd .
18 MegaRAID IDE Linux Installation User's Guide