硬件环境:
IBM 3950级联
IBM DS4800机头 exp810 sata盘柜 exp810光纤盘柜
光纤交换机 IBM 2005-B16交换机先看系统:
[root@ykt ~]# uname -a
Linux ykt 2.6.18-8.el5xen #1 SMP Fri Jan 26 14:29:35 EST 2007 x86_64 x86_64 x86_64 GNU/Linux
为了避免安装过程中出现不必要的错误,参考网上资料把相关rpm安装包打上:
[root@ykt kernels]# rpm -qa|grep kernel
kernel-PAE-devel-2.6.18-53.el5
kernel-xen-2.6.18-8.el5
kernel-2.6.18-8.el5
kernel-headers-2.6.18-8.el5
kernel-xen-devel-2.6.18-53.el5
kernel-PAE-2.6.18-53.el5
kernel-devel-2.6.18-53.el5
kernel-PAE-devel-2.6.18-8.el5
[root@ykt kernels]# rpm -qa|grep compat
java-1.4.2-gcj-compat-devel-1.4.2.0-40jpp.112
java-1.4.2-gcj-compat-1.4.2.0-40jpp.112
compat-libf2c-34-3.4.6-4
compat-libstdc++-33-3.2.3-61
compat-db-4.2.52-5.1
java-1.4.2-gcj-compat-src-1.4.2.0-40jpp.112
compat-glibc-headers-2.3.4-2.26
compat-gcc-34-c++-3.4.6-4
compat-libstdc++-33-3.2.3-61
compat-glibc-2.3.4-2.26
compat-db-4.2.52-5.1
compat-libstdc++-296-2.96-138
compat-glibc-2.3.4-2.26
compat-gcc-34-g77-3.4.6-4
java-1.4.2-gcj-compat-devel-1.4.2.0-40jpp.112
compat-gcc-34-3.4.6-4
compat-libgcc-296-2.96-138
[root@ykt kernels]# rpm -qa|grep sysstat
sysstat-7.0.0-3.el5
将 rdac-LINUX-09.02.C5.13-source.tar.gz 拷贝到/tmp下
[root@ykt tmp]# ls -l rdac-LINUX-09.02.C5.13-source.tar.gz
-rwxr-xr-x 1 root root 329888 03-07 03:17 rdac-LINUX-09.02.C5.13-source.tar.gz
解压 rdac-LINUX-09.02.C5.13-source.tar.gz
[root@ykt tmp]# cd linuxrdac-09.02.C5.13/
该包中包含如下文件:
[root@ykt linuxrdac-09.02.C5.13]# ls
genfileattributes mppCmn_s2tos3.c mpp_linux_sys_headers mppLnx26p_vhbalib.c mppSupport
genuniqueid.c mppCmn_SysInterface.c mppLnx26p_spinlock_size.c mppLnx26p_vhbamisc.c Readme.txt
hbaCheck mpp.conf mppLnx26p_sysdep.c mppLnx26p_vhbaproc.c setupDriver.REDHAT
License.txt MPP_hba.c mppLnx26p_upper.c mppLnx26p_vhbatask.c setupDriver.SUSE
lsvdev mppiscsi_umountall mppLnx26p_vhba.c mpp_rcscript.REDHAT utility
Makefile mpp_linux_headers mppLnx26p_vhbaio.c mpp_rcscript.SUSE
虽然做了准备,但是安装的过程中还是出现了问题:
[root@ykt linuxrdac-09.02.C5.13]#make V=0 -C/lib/modules/2.6.18-8.el5xen/build M=/tmp/linuxrdac-09.02.C5.13 MODVERDIR=/lib/modules/2.6.18-8.el5xen/build/.tmp_versions
SUBDIRS=/tmp/linuxrdac-09.02.C5.13 modules
9B$b W(x9O'Tdo0make: *** /lib/modules/2.6.18-8.el5xen/build: No such file or directory. Stop.
m;H^o0RF/X7K xw V0make: *** [mppUpper] Error 2
从上面的提示中看,是编译的过程中没有找到/lib/modules/2.6.18-8.el5xen/build文件或者目录
[root@ykt 2.6.18-8.el5xen]cd /lib/modules/2.6.18-8.el5xen
[root@ykt 2.6.18-8.el5xen]# ls -l
总计 1096
lrwxrwxrwx 1 root root 48 11-11 17:09 build -> ../../../usr/src/kernels/2.6.18-8.el5-xen-x86_64
drwxr-xr-x 3 root root 4096 11-11 17:39 extra
drwxr-xr-x 9 root root 4096 11-11 17:09 kernel
-rw-r--r-- 1 root root 244253 03-07 22:37 modules.alias
-rw-r--r-- 1 root root 69 03-07 22:37 modules.ccwmap
-rw-r--r-- 1 root root 183999 03-07 22:37 modules.dep
-rw-r--r-- 1 root root 73 03-07 22:37 modules.ieee1394map
-rw-r--r-- 1 root root 375 03-07 22:37 modules.inputmap
-rw-r--r-- 1 root root 12632 03-07 22:37 modules.isapnpmap
-rw-r--r-- 1 root root 74 03-07 22:37 modules.ofmap
-rw-r--r-- 1 root root 172817 03-07 22:37 modules.pcimap
-rw-r--r-- 1 root root 4033 03-07 22:37 modules.seriomap
-rw-r--r-- 1 root root 94966 03-07 22:37 modules.symbols
-rw-r--r-- 1 root root 319111 03-07 22:37 modules.usbmap
lrwxrwxrwx 1 root root 5 11-11 17:09 source -> build
drwxr-xr-x 2 root root 4096 2007-01-27 updates
drwxr-xr-x 2 root root 4096 2007-01-27 weak-updates
发现build文件是一个连接,指向../../../usr/src/kernels/2.6.18-8.el5-xen-x86_64
[root@ykt 2.6.18-8.el5xen]# cd ../../../usr/src/kernels/
[root@ykt kernels]# ls -l
总计 24
drwxr-xr-x 18 root root 4096 03-07 22:22 2.6.18-53.el5-PAE-i686
lrwxrwxrwx 1 root root 22 03-07 22:22 2.6.18-53.el5PAE-i686 -> 2.6.18-53.el5-PAE-i686
drwxr-xr-x 18 root root 4096 03-07 17:33 2.6.18-53.el5-x86_64
drwxr-xr-x 18 root root 4096 03-07 17:34 2.6.18-53.el5-xen-x86_64
lrwxrwxrwx 1 root root 24 03-07 17:34 2.6.18-53.el5xen-x86_64 -> 2.6.18-53.el5-xen-x86_64
drwxr-xr-x 18 root root 4096 03-07 17:35 2.6.18-8.el5-PAE-i686
lrwxrwxrwx 1 root root 21 03-07 17:35 2.6.18-8.el5PAE-i686 -> 2.6.18-8.el5-PAE-i686
而该目录中没有2.6.18-8.el5xen-x86_64这个目录或者文件
那就给他拷贝一个
[root@ykt kernels]#cp -r 2.6.18-53.el5-xen-x86_64 2.6.18-8.el5xen-x86_64
[root@ykt kernels]# ls -l
总计 24
drwxr-xr-x 18 root root 4096 03-07 22:22 2.6.18-53.el5-PAE-i686
lrwxrwxrwx 1 root root 22 03-07 22:22 2.6.18-53.el5PAE-i686 -> 2.6.18-53.el5-PAE-i686
drwxr-xr-x 18 root root 4096 03-07 17:33 2.6.18-53.el5-x86_64
drwxr-xr-x 18 root root 4096 03-07 17:34 2.6.18-53.el5-xen-x86_64
lrwxrwxrwx 1 root root 24 03-07 17:34 2.6.18-53.el5xen-x86_64 -> 2.6.18-53.el5-xen-x86_64
drwxr-xr-x 18 root root 4096 03-07 17:35 2.6.18-8.el5-PAE-i686
lrwxrwxrwx 1 root root 21 03-07 17:35 2.6.18-8.el5PAE-i686 -> 2.6.18-8.el5-PAE-i686
drwxr-xr-x 19 root root 4096 03-07 22:36 2.6.18-8.el5-xen-x86_64
drwxr-xr-x 2 root root 4096 03-07 22:34 old
再make,ok
[root@ykt linuxrdac-09.02.C5.13]# make
make V=0 -C/lib/modules/2.6.18-8.el5xen/build M=/tmp/linuxrdac-09.02.C5.13 MODVERDIR=/lib/modules/2.6.18-8.el5xen/build/.tmp_versions SUBDIRS=/tmp/linuxrdac-09.02.C5.13 modules
make[1]: Entering directory `/usr/src/kernels/2.6.18-8.el5-xen-x86_64'
CC [M] /tmp/linuxrdac-09.02.C5.13/MPP_hba.o
CC [M] /tmp/linuxrdac-09.02.C5.13/mppLnx26p_upper.o
CC [M] /tmp/linuxrdac-09.02.C5.13/mppLnx26p_sysdep.o
CC [M] /tmp/linuxrdac-09.02.C5.13/mppCmn_s2tos3.o
CC [M] /tmp/linuxrdac-09.02.C5.13/mppCmn_SysInterface.o
CC [M] /tmp/linuxrdac-09.02.C5.13/mppLnx26p_vhbamisc.o
CC [M] /tmp/linuxrdac-09.02.C5.13/mppLnx26p_vhbatask.o
CC [M] /tmp/linuxrdac-09.02.C5.13/mppLnx26p_vhba.o
CC [M] /tmp/linuxrdac-09.02.C5.13/mppLnx26p_vhbaproc.o
CC [M] /tmp/linuxrdac-09.02.C5.13/mppLnx26p_vhbalib.o
CC [M] /tmp/linuxrdac-09.02.C5.13/mppLnx26p_vhbaio.o
LD [M] /tmp/linuxrdac-09.02.C5.13/mppUpper.o
LD [M] /tmp/linuxrdac-09.02.C5.13/mppVhba.o
Building modules, stage 2.
MODPOST
CC /tmp/linuxrdac-09.02.C5.13/mppUpper.mod.o
LD [M] /tmp/linuxrdac-09.02.C5.13/mppUpper.ko
CC /tmp/linuxrdac-09.02.C5.13/mppVhba.mod.o
LD [M] /tmp/linuxrdac-09.02.C5.13/mppVhba.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.18-8.el5-xen-x86_64'
make V=0 -C/lib/modules/2.6.18-8.el5xen/build M=/tmp/linuxrdac-09.02.C5.13 MODVERDIR=/lib/modules/2.6.18-8.el5xen/build/.tmp_versions SUBDIRS=/tmp/linuxrdac-09.02.C5.13 modules
make[1]: Entering directory `/usr/src/kernels/2.6.18-8.el5-xen-x86_64'
Building modules, stage 2.
MODPOST
make[1]: Leaving directory `/usr/src/kernels/2.6.18-8.el5-xen-x86_64'
gcc -D__KERNEL__ -I/lib/modules/2.6.18-8.el5xen/build/include mppLnx26p_spinlock_size.c -o mppLnx_Spinlock_Size
gcc -I/tmp/linuxrdac-09.02.C5.13 -I/tmp/linuxrdac-09.02.C5.13/mpp_linux_headers/ -I/tmp/linuxrdac-09.02.C5.13/mpp_linux_sys_headers/ -c ./utility/mppUtil.c -o mppUtil.o
/bin/bash ./genfileattributes bld
gcc -I/tmp/linuxrdac-09.02.C5.13 -I/tmp/linuxrdac-09.02.C5.13/mpp_linux_headers/ -I/tmp/linuxrdac-09.02.C5.13/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@ykt linuxrdac-09.02.C5.13]# ls
genfileattributes mppCmn_SysInterface.o mppLnx26p_upper.o mppLnx26p_vhbatask.c mppUtil.o
genuniqueid mpp.conf mppLnx26p_vhba.c mppLnx26p_vhbatask.o mppUtilSysdep.o
genuniqueid.c MPP_hba.c mppLnx26p_vhbaio.c mppLnx_Spinlock_Size mppVhba.ko
hbaCheck MPP_hba.o mppLnx26p_vhbaio.o mpp_rcscript.REDHAT mppVhba.mod.c
License.txt mppiscsi_umountall mppLnx26p_vhbalib.c mpp_rcscript.SUSE mppVhba.mod.o
lsvdev mpp_linux_headers mppLnx26p_vhbalib.o mppSupport mppVhba.o
Makefile mpp_linux_sys_headers mppLnx26p_vhbamisc.c mppUpper.ko Readme.txt
Module.symvers mppLnx26p_spinlock_size.c mppLnx26p_vhbamisc.o mppUpper.mod.c setupDriver.REDHAT
mppCmn_s2tos3.c mppLnx26p_sysdep.c mppLnx26p_vhba.o mppUpper.mod.o setupDriver.SUSE
mppCmn_s2tos3.o mppLnx26p_sysdep.o mppLnx26p_vhbaproc.c mppUpper.o utility
mppCmn_SysInterface.c mppLnx26p_upper.c mppLnx26p_vhbaproc.o mppUtil
[root@ykt linuxrdac-09.02.C5.13]# make install
make V=0 -C/lib/modules/2.6.18-8.el5xen/build M=/tmp/linuxrdac-09.02.C5.13 MODVERDIR=/lib/modules/2.6.18-8.el5xen/build/.tmp_versions SUBDIRS=/tmp/linuxrdac-09.02.C5.13 modules
make[1]: Entering directory `/usr/src/kernels/2.6.18-8.el5-xen-x86_64'
Building modules, stage 2.
MODPOST
make[1]: Leaving directory `/usr/src/kernels/2.6.18-8.el5-xen-x86_64'
make V=0 -C/lib/modules/2.6.18-8.el5xen/build M=/tmp/linuxrdac-09.02.C5.13 MODVERDIR=/lib/modules/2.6.18-8.el5xen/build/.tmp_versions SUBDIRS=/tmp/linuxrdac-09.02.C5.13 modules
make[1]: Entering directory `/usr/src/kernels/2.6.18-8.el5-xen-x86_64'
Building modules, stage 2.
MODPOST
make[1]: Leaving directory `/usr/src/kernels/2.6.18-8.el5-xen-x86_64'
/bin/bash ./genfileattributes bld
gcc -I/tmp/linuxrdac-09.02.C5.13 -I/tmp/linuxrdac-09.02.C5.13/mpp_linux_headers/ -I/tmp/linuxrdac-09.02.C5.13/mpp_linux_sys_headers/ -c ./utility/mppUtil26p_sysdep.c -o mppUtilSysdep.o
gcc mppUtil.o mppUtilSysdep.o -o mppUtil
Checking Host Adapter Configuration...
Detected 2 QLogic Host Adapter Port(s) on the system
Please wait while we modify the system configuration files.
Your kernel version is 2.6.18-8.el5xen
Preparing to install MPP driver against this kernel version...
Generating module dependencies...
Creating new MPP initrd image...
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-8.el5xen.img as the initrd image.
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-8.el5xen) with MPP support
root (hd0,5)
kernel /vmlinuz-2.6.18-8.el5xen ro root=LABEL=RH9
initrd /mpp-2.6.18-8.el5xen.img
...
MPP driver package has been successfully installed on your system.
[root@ykt boot]# ls
config-2.6.18-53.el5PAE initrd-2.6.18-8.el5.img symvers-2.6.18-8.el5xen.gz vmlinuz-2.6.18-8.el5
config-2.6.18-8.el5 initrd-2.6.18-8.el5xen.img System.map-2.6.18-53.el5PAE vmlinuz-2.6.18-8.el5xen
config-2.6.18-8.el5xen mpp-2.6.18-8.el5xen.img System.map-2.6.18-8.el5 xen.gz-2.6.18-8.el5
grub symvers-2.6.18-53.el5PAE.gz System.map-2.6.18-8.el5xen xen-syms-2.6.18-8.el5
initrd-2.6.18-53.el5PAE.img symvers-2.6.18-8.el5.gz vmlinuz-2.6.18-53.el5PAE
[root@ykt boot]# cd grub/
[root@ykt grub]# ls
device.map ffs_stage1_5 jfs_stage1_5 reiserfs_stage1_5 stage2 xfs_stage1_5
e2fs_stage1_5 grub.conf menu.lst splash.xpm.gz ufs2_stage1_5
fat_stage1_5 iso9660_stage1_5 minix_stage1_5 stage1 vstafs_stage1_5
[root@ykt ~]# fdisk -l
Disk /dev/sda: 291.9 GB, 291999055872 bytes
255 heads, 63 sectors/track, 35500 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 25 200781 83 Linux
/dev/sda2 26 50 200812+ 83 Linux
/dev/sda3 51 8974 71682030 83 Linux
/dev/sda4 8975 35500 213070095 5 Extended
/dev/sda5 8975 17898 71681998+ 83 Linux
/dev/sda6 17899 25557 61520886 83 Linux
/dev/sda7 25558 30656 40957686 83 Linux
/dev/sda8 30657 34480 30716248+ 83 Linux
/dev/sda9 34481 35500 8193118+ 82 Linux swap / Solaris
Disk /dev/sdb: 858.9 GB, 858993459200 bytes
255 heads, 63 sectors/track, 104433 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
Disk /dev/sdc: 1064.6 GB, 1064689106432 bytes
255 heads, 63 sectors/track, 129441 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdc1 * 1 129441 1039734801 83 Linux
Disk /dev/sdd: 1073.7 GB, 1073740775424 bytes
255 heads, 63 sectors/track, 130541 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdd1 * 1 130541 1048570551 83 Linux
Disk /dev/sde: 1073.8 GB, 1073849198080 bytes
255 heads, 63 sectors/track, 130554 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sde doesn't contain a valid partition table
Disk /dev/sdf: 764.5 GB, 764522004480 bytes
255 heads, 63 sectors/track, 92947 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sdf doesn't contain a valid partition table
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/39335/viewspace-1018302/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/39335/viewspace-1018302/