beautypg.com

Compiling the driver for multiple kernels, Uninstalling the linux components, Using the source rpm – HP EVA P6000 Storage User Manual

Page 57

background image

# ./INSTALL -F

Compiling the driver for multiple kernels

If your system has multiple kernels installed on it, you can compile the driver for all the installed
kernels by setting the INSTALLALLKERNELS environmental variable to y and exporting it by
issuing the following commands:

# INSTALLALLKERNELS=y

# export INSTALLALLKERNELS

You can also use the -a option of the INSTALL script as follows:

# ./INSTALL -a

Uninstalling the Linux components

To uninstall the components, use the INSTALL script with the -u option as shown in the following
example:

# ./INSTALL -u

To manually uninstall all components, or to uninstall just one of the components, use one or all of
the following commands:

# rpm -e fibreutils

# rpm -e hp_qla2x00

# rpm -e hp_qla2x00src

Using the source RPM

In some cases, you may have to build a binary hp_qla2x00 RPM from the source RPM and use
that manual binary build in place of the scripted hp_qla2x00src RPM. You need to do this if
your production servers do not have the kernel sources and gcc installed.

If you need to build a binary RPM to install, you will need a development machine with the same
kernel as your targeted production servers. You can install the binary RPM-produced RPM methods
on your production servers.

NOTE:

The binary RPM that you build works only for the kernel and configuration that you build

on (and possibly some errata kernels). Ensure that you use the 7.xx version of the hp_qla2x00
source RPM for 2.4 kernel-based distributions and the 8.xx version of the hp_qla2x00 source
RPM for 2.6 kernel-based distributions.

Use the following procedure to create the binary RPM from the source RPM:

1.

Select one of the following options:

Enter the #./INSTALL -S command. The binary RPM creation is complete. You do not
have to perform

2

through

4

.

Install the source RPM by issuing the # rpm -ivh
hp_qla2x00-version-revision.src.rpm

command. Continue with

2

.

2.

Select one of the following directories:

For Red Hat distributions, use the /usr/src/redhat/SPECS directory.

For SUSE distributions, use the /usr/src/packages/SPECS directory.

3.

Build the RPM by using the # rpmbuild -bb hp_qla2x00.spec command.

NOTE:

In some of the older Linux distributions, the RPM command contains the RPM build

functionality.

At the end of the command output, the following message appears:

Linux

57