Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1934106
  • 博文数量: 389
  • 博客积分: 7877
  • 博客等级: 少将
  • 技术积分: 4531
  • 用 户 组: 普通用户
  • 注册时间: 2007-12-10 14:02
文章分类

全部博文(389)

文章存档

2024年(1)

2022年(1)

2021年(1)

2020年(1)

2019年(1)

2018年(3)

2017年(6)

2016年(4)

2015年(8)

2014年(15)

2013年(31)

2012年(19)

2011年(47)

2010年(33)

2009年(105)

2008年(109)

2007年(4)

分类: LINUX

2013-04-02 14:15:14


在Linux系统上安装DS4000的多路径软件RDAC



首先按照上面的完成多路径软件RDAC的安装,然后重启Linux服务器,再次登录到服务器后,可以看到以下信息:

[root@test1 ~]# fdisk -l

Disk /dev/cciss/c0d0: 299.9 GB, 299966445568 bytes
255 heads, 63 sectors/track, 36468 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

           Device Boot      Start         End      Blocks   Id  System
/dev/cciss/c0d0p1   *           1          13      104391   83  Linux
/dev/cciss/c0d0p2              14       36468   292824787+  8e  Linux LVM

Disk /dev/sda: 536.8 GB, 536870912000 bytes
255 heads, 63 sectors/track, 65270 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sda doesn't contain a valid partition table

Disk /dev/sdb: 370.4 GB, 370440929280 bytes
255 heads, 63 sectors/track, 45036 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sdb doesn't contain a valid partition table

Disk /dev/sdc: 373.6 GB, 373662154752 bytes
255 heads, 63 sectors/track, 45428 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sdc doesn't contain a valid partition table
[root@test1 ~]#
[root@test1 ~]# clear

[root@test1 ~]#
[root@test1 ~]#
[root@test1 ~]#
[root@test1 ~]# lsmod|grep mpp
mppVhba               166272  1
mppUpper              167468  1 mppVhba
scsi_mod              196953  10 scsi_dh,sr_mod,mppVhba,qla2xxx,scsi_transport_fc,libata,cciss,mppUpper,sg,sd_mod
[root@test1 ~]#
[root@test1 ~]#
[root@test1 ~]#
[root@test1 ~]#
[root@test1 ~]# mppUtil -V
Linux MPP Driver Version: 09.03.0C05.0504
[root@test1 ~]#
[root@test1 ~]# mppUtil -a
Hostname    = test1
Domainname  = (none)
Time        = GMT 04/02/2013 05:50:02

---------------------------------------------------------------
Info of Array Module's seen by this Host.
---------------------------------------------------------------
ID        WWN                Type     Name         
---------------------------------------------------------------
 0    600a0b80006e77a6000000004eb898ae FC    Array_Module_0     
---------------------------------------------------------------
[root@test1 ~]#
[root@test1 ~]#
[root@test1 ~]#
[root@test1 ~]#
[root@test1 ~]#
[root@test1 ~]#
[root@test1 ~]# mppUtil -S
H3C0T0       Active                     Active           Array_Module_0                                                        
             H1C0T0L000  Up             H2C0T0L000  Up                                                                        
             H1C0T1L000  Up             H2C0T1L000  Up                                                                        
             H1C0T0L001  Up             H2C0T0L001  Up                                                                        
             H1C0T1L001  Up             H2C0T1L001  Up                                                                        
             H1C0T0L002  Up             H2C0T0L002  Up                                                                        
             H1C0T1L002  Up             H2C0T1L002  Up                                                                        

   Missing Arrays
There are no missing arrays
[root@test1 ~]#
[root@test1 ~]#
[root@test1 ~]# mppUtil -a Array_Module_0
Hostname    = test1
Domainname  = (none)
Time        = GMT 04/02/2013 05:52:29

MPP Information:
----------------
      ModuleName: Array_Module_0                           SingleController: N
 VirtualTargetID: 0x000                                       ScanTriggered: N
     ObjectCount: 0x000                                          AVTEnabled: N
             WWN: 600a0b80006e77a6000000004eb898ae               RestoreCfg: N
    ModuleHandle: none                                        Page2CSubPage: Y
 FirmwareVersion: 7.77.18.xx                                 FailoverMethod: C
   ScanTaskState: 0x00000000
        LBPolicy: LeastQueueDepth


Controller 'A' Status:
-----------------------
ControllerHandle: none                                    ControllerPresent: Y
    UTMLunExists: Y (031)                                            Failed: N
   NumberOfPaths: 2                                          FailoverInProg: N
                                                                ServiceMode: N

    Path #1
    ---------
 DirectoryVertex: present                                           Present: Y
       PathState: OPTIMAL              
          PathId: 77010000 (hostId: 1, channelId: 0, targetId: 0)

    Path #2
    ---------
 DirectoryVertex: present                                           Present: Y
       PathState: OPTIMAL              
          PathId: 77010001 (hostId: 1, channelId: 0, targetId: 1)


Controller 'B' Status:
-----------------------
ControllerHandle: none                                    ControllerPresent: Y
    UTMLunExists: Y (031)                                            Failed: N
   NumberOfPaths: 2                                          FailoverInProg: N
                                                                ServiceMode: N

    Path #1
    ---------
 DirectoryVertex: present                                           Present: Y
       PathState: OPTIMAL              
          PathId: 77020000 (hostId: 2, channelId: 0, targetId: 0)

    Path #2
    ---------
 DirectoryVertex: present                                           Present: Y
       PathState: OPTIMAL              
          PathId: 77020001 (hostId: 2, channelId: 0, targetId: 1)



Lun Information
---------------
    Lun #0 - WWN: 600a0b80006e786600004bd94eb8a1cc
    ----------------
       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
                                        VD_Ownership_Transfer_Attempt_Count: 0

    Controller 'A' Path
    --------------------
   NumLunObjects: 2                                         RoundRobinIndex: 0
         Path #1: LunPathDevice: present           
                       DevState: OPTIMAL              
                    RemoveState: 0x0  StartState: 0x1  PowerState: 0x0
         Path #2: LunPathDevice: present           
                       DevState: OPTIMAL              
                    RemoveState: 0x0  StartState: 0x1  PowerState: 0x0

    Controller 'B' Path
    --------------------
   NumLunObjects: 2                                         RoundRobinIndex: 0
         Path #1: LunPathDevice: present           
                       DevState: OPTIMAL              
                    RemoveState: 0x0  StartState: 0x1  PowerState: 0x0
         Path #2: LunPathDevice: present           
                       DevState: OPTIMAL              
                    RemoveState: 0x0  StartState: 0x1  PowerState: 0x0


    Lun #1 - WWN: 600a0b80006e786600004e67514508a1
    ----------------
       LunObject: present                                 CurrentOwningPath: B
  RemoveEligible: N                                          BootOwningPath: B
   NotConfigured: N                                           PreferredPath: B
        DevState: OPTIMAL                                   ReportedPresent: Y
                                                            ReportedMissing: N
                                                      NeedsReservationCheck: N
                                                                  TASBitSet: Y
                                                                   NotReady: N
                                                                       Busy: N
                                                                  Quiescent: N
                                        VD_Ownership_Transfer_Attempt_Count: 0

    Controller 'A' Path
    --------------------
   NumLunObjects: 2                                         RoundRobinIndex: 0
         Path #1: LunPathDevice: present           
                       DevState: OPTIMAL              
                    RemoveState: 0x0  StartState: 0x1  PowerState: 0x0
         Path #2: LunPathDevice: present           
                       DevState: OPTIMAL              
                    RemoveState: 0x0  StartState: 0x1  PowerState: 0x0

    Controller 'B' Path
    --------------------
   NumLunObjects: 2                                         RoundRobinIndex: 0
         Path #1: LunPathDevice: present           
                       DevState: OPTIMAL              
                    RemoveState: 0x0  StartState: 0x1  PowerState: 0x0
         Path #2: LunPathDevice: present           
                       DevState: OPTIMAL              
                    RemoveState: 0x0  StartState: 0x1  PowerState: 0x0


    Lun #2 - WWN: 600a0b80006e786600004e695145091b
    ----------------
       LunObject: present                                 CurrentOwningPath: B
  RemoveEligible: N                                          BootOwningPath: B
   NotConfigured: N                                           PreferredPath: B
        DevState: OPTIMAL                                   ReportedPresent: Y
                                                            ReportedMissing: N
                                                      NeedsReservationCheck: N
                                                                  TASBitSet: Y
                                                                   NotReady: N
                                                                       Busy: N
                                                                  Quiescent: N
                                        VD_Ownership_Transfer_Attempt_Count: 0

    Controller 'A' Path
    --------------------
   NumLunObjects: 2                                         RoundRobinIndex: 0
         Path #1: LunPathDevice: present           
                       DevState: OPTIMAL              
                    RemoveState: 0x0  StartState: 0x1  PowerState: 0x0
         Path #2: LunPathDevice: present           
                       DevState: OPTIMAL              
                    RemoveState: 0x0  StartState: 0x1  PowerState: 0x0

    Controller 'B' Path
    --------------------
   NumLunObjects: 2                                         RoundRobinIndex: 0
         Path #1: LunPathDevice: present           
                       DevState: OPTIMAL              
                    RemoveState: 0x0  StartState: 0x1  PowerState: 0x0
         Path #2: LunPathDevice: present           
                       DevState: OPTIMAL              
                    RemoveState: 0x0  StartState: 0x1  PowerState: 0x0


    Lun #31 - WWN: 600a0b80006e77a600004aea4eb898fe
    ----------------
       LunObject: none                                    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
                                        VD_Ownership_Transfer_Attempt_Count: 0

    Controller 'A' Path
    --------------------
   NumLunObjects: 2                                         RoundRobinIndex: 0
         Path #1: LunPathDevice: present                       UTMLunDevice: present           
                       DevState: OPTIMAL              
                    RemoveState: 0x0  StartState: 0x1  PowerState: 0x0
         Path #2: LunPathDevice: present                       UTMLunDevice: present           
                       DevState: OPTIMAL              
                    RemoveState: 0x0  StartState: 0x1  PowerState: 0x0

    Controller 'B' Path
    --------------------
   NumLunObjects: 2                                         RoundRobinIndex: 0
         Path #1: LunPathDevice: present                       UTMLunDevice: present           
                       DevState: OPTIMAL              
                    RemoveState: 0x0  StartState: 0x1  PowerState: 0x0
         Path #2: LunPathDevice: present                       UTMLunDevice: present           
                       DevState: OPTIMAL              
                    RemoveState: 0x0  StartState: 0x1  PowerState: 0x0

[root@test1 ~]# /opt/mpp/lsvdev
    Array Name      Lun    sd device
    -------------------------------------
    Array_Module_0  0     -> /dev/sda
    Array_Module_0  1     -> /dev/sdb
    Array_Module_0  2     -> /dev/sdc
[root@test1 ~]# ls -lR /proc/mpp
/proc/mpp:
总计 0
dr-xr-xr-x 4 root root 0 04-02 14:10 Array_Module_0

/proc/mpp/Array_Module_0:
总计 0
dr-xr-xr-x 4 root root 0 04-02 14:10 controllerA
dr-xr-xr-x 4 root root 0 04-02 14:10 controllerB
-rw-r--r-- 1 root root 0 04-02 14:10 virtualLun0
-rw-r--r-- 1 root root 0 04-02 14:10 virtualLun1
-rw-r--r-- 1 root root 0 04-02 14:10 virtualLun2

/proc/mpp/Array_Module_0/controllerA:
总计 0
dr-xr-xr-x 2 root root 0 04-02 14:10 qla2xxx_h1c0t0
dr-xr-xr-x 2 root root 0 04-02 14:10 qla2xxx_h1c0t1

/proc/mpp/Array_Module_0/controllerA/qla2xxx_h1c0t0:
总计 0
-rw-r--r-- 1 root root 0 04-02 14:10 LUN0
-rw-r--r-- 1 root root 0 04-02 14:10 LUN1
-rw-r--r-- 1 root root 0 04-02 14:10 LUN2
-rw-r--r-- 1 root root 0 04-02 14:10 UTM_LUN31

/proc/mpp/Array_Module_0/controllerA/qla2xxx_h1c0t1:
总计 0
-rw-r--r-- 1 root root 0 04-02 14:10 LUN0
-rw-r--r-- 1 root root 0 04-02 14:10 LUN1
-rw-r--r-- 1 root root 0 04-02 14:10 LUN2
-rw-r--r-- 1 root root 0 04-02 14:10 UTM_LUN31

/proc/mpp/Array_Module_0/controllerB:
总计 0
dr-xr-xr-x 2 root root 0 04-02 14:10 qla2xxx_h2c0t0
dr-xr-xr-x 2 root root 0 04-02 14:10 qla2xxx_h2c0t1

/proc/mpp/Array_Module_0/controllerB/qla2xxx_h2c0t0:
总计 0
-rw-r--r-- 1 root root 0 04-02 14:10 LUN0
-rw-r--r-- 1 root root 0 04-02 14:10 LUN1
-rw-r--r-- 1 root root 0 04-02 14:10 LUN2
-rw-r--r-- 1 root root 0 04-02 14:10 UTM_LUN31

/proc/mpp/Array_Module_0/controllerB/qla2xxx_h2c0t1:
总计 0
-rw-r--r-- 1 root root 0 04-02 14:10 LUN0
-rw-r--r-- 1 root root 0 04-02 14:10 LUN1
-rw-r--r-- 1 root root 0 04-02 14:10 LUN2
-rw-r--r-- 1 root root 0 04-02 14:10 UTM_LUN31
[root@test1 ~]#
[root@test1 ~]# cat /boot/grub/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/VolGroup00/LogVol00
#          initrd /initrd-version.img
#boot=/dev/cciss/c0d0
default=1
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux Server (2.6.18-194.el5)
    root (hd0,0)
    kernel /vmlinuz-2.6.18-194.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
    initrd /initrd-2.6.18-194.el5.img

title Red Hat Linux (2.6.18-194.el5) with MPP support
    root (hd0,0)
    kernel /vmlinuz-2.6.18-194.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
    initrd /mpp-2.6.18-194.el5.img

[root@test1 ~]# ls -ltr /boot/
总计 14768
-rw-r--r-- 1 root root 1953660 2010-03-17 vmlinuz-2.6.18-194.el5
-rw-r--r-- 1 root root 1242340 2010-03-17 System.map-2.6.18-194.el5
-rw-r--r-- 1 root root   66887 2010-03-17 config-2.6.18-194.el5
-rw-r--r-- 1 root root  112656 2010-03-17 symvers-2.6.18-194.el5.gz
drwx------ 2 root root   12288 2011-07-26 lost+found
-rw------- 1 root root 3433683 2011-07-26 initrd-2.6.18-194.el5.img
-rw------- 1 root root 4110445 2011-08-07 mpp-2.6.18-194.el5.img
-rw------- 1 root root 4110445 2011-08-07 initrd-2.6.18-194.el5kdump.img
drwxr-xr-x 2 root root    1024 2011-08-07 grub
[root@test1 ~]#
[root@test1 ~]# ls /softinstall/linuxrdac-09.03.0C05.0504/
2.6.18-194.el5     mppCmn_s2tos3.c        mppLnx26p_upper.c     mppLnx26p_vhbatask.c  mppVhba.ko
bootMpp26p.sh      mppCmn_s2tos3.o        mppLnx26p_upper.o     mppLnx26p_vhbatask.o  mppVhba.mod.c
dracutsetup        mppCmn_SysInterface.c  mppLnx26p_vhba.c      mpp_rcscript.REDHAT   mppVhba.mod.o
genfileattributes  mppCmn_SysInterface.o  mppLnx26p_vhbaio.c    mpp_rcscript.SUSE     mppVhba.o
genuniqueid        mpp.conf               mppLnx26p_vhbaio.o    mppSupport            Readme.txt
genuniqueid.c      MPP_hba.c              mppLnx26p_vhbalib.c   mppUpper.ko           setupDriver.REDHAT
hbaCheck           MPP_hba.o              mppLnx26p_vhbalib.o   mppUpper.mod.c        setupDriver.SUSE
License.txt        mppiscsi_umountall     mppLnx26p_vhbamisc.c  mppUpper.mod.o        setupMpp26p.sh
lsvdev             mpp_linux_headers      mppLnx26p_vhbamisc.o  mppUpper.o            utility
Makefile           mpp_linux_sys_headers  mppLnx26p_vhba.o      mppUtil
Module.markers     mppLnx26p_sysdep.c     mppLnx26p_vhbaproc.c  mppUtil.o
Module.symvers     mppLnx26p_sysdep.o     mppLnx26p_vhbaproc.o  mppUtilSysdep.o
[root@test1 ~]#

可以参考下面这篇博文,非常详细:
http://www.aixchina.net/home/space.php?uid=2947&do=blog&id=31266

阅读(2361) | 评论(2) | 转发(0) |
给主人留下些什么吧!~~

nivek.cao2013-04-17 09:54:37

使用systool命令查看SCSI 信息也能看出相应情况

[root@test1 ~]# systool -b scsi -v|grep VirtualDisk
    model               = "VirtualDisk     "
    model               = "VirtualDisk     "

nivek.cao2013-04-02 14:53:08

PS: 使用hot_add命令,可以在不关机的情况下,动态添加lun,实现联机情况下的磁盘空间扩展。

来自:http://skyxu.org/?p=1506