HP 3PAR RedHat and Oracle Linux Implementation Guide

3. Change to the driver source directory by issuing cd lpfc_<kernel version>
_driver_kit-<version>. For example:
# cd lpfc_2.6_driver_kit-8.2.0.29-1
4. Run the lpfc-install script that builds and installs the lpfc driver. Check the installed
README for more details.
# ./lpfc-install
The script performs the following:
a. The driver source is installed at /usr/src/lpfc from the installed rpm packages
lpfcdriver-<kernal version>_<driver version>. For example:
# ls /usr/src/lpfc/lpfcdriver*
lpfcdriver-2.6-8.0.16.40-2
b. The lpfc driver parameters are added to /etc/modprobe.conf.
c. The newly built Emulex driver lpfc.ko is copied to /lib/modules/<uname
-r>/kernel/drivers/scsi/lpfc. The current lpfc driver is saved at
/usr/src/lpfc/savedfiles.
d. A new ramdisk is created and the currently running ramdisk is copied as
/boot/initrd-<uname -r>.img.
CAUTION: The new ramdisk is always created with the name initrd-<uname
-r>.img. Edit the boot loader to add the correct ramdisk name.
Example: For kernel <uname -r>=2.6.18-53.el5 , the ramdisk created by the script
will be initrd.2.6.18-53.el5.img.
NOTE: You can change Emulex driver parameters by modifying the /etc/
modprobe.conf.local configuration file that enables these driver parameter values when
the drivers are loaded during bootup. Only the parameters required for use with the HP 3PAR
StoreServ Storage are discussed here.
The items in bold were added by the lpfc-install script to the /etc/modprobe.conf
configuration file for a dual ported HBA:
# cat /etc/modprobe.conf
alias eth0 e1000
alias eth1 e1000
alias scsi_hostadapter mptbase
alias scsi_hostadapter1 mptscsih
alias usb-controller ehci-hcd
alias usb-controller1 uhci-hcd
alias scsi_hostadapter2 lpfc
alias scsi_hostadapter3 lpfc
Modifying the /etc/modprobe.conf File and Building the Ramdisk
This section describes how to modify the /etc/modprobe.conf file to set Emulex HBA parameters
and build the ramdisk.
Installing the Emulex HBA 33