DS3400 RDAC for RedHat5.3安装文档

1、uname -r 查看操作系统的内核版本号。到

lsi官方网站下载rdac软件包。for ds3000(rdac-LINUX-09.03.0C05.0251-source.tar.gz)

2、将rdac-LINUX-09.03.0C05.0251-source.tar.gz上传到linux系统下。

3、执行解压缩,编译如下:

[root@localhost ~]# cd /tmp/
[root@localhost tmp]# ls
gconfd-root rdac-LINUX-09.03.0C05.0251-source.tar.gz ssh-hLaPQQ3621
[root@localhost tmp]# tar -zxvf rdac-LINUX-09.03.0C05.0251-source.tar.gz
linuxrdac-09.03.0C05.0251/
linuxrdac-09.03.0C05.0251/MPP_hba.c
linuxrdac-09.03.0C05.0251/genuniqueid.c
linuxrdac-09.03.0C05.0251/mppCmn_SysInterface.c
linuxrdac-09.03.0C05.0251/mppCmn_s2tos3.c
linuxrdac-09.03.0C05.0251/mppLnx26p_sysdep.c
linuxrdac-09.03.0C05.0251/mppLnx26p_upper.c
linuxrdac-09.03.0C05.0251/mppLnx26p_vhba.c
linuxrdac-09.03.0C05.0251/mppLnx26p_vhbaio.c
linuxrdac-09.03.0C05.0251/mppLnx26p_vhbalib.c
linuxrdac-09.03.0C05.0251/mppLnx26p_vhbamisc.c
linuxrdac-09.03.0C05.0251/mppLnx26p_vhbaproc.c
linuxrdac-09.03.0C05.0251/mppLnx26p_vhbatask.c
linuxrdac-09.03.0C05.0251/setupMpp26p.sh
linuxrdac-09.03.0C05.0251/setupDriver.SUSE
linuxrdac-09.03.0C05.0251/setupDriver.REDHAT
linuxrdac-09.03.0C05.0251/mpp_rcscript.SUSE
linuxrdac-09.03.0C05.0251/mppiscsi_umountall
linuxrdac-09.03.0C05.0251/mpp_rcscript.REDHAT
linuxrdac-09.03.0C05.0251/mpp.conf
linuxrdac-09.03.0C05.0251/mppSupport
linuxrdac-09.03.0C05.0251/lsvdev
linuxrdac-09.03.0C05.0251/hbaCheck
linuxrdac-09.03.0C05.0251/Readme.txt
linuxrdac-09.03.0C05.0251/utility/
linuxrdac-09.03.0C05.0251/utility/mppBusRescan26p
linuxrdac-09.03.0C05.0251/utility/mppUpdate.1
linuxrdac-09.03.0C05.0251/utility/mppBusRescan.1
linuxrdac-09.03.0C05.0251/utility/mppUpdate26p
linuxrdac-09.03.0C05.0251/utility/mppUtil.1
linuxrdac-09.03.0C05.0251/utility/mppUtil.c
linuxrdac-09.03.0C05.0251/utility/RDAC.9
linuxrdac-09.03.0C05.0251/utility/mppUtil26p_sysdep.c
linuxrdac-09.03.0C05.0251/utility/setupSuseBoot
linuxrdac-09.03.0C05.0251/utility/mppMkInitrd
linuxrdac-09.03.0C05.0251/mpp_linux_headers/
linuxrdac-09.03.0C05.0251/mpp_linux_headers/MPP_Common.h
linuxrdac-09.03.0C05.0251/mpp_linux_headers/MPP_ProtoTypes.h
linuxrdac-09.03.0C05.0251/mpp_linux_headers/MPP_RdacInfo.h
linuxrdac-09.03.0C05.0251/mpp_linux_headers/mppCmn_SysInterface.h
linuxrdac-09.03.0C05.0251/mpp_linux_headers/mppCmn_s2tos3.h
linuxrdac-09.03.0C05.0251/mpp_linux_headers/mppUtil_Common.h
linuxrdac-09.03.0C05.0251/mpp_linux_headers/scsiio.h
linuxrdac-09.03.0C05.0251/mpp_linux_headers/copyright.h
linuxrdac-09.03.0C05.0251/mpp_linux_sys_headers/
linuxrdac-09.03.0C05.0251/mpp_linux_sys_headers/mppLnx26p_prototypes.h
linuxrdac-09.03.0C05.0251/mpp_linux_sys_headers/mppLnx26p_shared.h
linuxrdac-09.03.0C05.0251/mpp_linux_sys_headers/mppLnx26p_vhba.h
linuxrdac-09.03.0C05.0251/mpp_linux_sys_headers/mppLnx_rls_version.h
linuxrdac-09.03.0C05.0251/mpp_linux_sys_headers/mppUtil_Sysdep.h
linuxrdac-09.03.0C05.0251/mpp_linux_sys_headers/MPP_Sysdep.h
linuxrdac-09.03.0C05.0251/mpp_linux_sys_headers/mppLnx_version.h
linuxrdac-09.03.0C05.0251/genfileattributes
linuxrdac-09.03.0C05.0251/Makefile
linuxrdac-09.03.0C05.0251/License.txt
[root@localhost tmp]# ls
gconfd-root                rdac-LINUX-09.03.0C05.0251-source.tar.gz
linuxrdac-09.03.0C05.0251 ssh-hLaPQQ3621
[root@localhost tmp]# cd linuxrdac-09.03.0C05.0251/
[root@localhost linuxrdac-09.03.0C05.0251]# ls
genfileattributes      mppiscsi_umountall     mppLnx26p_vhbatask.c
genuniqueid.c          mpp_linux_headers      mpp_rcscript.REDHAT
hbaCheck               mpp_linux_sys_headers mpp_rcscript.SUSE
License.txt            mppLnx26p_sysdep.c     mppSupport
lsvdev                 mppLnx26p_upper.c      Readme.txt
Makefile               mppLnx26p_vhba.c       setupDriver.REDHAT
mppCmn_s2tos3.c        mppLnx26p_vhbaio.c     setupDriver.SUSE
mppCmn_SysInterface.c mppLnx26p_vhbalib.c    setupMpp26p.sh
mpp.conf               mppLnx26p_vhbamisc.c   utility
MPP_hba.c              mppLnx26p_vhbaproc.c
[root@localhost linuxrdac-09.03.0C05.0251]# make
make[1]: Entering directory `/usr/src/kernels/2.6.18-128.el5-PAE-i686'
CC [M] /tmp/linuxrdac-09.03.0C05.0251/MPP_hba.o
CC [M] /tmp/linuxrdac-09.03.0C05.0251/mppLnx26p_upper.o
CC [M] /tmp/linuxrdac-09.03.0C05.0251/mppLnx26p_sysdep.o
CC [M] /tmp/linuxrdac-09.03.0C05.0251/mppCmn_s2tos3.o
CC [M] /tmp/linuxrdac-09.03.0C05.0251/mppCmn_SysInterface.o
CC [M] /tmp/linuxrdac-09.03.0C05.0251/mppLnx26p_vhbamisc.o
CC [M] /tmp/linuxrdac-09.03.0C05.0251/mppLnx26p_vhbatask.o
CC [M] /tmp/linuxrdac-09.03.0C05.0251/mppLnx26p_vhba.o
CC [M] /tmp/linuxrdac-09.03.0C05.0251/mppLnx26p_vhbaproc.o
CC [M] /tmp/linuxrdac-09.03.0C05.0251/mppLnx26p_vhbalib.o
CC [M] /tmp/linuxrdac-09.03.0C05.0251/mppLnx26p_vhbaio.o
LD [M] /tmp/linuxrdac-09.03.0C05.0251/mppUpper.o
LD [M] /tmp/linuxrdac-09.03.0C05.0251/mppVhba.o
Building modules, stage 2.
MODPOST
CC      /tmp/linuxrdac-09.03.0C05.0251/mppUpper.mod.o
LD [M] /tmp/linuxrdac-09.03.0C05.0251/mppUpper.ko
CC      /tmp/linuxrdac-09.03.0C05.0251/mppVhba.mod.o
LD [M] /tmp/linuxrdac-09.03.0C05.0251/mppVhba.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.18-128.el5-PAE-i686'
make[1]: Entering directory `/usr/src/kernels/2.6.18-128.el5-PAE-i686'
Building modules, stage 2.
MODPOST
make[1]: Leaving directory `/usr/src/kernels/2.6.18-128.el5-PAE-i686'
gcc -I/tmp/linuxrdac-09.03.0C05.0251 -I/tmp/linuxrdac-09.03.0C05.0251/mpp_linux_headers/ -I/tmp/linuxrdac-09.03.0C05.0251/mpp_linux_sys_headers/ -c ./utility/mppUtil.c -o mppUtil.o
/bin/bash ./genfileattributes bld
gcc -I/tmp/linuxrdac-09.03.0C05.0251 -I/tmp/linuxrdac-09.03.0C05.0251/mpp_linux_headers/ -I/tmp/linuxrdac-09.03.0C05.0251/mpp_linux_sys_headers/ -c ./utility/mppUtil26p_sysdep.c -o mppUtilSysdep.o
gcc mppUtil.o mppUtilSysdep.o -o mppUtil
gcc -o genuniqueid genuniqueid.c
[root@localhost linuxrdac-09.03.0C05.0251]# make install
make[1]: Entering directory `/usr/src/kernels/2.6.18-128.el5-PAE-i686'
Building modules, stage 2.
MODPOST
make[1]: Leaving directory `/usr/src/kernels/2.6.18-128.el5-PAE-i686'
make[1]: Entering directory `/usr/src/kernels/2.6.18-128.el5-PAE-i686'
Building modules, stage 2.
MODPOST
make[1]: Leaving directory `/usr/src/kernels/2.6.18-128.el5-PAE-i686'
/bin/bash ./genfileattributes bld
gcc -I/tmp/linuxrdac-09.03.0C05.0251 -I/tmp/linuxrdac-09.03.0C05.0251/mpp_linux_headers/ -I/tmp/linuxrdac-09.03.0C05.0251/mpp_linux_sys_headers/ -c ./utility/mppUtil26p_sysdep.c -o mppUtilSysdep.o
gcc mppUtil.o mppUtilSysdep.o -o mppUtil
Checking Host Adapter Configuration...
Detected 1 Emulex Host Adapter Port(s) on the system
Detected 1 LSI Host Adapter Port(s) on the system
Host Adapters from different supported vendors co-exists on your system.
Please wait while we modify the system configuration files.
Your kernel version is 2.6.18-128.el5PAE
Preparing to install MPP driver against this kernel version...
Generating module dependencies...
Creating new MPP initrd p_w_picpath...
        You must now edit your boot loader configuration file, /boot/grub/menu.lst, to
        add a new boot menu, which uses mpp-2.6.18-128.el5PAE.img as the initrd p_w_picpath.
        Now Reboot the system for MPP to take effect.
        The new boot menu entry should look something like this (note that it may
        vary with different system configuration):

        ...

                title Red Hat Linux (2.6.18-128.el5PAE) with MPP support
                root (hd0,5)
                kernel /vmlinuz-2.6.18-128.el5PAE ro root=LABEL=RH9
                initrd /mpp-2.6.18-128.el5PAE.img
        ...
MPP driver package has been successfully installed on your system.
[root@localhost linuxrdac-09.03.0C05.0251]#

4、生成的文件所在目录:

[root@localhost ~]# cd /boot/
[root@localhost boot]# ls
config-2.6.18-128.el5PAE      initrd-2.6.18-128.el5PAEkdump.img symvers-2.6.18-128.el5PAE.gz
grub                          lost+found                         System.map-2.6.18-128.el5PAE
initrd-2.6.18-128.el5PAE.img mpp-2.6.18-128.el5PAE.img          vmlinuz-2.6.18-128.el5PAE

修改menu.list

将/boot/grub/menu.list 文件做好备份
redhat5.3 所在目录/boot/grub/menu.list

修改initrd /boot/initrd-2.6.18-128.el5PAE.img
修改后initrd /boot/mpp-2.6.18-128.el5PAE.img

重启生效!