admin 管理员组文章数量: 887037
2024年2月20日发(作者:ldapsearch 渗透)
分类: LINUX
一、老版本的FC HBA卡驱动安装(qlinstall命令直接安装):
1、首先下载Qlogic HBA卡的驱动(),上传到tmp目录,解压缩,并进入解压缩目录
[root@redhattmp]# cd qlafc-linux-8.02.23-3-install
2、解压缩后生成的文件:
[root@redhat qlafc-linux-8.02.23-3-install]# ls
agents scli-1.7.2-
LinuxTools qlinstall
set_driver_param
3、执行安装命令:
[root@redhat qlafc-linux-8.02.23-3-install]# ./qlinstall
#*********************************************************#
# SANsurfer Driver Installer for Linux #
# Installer Version: 1.01.00pre22 #
#*********************************************************#
Kernel version: 5
Distribution: Red Hat Enterprise Linux Server release 5.4 (Tikanga)
Found following QLogic Adapter in the system
1. QLE2460
Installation will begin for following driver
1. qla2xxx version: v8.02.23
Warning: Found an installed driver. Version: v8.01.06
Overriding the already
Unloading any loaded drivers
Uninstall of rpm version v8.01.
Restoring original
Removing installation changes from /etc/....
Building
QLA2XXX -- Rebuilding
Removing QLogic HBA
Done.
Preparing packages
scli-1.7.2-7
##################################################
qla2xxx ##################################################
QLA2XXX -- Building the qla2xxx driver,
Installing in /lib/modules/5/kernel/kernel/
QLA2XXX -- Installing the qla2xxx modules to
/lib/modules/5/kernel/drivers/scsi/qla2xxx/...
Setting up QLogic HBA
Please make sure the /usr/lib/ file is not in use.
Installing ia32 api binary.
Library 4.00 build25 already installed at /usr/lib/.
Done.
Loading module qla2xxx_conf version: v8.
Loaded module qla2xxx_conf
Loading module qla2xxx version: v8.
Loaded module qla2xxx
Building default persistent binding using SCLI
Warning: PrefOpenPreferenceFile: Failed to open preference file (/etc/ties).
Saved copy of /etc/ as
/usr/src/qlogic/v8.02.23-3/backup/
Saved copy of /boot/ as
/boot/5_
QLA2XXX -- Rebuilding
Ramdisk created.
Reloading the QLogic FC
Unloaded module qla2xxx
Loading module qla2xxx_conf version: v8.
Loaded module qla2xxx_conf
Loading module qla2xxx version: v8.
Loaded module qla2xxx
Target Information on all HBAs:
==============================
Warning: PrefOpenPreferenceFile: Failed to open preference file (/etc/ties).
--------------------------------------------------------------------------------
HBA Instance 0: QLE2460 Port 1 WWPN 21-00-00-1B-32-1E-75-A6 PortID 00-00-00
--------------------------------------------------------------------------------
No device connected to selected HBA (Instance 0)!
Installing the qlinstall-autoload script in /etc/init.d/
#*********************************************************#
# INSTALLATION SUCCESSFUL!! #
# SANsurfer Driver installation for Linux completed #
#*********************************************************#
4、安装成功
如果在/proc/scsi/目录下出现qla2xxx/目录说明安装已经成功,设备正常运行
[root@redhat qlafc-linux-8.02.23-3-install]# cat /proc/scsi/qla2xxx/* |grep adapter-port
scsi-qla0-adapter-port=2100001b321e75a6;
[root@redhat qlafc-linux-8.02.23-3-install]#
5、查看驱动版本:
$ rpm -qa |grepqla
qla2xxx-v8.02.23-3
6、qlinstall命令其他参数
qlinstall -h 查看帮助
qlinstall -i 安装
qlinstall -up 升级
qlinstall -u 卸载
二、新版本驱动安装(源码,src,需要手工生产ko文件)
1、第一种方法
看自带的readme文件
2、第二种方法
先安装老版本如8.02.23
然后,解压新版本
@4:~ $ tar -xzf
@4:~ $ cd qla2xxx-src-8.03.01.06.05.06-k
@4:~/qla2xxx-src-8.03.01.06.05.06-k $
使用make命令指定-C参数,在当前目录生成.ko文件
@4:~/qla2xxx-src-8.03.01.06.05.06-k $ make
/usr/src/kernels/5
-x86_64 M=`pwd` modules
make: Entering directory `/usr/src/kernels/5-x86_64'
CC [M] /home//qla2xxx-src-8.03.01.06.05.06-k/qla_os.o
CC [M] /home//qla2xxx-src-8.03.01.06.05.06-k/qla_init.o
CC [M] /home//qla2xxx-src-8.03.01.06.05.06-k/qla_mbx.o
CC [M] /home//qla2xxx-src-8.03.01.06.05.06-k/qla_iocb.o
CC [M] /home//qla2xxx-src-8.03.01.06.05.06-k/qla_isr.o
CC [M] /home//qla2xxx-src-8.03.01.06.05.06-k/qla_gs.o
CC [M] /home//qla2xxx-src-8.03.01.06.05.06-k/qla_dbg.o
CC [M] /home//qla2xxx-src-8.03.01.06.05.06-k/qla_sup.o
CC [M] /home//qla2xxx-src-8.03.01.06.05.06-k/qla_attr.o
CC [M] /home//qla2xxx-src-8.03.01.06.05.06-k/qla_mid.o
CC [M] /home//qla2xxx-src-8.03.01.06.05.06-k/qla_nlnk.o
CC [M] /home//qla2xxx-src-8.03.01.06.05.06-k/ql2100_fw.o
CC [M] /home//qla2xxx-src-8.03.01.06.05.06-k/ql2200_fw.o
CC [M] /home//qla2xxx-src-8.03.01.06.05.06-k/ql2300_fw.o
CC [M] /home//qla2xxx-src-8.03.01.06.05.06-k/ql2322_fw.o
CC [M] /home//qla2xxx-src-8.03.01.06.05.06-k/ql2400_fw.o
CC [M] /home//qla2xxx-src-8.03.01.06.05.06-k/ql2500_fw.o
LD [M] /home//qla2xxx-src-8.03.01.06.05.06-k/qla2xxx.o
Building modules, stage 2.
MODPOST
CC /home//qla2xxx-src-8.03.01.06.05.06-k/.o
-C
LD [M] /home//qla2xxx-src-8.03.01.06.05.06-k/
make: Leaving directory `/usr/src/kernels/5-x86_64'
将新生产的文件,替换老版本的文件
以下内容为补充:
6、查看HBA卡模块的信息
@4:~/qla2xxx-src-8.03.01.06.05.06-k $ /sbin/modinfo qla2xxx|head
filename: /lib/modules/5/kernel/drivers/scsi/qla2xxx/
version: 8.02.23
license: GPL
description: QLogicFibre Channel HBA Driver
author: QLogic Corporation
srcversion: BBC3E01BB8B551306290FC7
alias: pci:v00001077d00002532sv*sd*bc*sc*i*
alias: pci:v00001077d00005432sv*sd*bc*sc*i*
alias: pci:v00001077d00005422sv*sd*bc*sc*i*
alias: pci:v00001077d00008432sv*sd*bc*sc*i*
版权声明:本文标题:Linux系统上安装FC HBA卡驱动 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.freenas.com.cn/free/1708393913h522493.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论