農大項目(在linux上安裝RDAC驅動)

來源:互聯網
上載者:User

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

問題解決了

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.