2–Driver Installation and Configuration
Linux Driver Installation and Configuration
13
CU0354604-00 P
Installing the Linux Fibre Channel Driver
This section provides procedures for installing the Linux Fibre Channel driver for
the following operating systems:
Building the Driver for RHEL 7.x and 8.x
Building the Driver for SLES 12 SP3 and SLES 15/15 SP 1
Building the Driver for RHEL 7.
x
and 8
.x
1.
From the directory that contains the source driver file,
qla2
xxx
-src.v
x
.
xx
.
xx
.
xx
.
xx
.
x
-k.tar.gz
, issue the appropriate
commands.
# tar -xzvf qla2xxx-src-vx.xx.xx.xx.xx.x-k.tar.gz
# cd qla2xxx-src-vx.xx.xx.xx.xx.x-k
2.
Build and install the driver modules from the source code by executing the
build.sh
script as follows:
#
./extras/build.sh install
The
build.sh
script does the following:
Builds the driver
.ko
files.
Copies the
.ko
files to the appropriate
/lib/modules/<kernel
version>/extra/qlgc-qla2
xxx
directory.
Add the appropriate directive in the
modprobe.conf
(if applicable).
3.
(Optional) To manually load the driver, issue the
insmod
or
modprobe
command:
To directly load the driver from the local build directory, issue the
following
insmod
commands in order:
#
modprobe scsi_tgt.ko
(if not already loaded)
#
modprobe scsi_transport_fc.ko
#
insmod ./qla2
xxx
.ko
To load the driver using modprobe, issue the following command:
#
modprobe -v qla2
xxx
To unload the driver using modprobe, issue the following command:
#
modprobe -r qla2
xxx
NOTE
You can optionally complete either or both
of this
procedure.