农大项目(在linux上安装RDAC驱动)

1. 再linux上安装RDAC的时候出错
安装rdac报错
[root@database1 linuxrdac-09.02.C5.13]# make
make V=0 -C/lib/modules/2.6.18-8.el5xen/build  M=/root/test2/linuxrdac-09.02.C5.13 MODVERDIR=/lib/modules/2.6.18-8.el5xen/build/.tmp_versions SUBDIRS=/root/test2/linuxrdac-09.02.C5.13 modules
make: *** /lib/modules/2.6.18-8.el5xen/build: 没有那个文件或目录。 停止。
make: *** [mppUpper] 错误 2

说没有找到目录.

解决这个问题
2).仔细看rdac 安装的readme
  1〉HBA 支持的型号
HBA Support
================================================================
    The RDAC driver is supported on the following host
    bus adapters:
        iSCSI Qlogic
        PCI-X :Qlogic 4050C, Qlogic 4052C
        PCI-E :Qlogic 4060C, Qlogic 4062C

        Fibre Channel Qlogic
        PCI-E : QLE2460, QLE2462  (4Gb)
        PCI-E : QLE236x (2Gb)
        PCI-X : QLA2460, QLA2462 (4Gb)
        PCI-X : QLA2310F, QLA2340, QLA2342 (2Gb)
        PCI-X : QLA2000 (1Gb)

        SAS LSI Logic
        PCI-X : LSISAS3800-X, LSI SAS3442X-R, LSI SAS3442E-R 

        Fibre Channel LSI Logic:
        PCI-X : LSI7204XP-LC, LSI7404XP-LC, LSI7104XP, (4Gb)
        PCI-X : LSI7202XP, LSI7402XP (2Gb)
        LSI7104EP, LSI7204EP

2〉. Co-existence with QLogic and LSI failover drivers
================================================================
    The RDAC driver cannot co-exist with an HBA-level failover
    driver such as the Emulex, QLogic or LSI Logic HBA failover drivers.
   RDAC不能和lsi 或QLOGIC的容错驱动共存


3> Requirements before RDAC driver package installation
     -----------------------------------------------------------
        a. It's assumed that the host system that you are
           installing the RDAC driver to has Supported HBA's.

        b. Although the system can have Fibre Channel HBAs from
           multiple vendors or multiple models of HBAs from the
           same vendor, only the same model of HBAs can be
           connected to each Storage Array.

        c. It is assumed that the low level HBA driver has been
           properly built and installed before RDAC driver
           installation.

        d. The standard HBA driver needs to be loaded before
           the RDAC driver installation. The HBA driver has to
           be a non-failover driver. 
 
           For QLogic HBAs, the base driver is named "qla2xxx"
           and host driver is named "qla2300" .

           For LSI Logic HBAs, the port driver is named
           mptbase and the host driver is named mptscsi or
           mptscsih, for the mpt driver version earlier than
           3.02.xx. The 3.02.xx or later LSI mpt driver splits to three
           driver modules - mptspi, mptsas and mptfc for SCSI parallel
           interface transport, SAS transport and Fibre Channel
           transport respectively.

      e.       On the SuSE operating system, it is assumed that the
           low level HBA driver names are included in
           INITRD_MODULES in /etc/sysconfig/kernel.

           For the systems that have QLogic HBA's, the modules
           file should include a qla2xxx and qla2300 ( or qla2300).

           For the systems that have LSI Logic HBAs, INITRD_MODULES
           should include mptbase and mptscsi (or mptscsih)
           for pre-3.02.xx version of LSI mpt driver. The INITRD_MODULES
           should include mptbase, mptscsi, mptspi, mptsas and mptfc
           for 3.02.xx or later version of LSI mpt driver.

           For the systems that have IBM Emulex HBAs, INITRD_MODULES
           should include lpfcdd or lpfc.


       f. The kernel source tree for the kernel version to be
           built against should already be installed before 
           RDAC driver package installation.

        g. The glibc-devel(64 bit) package is required for 64 bit machines.

总结前面的英文:
RDAC被安装前需要的的条件:a.系统里有支持的HBA卡,b:系统同时连到磁盘阵列的HBA卡型号必须一至。C.
D.HBA卡的驱动必须是STANDARD类型,而不是 带失败切换的驱动。E:对于QLOGIC的,需要安装ALA2XXX 和qla2300
f:kernel source tree 应该先被安装  g:对于64位的机器 需要安装 glibc-devel(64bit)

感觉条件都达到了,除非QLOGIC的HBA驱动不行,但是我们从主机已经可以看到盘阵了,所以应该不是HBA驱动不行的原因,
很可能是REDHAT上面还差几个支持包没有打好,导致不能够


4〉lsmod 察看qlogic 的HBA卡驱动程序是否安装:

[root@database1 ~]# lsmod
Module                  Size  Used by
nls_utf8                6209  0
hfsplus                76101  0
bridge                 53725  0
netloop                10817  0
netbk                  78017  0 [permanent]
blktap                385125  2 [permanent]
blkbk                  21089  0 [permanent]
autofs4                23749  2
hidp                   23105  2
rfcomm                 42457  0
l2cap                  29505  10 hidp,rfcomm
bluetooth              53925  5 hidp,rfcomm,l2cap
sunrpc                142973  1
dm_mirror              29840  0
dm_mod                 56665  1 dm_mirror
video                  19269  0
sbs                    18533  0
i2c_ec                  9025  1 sbs
button                 10705  0
battery                13637  0
asus_acpi              19289  0
ac                      9157  0
ipv6                  251137  30
parport_pc             29157  0
lp                     15849  0
parport                37641  2 parport_pc,lp
sg                     35933  0
pcspkr                  7105  0
i2c_i801               11341  0
i2c_core               23745  2 i2c_ec,i2c_i801
e1000                 117201  0
serial_core            23617  0
ide_cd                 40033  0
cdrom                  36705  1 ide_cd
serio_raw              10693  0
qla2xxx               749985  1
scsi_transport_fc      37065  1 qla2xxx
ata_piix               17609  0
libata                 97625  1 ata_piix
mptsas                 29001  3
mptscsih               26177  1 mptsas
mptbase                53089  2 mptsas,mptscsih
scsi_transport_sas     29249  1 mptsas
sd_mod                 22977  5
scsi_mod              130893  8 sg,qla2xxx,scsi_transport_fc,libata,mptsas,mptscsih,scsi_transport_sas,sd_mod
ext3                  123081  3
jbd                    56553  1 ext3
ehci_hcd               33229  0
ohci_hcd               23645  0
uhci_hcd               25677  0

在网上找到解决方法:
说安装报那个错误的原因是没有安装合适的包。
1>安装如下几个包:(红色的)
compat-gcc-34-3.4.6-4.i386.rpm         kernel-PAE-devel-2.6.18-8.el5.i686.rpm
compat-gcc-34-c++-3.4.6-4.i386.rpm     kernel-xen-devel-2.6.18-8.el5.i686.rpm
compat-libstdc++-33-3.2.3-61.i386.rpm  libXp-1.0.0-8.i386.rpm
kernel-2.6.18-8.el5.i686.rpm           rdac-LINUX-09.02.C5.13-source.tar.gz
kernel-devel-2.6.18-8.el5.i686.rpm     sysstat-7.0.0-3.el5.i386.rpm
kernel-PAE-2.6.18-8.el5.i686.rpm

2.>解压缩rdac-LINUX-09.02.C5.13-source.tar.gz
并在上面安装 make
make install
安装后,在boot 菜单上生成了文件 mpp-2.6.18-8.el5xen.img

3.>把编译后的内核作为img的启动引导
vi /boot/grub/menu.lst
把最后一行的img文件注释掉掉,加入刚才生成的img文件
title Red Hat Enterprise Linux Server (2.6.18-8.el5xen)
        root (hd0,0)
        kernel /boot/xen.gz-2.6.18-8.el5
        module /boot/vmlinuz-2.6.18-8.el5xen ro root=LABEL=/ rhgb quiet
        module /boot/mpp-2.6.18-8.el5xen.img


问题解决了

阅读更多
个人分类: STORAGE LINUX
上一篇农大项目(linux下安装磁盘阵列驱动)
下一篇linux 下挂载磁盘阵列
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

关闭
关闭
关闭