免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12
最近访问板块 发新帖
楼主: crazygod
打印 上一主题 下一主题

[存储网络] EmulexHBA卡在Linux下的安装方法 [复制链接]

论坛徽章:
0
11 [报告]
发表于 2005-09-19 00:11 |只看该作者

EmulexHBA卡在Linux下的安装方法

Rose HA

论坛徽章:
0
12 [报告]
发表于 2005-09-21 10:07 |只看该作者

EmulexHBA卡在Linux下的安装方法

qlogic 的驱动需要到QLOGIC网站上下载。每个版本的系统,都有相应的驱动。但是QLOGIC配置要比EMULEX要麻烦些。
EMULEX下载驱动和调试软件比较麻烦,是韩国的网站。速度奇慢。

在linux下面安装,直接用rpm包安装就可以了。安装完成后重起,再安装调试软件。

论坛徽章:
0
13 [报告]
发表于 2005-09-21 10:17 |只看该作者

EmulexHBA卡在Linux下的安装方法

原帖由 "rdd" 发表:

这么做好像有点把点问题哦。你应该做到ramdisk中去 不知道我说的对不对


说得没错。
凡是SCSI卡和HBA卡都应该加到RAMDISK中去。

论坛徽章:
0
14 [报告]
发表于 2005-09-23 10:32 |只看该作者

EmulexHBA卡在Linux下的安装方法

hi,没想到自己很早写的一点心得竟然浮上来了。呵呵,感慨,现在不搞这些研究了,在慢慢的变化............

论坛徽章:
0
15 [报告]
发表于 2005-09-26 14:02 |只看该作者

EmulexHBA卡在Linux下的安装方法

还要做lun binding的,不然storage的lun可能就会变成sda了.emulex的驱动说明文档里写的很清楚.

论坛徽章:
0
16 [报告]
发表于 2005-09-26 14:30 |只看该作者

EmulexHBA卡在Linux下的安装方法

[quote]原帖由 "redwaves"]Rose HA[/quote 发表:


和Rose HA有什么关系?

论坛徽章:
0
17 [报告]
发表于 2005-09-27 16:27 |只看该作者

EmulexHBA卡在Linux下的安装方法

1。安装EMULEX
redhat  as3   
tar xzf lpfc-<driver version>;.tar.gz     //解压安装包
如:#tar xzf lpfc_2.4_driver_kit-7.3.2-1.tar
#cd  lpfc_2.4_driver_kit-7.3.2-1
#./lpfc-install                //执行安装脚本
#reboot                          //重起服务器
如果在安装驱动程序中,报IO和IRQ参数错,检查Firmware版本,升级为最新的版本

as3  update  4  已经有此驱动了
2。storage的lun可能就会变成sda?
解决方法:

#cat /etc/module.conf
alias scsi_hostadapter lpfc                //        Emulex  HBA
alias scsi_hostadapter1 aic7xxx             //scsi卡
options scsi_mod max_scsi_luns=256

需要将加载顺序改变,如
alias scsi_hostadapter1 aic7xxx           //scsi卡
alias scsi_hostadapter2 lpfc                //        Emulex  HBA
options scsi_mod max_scsi_luns=256
重建内核
cd /boot
# mkinitrd -v -f  initrd-2.4.21-27.ELsmp.img `uname -r `
#reboot

论坛徽章:
0
18 [报告]
发表于 2006-01-19 16:00 |只看该作者
我单位一个AX100阵列原本安装在Linux主机上运行正常,后换另一主机,几经周折,总算弄好了。

1、安装RedHat Linux安装CD上的kernel_source的rpm包到服务器(据厂家工程师说,RedHat Linux版本应在8.0以上,否则gcc编译Emulex HBA卡的驱动程序会有问题,我们用的是RedHat Linux 10 Fedora Core1 版本):
rpm -ivh kernel-source-2.4.22-1.2115.nptl.i386.rpm
否则lpfc-install会提示"RPM cannot be installed: kernel-devel-2.4.22-1.2115.nptl package is required."

2、执行HBA驱动安装,lpfc-install
# ./lpfc-install
Emulex LPFC Driver Installer Version 1.4.1.7
Determining distribution type and kernel version ...
Checking for old Emulex driver ...
Looking for kernel source ...
Looking for compilers ...
Searching for LPFC Driver source RPM from /backup/setup/ax-100/lpfc_2.4_driver_kit-7.1.14-3/. ...
Installing package ...
Preparing...                ########################################### [100%]
   1:lpfcdriver             ########################################### [100%]
***************
* Source Files are now available under /usr/src/lpfc
* RPM installer will now attempt to :
* Step 1: Install lpfc.conf file in /etc [ ln -s /usr/src/lpfc/lpfc.conf /etc/lpfc.conf ]
* Step 2: Build driver from sources and install under /lib/modules [ make -C /usr/src/lpfc build install]
***************
* Action : Step 1: Installing lpfc.conf file ...
* Done   : Step 1: New lpfc.conf file has been installed in /etc
****************
* Action : Step 2: Building driver ..........
* Done   : Step 2: The driver has been compiled and installed under /lib/modules
*************************************************************
* The Emulex LPFC Driver has been installed on your system. *
*************************************************************
Loading LPFC Driver ....
Searching for LPFC DFC Driver source RPM from /backup/setup/ax-100/lpfc_2.4_driver_kit-7.1.14-3/. ...
Installing package ...
Preparing...                ########################################### [100%]
   1:lpfcdfcdriver          ########################################### [100%]
***************
* Source Files are now available under /usr/src/lpfc/ioctls
* RPM installer will now attempt to :
* Step 1: Build driver from sources and install under /lib/modules [ make -C /usr/src/lpfc/ioctls build install]
***************
* Action : Step 1: Building driver ...
* Done   : Step 1: The driver has been compiled and installed under /lib/modules
************************************************************
* The Emulex DFC Driver has been installed on your system. *
************************************************************
Loading LPFC DFC Driver ..
Installing Emulex DFC driver startup script ...
Package installation complete
Configuring ramdisk...
Configuring /etc/modules.conf ...
Original saved as /etc/modules.elx
Original ramdisk image /boot/initrd-2.4.22-1.2115.nptl.img saved as /boot/initrd-2.4.22-1.2115.nptl.img.elx
Creating ramdisk ..

1 message generated during installation:

o The ramdisk for this kernel has been updated.

Please reboot this system to complete the installation
of the Emulex LPFC driver kit.


3、重启后可以看到模块已装入:
# lsmod
Module                  Size  Used by    Not tainted
lpfcdfc               144488   0  (unused)
lpfc                  215856   0  [lpfcdfc]
scsi_mod              108104   4  [lpfc sg cciss aic7xxx sd_mod]

4、安装naviserverutil包
rpm -ivh naviserverutil.rpm-i386.rpm

5、执行/opt/Navisphere/bin/naviserverutilcli,提示:
Welcome to Navisphere Server Utility - version : 1.0 (6.8.1.2.21)
Aborted

6、系统认不到HBA卡?咨询厂家工程师,提示可以从AX100的浏览器界面将阵列分配给服务器使用,登录AX100的浏览器界面,在Connections菜单界面发现HBA卡与阵列连接正常(Fibre HBA: 20:00:00:00:C9:3F:B7:32... A-1 Active),按界面提示将阵列中建好的Virtual Disk“Assign”给主机使用。

7、重启主机,# fdisk -l显示:
Disk /dev/sda: 268.4 GB, 268435456000 bytes
255 heads, 63 sectors/track, 32635 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

注:如果AX100中的Virtual Disk没有重建,则原来的分区也可以看到,但我们重建了Virtual Disk。

8、重新分区,# fdisk /dev/sda
创建1个主分区,占用所有空间,分区类型选83-Linux,存盘退出
fdisk -l 显示:
Disk /dev/sda: 268.4 GB, 268435456000 bytes
255 heads, 63 sectors/track, 32635 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/sda1             1     32635 262140606   83  Linux

9、格式化分区:# mkfs -V -t ext3 /dev/sda1

10、最后把/dev/sda1 mount起来,就可以使用了。

[ 本帖最后由 kiki2000 于 2006-1-19 16:01 编辑 ]
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP