linux多路径软件rdac安装方法.doc_第1页
linux多路径软件rdac安装方法.doc_第2页
linux多路径软件rdac安装方法.doc_第3页
linux多路径软件rdac安装方法.doc_第4页
linux多路径软件rdac安装方法.doc_第5页
已阅读5页,还剩3页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

RDAC安装方法 首先把rdac的源文件拷贝到服务器上,rdac可以从管理软件SANtricity中的光盘中取得Rdac的安装需要系统装好make,gcc等编译工具,此外还需要安装kernel-devel内核源码包在没安装rdac之前在已经映射存在多路径的情况下,自检或者fdisk-l查看磁盘会有io报错这里以linuxrdac-99.03.0C00.0211.tar.gz版本为例首先解压软件tar zxvf linuxrdac-99.03.0C00.0211.tar.gzrootmu01 # cd linuxrdac-99.03.0C00.0211/查看解压出的文件rootmu01 linuxrdac-99.03.0C00.0211# lsgenfileattributes mppiscsi_umountall mppLnx26p_vhbatask.cgenuniqueid.c mpp_linux_headers mpp_rcscript.REDHAThbaCheck mpp_linux_sys_headers mpp_rcscript.SUSELicense.txt mppLnx26p_sysdep.c mppSupportlsvdev mppLnx26p_upper.c Readme.txtMakefile mppLnx26p_vhba.c setupDriver.REDHATmppCmn_s2tos3.c mppLnx26p_vhbaio.c setupDriver.SUSEmppCmn_SysInterface.c mppLnx26p_vhbalib.c setupMpp26p.shmpp.conf mppLnx26p_vhbamisc.c utilityMPP_hba.c mppLnx26p_vhbaproc.c执行编译rootmu01 linuxrdac-99.03.0C00.0211# makemake1: Entering directory /usr/src/kernels/2.6.18-164.el5-x86_64 CC M /root/linuxrdac-99.03.0C00.0211/MPP_hba.o CC M /root/linuxrdac-99.03.0C00.0211/mppLnx26p_upper.o CC M /root/linuxrdac-99.03.0C00.0211/mppLnx26p_sysdep.o CC M /root/linuxrdac-99.03.0C00.0211/mppCmn_s2tos3.o CC M /root/linuxrdac-99.03.0C00.0211/mppCmn_SysInterface.o CC M /root/linuxrdac-99.03.0C00.0211/mppLnx26p_vhbamisc.o CC M /root/linuxrdac-99.03.0C00.0211/mppLnx26p_vhbatask.o CC M /root/linuxrdac-99.03.0C00.0211/mppLnx26p_vhba.o CC M /root/linuxrdac-99.03.0C00.0211/mppLnx26p_vhbaproc.o CC M /root/linuxrdac-99.03.0C00.0211/mppLnx26p_vhbalib.o CC M /root/linuxrdac-99.03.0C00.0211/mppLnx26p_vhbaio.o LD M /root/linuxrdac-99.03.0C00.0211/mppUpper.o LD M /root/linuxrdac-99.03.0C00.0211/mppVhba.o Building modules, stage 2. MODPOST CC /root/linuxrdac-99.03.0C00.0211/mppUpper.mod.o LD M /root/linuxrdac-99.03.0C00.0211/mppUpper.ko CC /root/linuxrdac-99.03.0C00.0211/mppVhba.mod.o LD M /root/linuxrdac-99.03.0C00.0211/mppVhba.komake1: Leaving directory /usr/src/kernels/2.6.18-164.el5-x86_64make1: Entering directory /usr/src/kernels/2.6.18-164.el5-x86_64 Building modules, stage 2. MODPOSTmake1: Leaving directory /usr/src/kernels/2.6.18-164.el5-x86_64gcc -g -I/root/linuxrdac-99.03.0C00.0211 -I/root/linuxrdac-99.03.0C00.0211/mpp_linux_headers/ -I/root/linuxrdac-99.03.0C00.0211/mpp_linux_sys_headers/ -c ./utility/mppUtil.c -o mppUtil.o/bin/bash ./genfileattributes bldgcc -g -I/root/linuxrdac-99.03.0C00.0211 -I/root/linuxrdac-99.03.0C00.0211/mpp_linux_headers/ -I/root/linuxrdac-99.03.0C00.0211/mpp_linux_sys_headers/ -c ./utility/mppUtil26p_sysdep.c -o mppUtilSysdep.ogcc mppUtil.o mppUtilSysdep.o -o mppUtilgcc -o genuniqueid genuniqueid.c执行安装,执行安装完毕后会被/boot目录下生成mpp开头的initrd内核映像文件rootmu01 linuxrdac-99.03.0C00.0211# make installmake1: Entering directory /usr/src/kernels/2.6.18-164.el5-x86_64 Building modules, stage 2. MODPOSTmake1: Leaving directory /usr/src/kernels/2.6.18-164.el5-x86_64make1: Entering directory /usr/src/kernels/2.6.18-164.el5-x86_64 Building modules, stage 2. MODPOSTmake1: Leaving directory /usr/src/kernels/2.6.18-164.el5-x86_64/bin/bash ./genfileattributes bldgcc -g -I/root/linuxrdac-99.03.0C00.0211 -I/root/linuxrdac-99.03.0C00.0211/mpp_linux_headers/ -I/root/linuxrdac-99.03.0C00.0211/mpp_linux_sys_headers/ -c ./utility/mppUtil26p_sysdep.c -o mppUtilSysdep.ogcc mppUtil.o mppUtilSysdep.o -o mppUtilChecking Host Adapter Configuration.iSCSI software initiator found. Do you want MPP to manage an iSCSI storage array?Do you want to continue (yes or no) ? yesPlease wait while we modify the system configuration files.Your kernel version is 2.6.18-164.el5Preparing to install MPP driver against this kernel version.Generating module dependencies.Creating new MPP initrd image.红色为生成的mpp 内核映像rootmu01 # cd /bootrootmu01 boot# lsconfig-2.6.18-164.el5 initrd-2.6.18-164.el5_old.img mpp-2.6.18-164.el5xen.img vmlinuz-2.6.18-164.el5config-2.6.18-164.el5xen initrd-2.6.18-164.el5xen.img symvers-2.6.18-164.el5.gz vmlinuz-2.6.18-164.el5xengrub initrd-2.6.18-164.el5xen_old.img symvers-2.6.18-164.el5xen.gz xen.gz-2.6.18-164.el5initrd-2.6.18-164.el5.img lost+found System.map-2.6.18-164.el5 xen-syms-2.6.18-164.el5initrd-2.6.18-164.el5kdump.img memtest86+-1.65 System.map-2.6.18-164.el5xen接下来需要把grub的把内核指向新生成的mpp内核注意:linux系统可能存在多个内核,在哪个内核下编译的rdac生成的mpp映像对应的此内核例如下面的例子系统是在Red Hat Enterprise Linux Server (2.6.18-164.el5xen)内核下编译的那么把需要修改Red Hat Enterprise Linux Server (2.6.18-164.el5xen)内核的initrd指向新生成的mpp内核,假如想Red Hat Enterprise Linux Server (2.6.18-164.el5)内核下mpio软件生效需要进系统时选择进此内核然后然后在此内核下编译指向相应的mpp映像更改前rootmu01 grub# cat grub.conf # grub.conf generated by anaconda# Note that you do not have to rerun grub after making changes to this file# NOTICE: You have a /boot partition. This means that# all kernel and initrd paths are relative to /boot/, eg.# root (hd0,0)# kernel /vmlinuz-version ro root=/dev/rootvg/lv0# initrd /initrd-version.img#boot=/dev/sdadefault=1timeout=5splashimage=(hd0,0)/grub/splash.xpm.gzhiddenmenutitle Red Hat Enterprise Linux Server (2.6.18-164.el5xen) root (hd0,0) kernel /xen.gz-2.6.18-164.el5 module /vmlinuz-2.6.18-164.el5xen ro root=/dev/rootvg/lv0 rhgb quiet module /initrd-2.6.18-164.el5xen.imgtitle Red Hat Enterprise Linux Server (2.6.18-164.el5) root (hd0,0) kernel /vmlinuz-2.6.18-164.el5 ro root=/dev/rootvg/lv0 rhgb quiet initrd /initrd-2.6.18-164.el5.img更改后rootmu01 grub# cat grub.conf # grub.conf generated by anaconda# Note that you do not have to rerun grub after making changes to this file# NOTICE: You have a /boot partition. This means that# all kernel and initrd paths are relative to /boot/, eg.# root (hd0,0)# kernel /vmlinuz-version ro root=/dev/rootvg/lv0# initrd /initrd-version.img#boot=/dev/sdadefault=0timeout=5splashimage=(hd0,0)/grub/splash.xpm.gzhiddenmenutitle Red Hat Enterprise Linux Server (2.6.18-164.el5xen) root (hd0,0) kernel /xen.gz-2.6.18-164.el5 module /vmlinuz-2.6.18-164.el5xen ro root=/dev/rootvg/lv0 rhgb quiet module / mpp-2.6.18-164.el5xen.imgtitle Red Hat Enterprise Linux Server (2.6.18-164.el5) root (hd0,0) kernel /vmlinuz-2.6.18-164.el5 ro root=/dev/rootvg/lv0 rhgb quiet initrd /initrd-2.6.18-164.el5.img查看多路径方法在radc make完毕后会生成mppUtil工具可以./mppUtil g 0可以显示路径状态rootmu01 linuxrdac-99.03.0C00.0211# ./mppUtil -g 0Hostname = mu01Domainname = (none)Time = GMT 08/18/2010 11:58:53 MPP Information:- ModuleName: AS1000G3 SingleController: N VirtualTargetID: 0x000 ScanTriggered: N ObjectCount: 0x000 AVTEnabled: N WWN: 60080e50001828f6000000004c60bd43 RestoreCfg: N ModuleHandle: none Page2CSubPage: Y FirmwareVersion: 7.60.34.xx ScanTaskState: 0x00000000 LBPolicy: LeastQueueDepthController A Status:-ControllerHandle: none ControllerPresent: Y UTMLunExists: Y (007) Failed: N NumberOfPaths: 1 FailoverInProg: N ServiceMode: N Path #1 - DirectoryVertex: present Present: Y PathState: OPTIMAL PathId: 77020000 (hostId: 2, channelId: 0, targetId: 0)Controller B Status:-ControllerHandle: none ControllerPresent: Y UTMLunExists: Y (007) Failed: N NumberOfPaths: 1 FailoverInProg: N ServiceMode: N Path #1 - DirectoryVertex: present Present: Y PathState: OPTIMAL PathId: 77010000 (hostId: 1, channelId: 0, targetId: 0)Lun Information- Lun #0 - WWN: 60080e5000181d8c000005e94c6a1995 - LunObject: present CurrentOwningPath: A RemoveEligible: N BootOwningPath: A NotConfigured: N PreferredPath: A DevState: OPTIMAL ReportedPresent: Y ReportedMissing: N NeedsReservationCheck: N TASBitSet: Y NotReady: N Busy: N Quiescent: N Controller A Path - NumLunObjects: 1 RoundRobinIndex: 0 Path #1: LunPathDevice: present DevState: OPTIMAL RemoveState: 0x0 StartState: 0x1 PowerState: 0x0 Controller B Path - NumLunObjects: 1 RoundRobinIndex: 0 Path #1: LunPathDevice: present DevState: OPTIMAL RemoveState: 0x0 StartState: 0x1 PowerState: 0x0 Lun #1 - WWN: 60080e50001828f6000005b64c6a1a08 - LunObject: present CurrentOwningPath: B RemoveEligible: N BootOwningPath: B NotConfigured: N PreferredPath: B DevState: OPTIMAL ReportedPresent: Y ReportedMissing: N NeedsReservationCheck: N TASBitSet: N NotReady: N Busy: N Quiescent: N Controller A Path - NumLunObjects: 1 RoundRobinIndex: 0 Path #1: LunPathDevice: present DevState: OPTIMAL RemoveState: 0x0 StartState: 0x1 PowerState: 0x0 Controller B Path - NumLunObjects: 1 RoundRobinIndex: 0 Path #1: LunPathDevice: present DevState: OPTIMAL RemoveState: 0x0 StartState: 0x1 PowerState: 0x0 Lun #2 - WWN: 60080e5000181d8c000005ed4c6af8c9 - LunObject: present CurrentOwningPath: A RemoveEligible: N BootOwningPath: A NotConfigured: N PreferredPath: A DevState: OPTIMAL ReportedPresent: Y ReportedMissing: N NeedsReservationCheck: N TASBitSet: N NotReady: N Busy: N Quiescent: N Controller A Path - NumLunObjects: 1 RoundRobinIndex: 0 Path #1: LunPathDevice: present DevState: OPTIMAL RemoveState: 0x0 StartState: 0x1 PowerState: 0x0 Controller B Path - NumLunObjects: 1 RoundRobinIndex: 0 Path #1: LunPathDevice: present DevState: OPTIMAL RemoveState: 0x0 StartState: 0x1 PowerState: 0x0 Lun #3 - WWN: 60080e50001828f6000005b84c6af904 - LunObject: present CurrentOwningPath: B RemoveEligible: N BootOwningPath: B NotConfigured: N PreferredPath: B DevState: OPTIMAL ReportedPresent: Y ReportedMissing: N NeedsReservationCheck: N TASBitSet: N NotReady: N Busy: N Quiescent: N Controller A Path - NumLunObjects: 1 RoundRobinIndex: 0 Path #1: LunPathDevice: present DevState: OPTIMAL RemoveState: 0x0 StartState: 0x1 PowerState: 0x0 Controller B Path - NumLunObjects: 1 RoundRo

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论