3ware HTML Bookshelf



3ware® User Guide > Driver Installation > Driver Installation Under Linux > Driver Installation Under Red Hat Linux or Fedora Core

Driver Installation Under Red Hat Linux or Fedora Core
*
*
*
*
Materials required
*
*
*
Red Hat Linux installation DVD or CD-ROM. (Not required if Red Hat Linux is already installed on another drive.)
Creating a Red Hat Linux Driver Diskette
If you are installing Linux on the new drive or unit managed by the 3ware RAID controller, you must create a 3ware driver install diskette. If Linux is already installed on another device, you may install the 3ware kernel driver module from the 3ware software CD-ROM.
To create a Red Hat Linux driver install diskette
1
Insert the AMCC 3ware software CD into your Linux system. A GUI such as X windows is required to load the 3ware menu.
To manually mount the cd, type:
mount -t iso9660 /dev/cdrom /mnt 
To start autorun, type:
/mnt/autorun
When it starts, you will be asked to agree to the AMCC software license. To continue, click Agree.
2
3
A confirmation window opens.
4
Insert a blank diskette into a drive and click the Yes button to begin creating the driver floppy diskette.
 
Note: If you need to create a Linux driver diskette for a Linux distribution other that what is available on the menu, see 3ware knowledgebase article 14546
http://www.3ware.com/kb/article.aspx?id=14546
Installing the 3ware Kernel Driver Module while Installing Red Hat Linux on a New Unit
 
 
Note: We have tested some older systems where a drive connected to the motherboard interfered with using a drive or unit managed by the 3ware RAID controller as a boot device. Disconnecting the drive while installing Linux will eliminate this problem. After Linux is installed, the drive can be reconnected.
To install the 3ware kernel driver module while installing Red Hat or Fedora Core Linux on a new unit
1
a
b
c
linux dd
A number of files will load and then a message will prompt you to insert your driver install disk.
4
Insert the driver install diskette containing the 3ware driver for Red Hat and press Enter.
The system automatically reports: Loading 3w-9xxx
5
6
7
 
Caution: If installing Fedora Core 8 DO NOT reboot after the installation completes. An update script is required in order for the new driver to be loaded automatically after reboot.
mkdir /update
mount /dev/fd0 /update (use same driver disk from step 4)
8
Installing the 3ware Kernel Driver Module on a Red Hat or Fedora Core Linux System that Boots From a Different Device
The steps for installing the 3ware kernel driver module vary slightly, depending on your specific installation requirements. Select the appropriate set of steps below, based on whether:
*
*
About Variables In the Kernel Driver Module Installation Instructions
These conventions are used for variable text for kernel strings and module names in the instructions on the following pages.
Kernel String Conventions
<kernel string> refers to the kernel version.
The kernel string will have different endings, depending on the kernel you are using.
*
*
*
*
Module Naming Conventions
3w-9xxx.* refers to the specific kernel driver module you will copy in the examples shown in steps 3 and 4. The name of the kernel driver module you will copy (3w-9xxx.*) varies, depending on the kernel; however you will always copy it to a file named 3w-9xxx.ko for 2.6 kernels. Depending on the supported release, not all modules may be required or available.
The available kernel driver module files are:
*
*
*
*
For i586 kernels: 3w-9xxx.586
*
For PAE kernels: 3w-9xxx.pae
To install the 3ware driver and update the RAM disk
1
2
To mount the CD, type:
mount /dev/cdrom /mnt and press Enter.
3
For Redhat Linux Intel x86 and AMD, type:
cp /mnt/packages/drivers/linux/redhat/<version>/x86/
3w-9xxx.<ko or pae> /lib/modules/<kernel string>/kernel/drivers/scsi/3w-9xxx.ko
For Fedora Core on Intel x86 and AMD, type:
cp /mnt/packages/drivers/linux/fedora/<version>/x86/
3w-9xxx.<ko, 586, or pae> /lib/modules/<kernel string>/kernel/drivers/scsi/3w-9xxx.ko
If prompted to overwrite, type y.
For Redhat Linux on AMD Opteron and Intel EM64T, type:
cp /mnt/cdrom/packages/drivers/linux/redhat/<version>/x86_64/3w-9xxx.ko /lib/modules/<kernel string>/kernel/drivers/scsi/3w-9xxx.ko
For Fedora Core on AMD Opteron and Intel EM64T, type:
cp /mnt/packages/drivers/linux/fedora/<version>/x86_64/
3w-9xxx.ko /lib/modules/<kernel string>/kernel/drivers/scsi/3w-9xxx.ko
If prompted to overwrite, type y.
4
For 2.6 Kernels, add the following line to /etc/modprobe.conf
alias scsi_hostadapter 3w-9xxx
5
Update the modules.dep file, by issuing the following command:
/sbin/depmod -a 
6
/sbin/mkinitrd -v -f /boot/initrd-<kernel string>.img 
<kernel string>
where <kernel string> is the /lib/modules directory from which to copy the 3w-9xxx driver. Example:
/sbin/mkinitrd -v -f /boot/initrd-2.6.18-14.img 2.6.18-14
7
If you are using the LILO boot loader, run LILO to update the boot record on disk by typing the following:
/sbin/lilo 
The output should be similar to:
Added linux * 
8
The 3ware kernel driver module will be loaded from the ram disk automatically at boot time.
To install the 3ware kernel driver module and load the module manually instead of using a RAM disk
1
2
To mount the CD, type:
mount /dev/cdrom /mnt and press Enter.
3
For Redhat Linux on Intel x86 and AMD x86, type:
cp /mnt/packages/drivers/linux/redhat/<version>/x86/3w‑9xxx.<ko or pae> /lib/modules/<kernel string>/kernel/drivers/scsi/3w-9xxx.ko 
For Fedora Core on Intel x86 and AMD x86, type:
cp /mnt/packages/drivers/linux/fedora/<version>/x86/3w‑9xxx. <ko, 586, or pae> /lib/modules/<kernel string>/kernel/drivers/scsi/3w-9xxx.ko 
If prompted to overwrite, type y.
For Redhat Linux on AMD Opteron and Intel EM64T, type:
cp /mnt/packages/drivers/linux/redhat/<version>/x86_64/
3w-9xxx.ko /lib/modules/<kernel string>/kernel/drivers/scsi/3w-9xxx.ko
For Fedora Core on AMD Opteron and Intel EM64T, type:
cp /mnt/packages/drivers/linux/fedora/<version>/x86_64/
3w-9xxx.ko /lib/modules/<kernel string>/kernel/drivers/scsi/3w-9xxx.ko
If prompted to overwrite, type y.
4
Add the following line to /etc/modprobe.conf:
alias scsi_hostadapter 3w-9xxx 
5
Update the modules.dep file, by issuing the following command:
/sbin/depmod -a 
6
modprobe sd_mod
insmod /lib/modules/<kernel string>/kernel/drivers/scsi/3w-9xxxx.ko 
You can also incorporate the insmod command into a startup script.

Copyright AMCC 2004-2008
To contact Support, log in at https://www.3ware.com

www.3ware.com
1-858-535-6517
1-800-840-6055