- 论坛徽章:
- 0
|
我单位一个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 编辑 ] |
|