Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2021373
  • 博文数量: 593
  • 博客积分: 20034
  • 博客等级: 上将
  • 技术积分: 6779
  • 用 户 组: 普通用户
  • 注册时间: 2006-02-06 14:07
文章分类

全部博文(593)

文章存档

2016年(1)

2011年(101)

2010年(80)

2009年(10)

2008年(102)

2007年(16)

2006年(283)

我的朋友

分类: LINUX

2011-05-03 19:08:37

硬件平台:

System Model: IBM,7028-6C4 (IBM P630)
Machine Serial Number: xxxxxxx
Processor Type: PowerPC_POWER4
Number Of Processors: 4
Processor Clock Speed: 1453 MHz
CPU Type: 64-bit
Kernel Type: 64-bit
LPAR Info: 1 NULL
Memory Size: 8192 MB
Good Memory Size: 8192 MB
Firmware Version: IBM,RG070425_d79e20_r
Console Login: enable
Auto Restart: false
Full Core: false

系统平台:

#oslevel -r
5100-06

查看光纤卡通道状态:

#datapath query adapter

Active Adapters :2

Adpt#     Adapter Name   State     Mode     Select     Errors  Paths  Active
    0           fscsi1  NORMAL   ACTIVE 1688271658          0     55      18
    1           fscsi0  NORMAL   ACTIVE 1587139890          0     63      18

查看系统中有多少块光纤卡(HBA Card):

#lsdev -C | grep fcs
fcs0         Available 1V-08           FC Adapter
fcs1         Available 11-08           FC Adapter
fcs2         Available 1D-08           FC Adapter

查看某块光纤卡的详细信息(例如红色部分就是该光纤卡的WWN):

#lscfg -vl fcs0
  DEVICE            LOCATION          DESCRIPTION
       
  fcs0              1V-08             FC Adapter

        Part Number.................09P5079
        EC Level....................A
        Serial Number...............1C2250B087
        Manufacturer................001C
        FRU Number..................09P5080
        Network Address.............10000000C92D71EA
        ROS Level and ID............02C03951
        Device Specific.(Z0)........2002606D
        Device Specific.(Z1)........00000000
        Device Specific.(Z2)........00000000
        Device Specific.(Z3)........03000909
        Device Specific.(Z4)........FF401210
        Device Specific.(Z5)........02C03951
        Device Specific.(Z6)........06433951
        Device Specific.(Z7)........07433951
        Device Specific.(Z8)........20000000C92D71EA
        Device Specific.(Z9)........CS3.91A1
        Device Specific.(ZA)........C1D3.91A1
        Device Specific.(ZB)........C2D3.91A1
        Device Specific.(YL)........U0.1-P2-I1/Q1

查看vpath状态:

#datapath query device

Total Devices : 63


DEV#:   0  DEVICE NAME: vpath0  TYPE: 2105800         POLICY:    Optimized
SERIAL: 00626049
==========================================================================
Path#      Adapter/Hard Disk          State     Mode     Select     Errors
    0          fscsi1/hdisk2          CLOSE   NORMAL          0          0
    1         fscsi0/hdisk53          CLOSE   NORMAL          0          0

DEV#:   1  DEVICE NAME: vpath1  TYPE: 2105800         POLICY:    Optimized
SERIAL: 00726049
==========================================================================
Path#      Adapter/Hard Disk          State     Mode     Select     Errors
    0          fscsi1/hdisk3          CLOSE   NORMAL          0          0
    1         fscsi0/hdisk58          CLOSE   NORMAL          0          0

DEV#:   2  DEVICE NAME: vpath3  TYPE: 2105800         POLICY:    Single Path
SERIAL: 10626049
==========================================================================
Path#      Adapter/Hard Disk          State     Mode     Select     Errors
    0         fscsi0/hdisk59          CLOSE   NORMAL          0          0

DEV#:   3  DEVICE NAME: vpath4  TYPE: 2105800         POLICY:    Optimized
SERIAL: 10726049
==========================================================================
Path#      Adapter/Hard Disk          State     Mode     Select     Errors
    0          fscsi1/hdisk6          CLOSE   NORMAL          0          0
    1         fscsi0/hdisk60          CLOSE   NORMAL          0          0

......

datapath命令帮助:

#which datapath
/usr/bin/datapath
#datapath -help

Invalid command

Usage:  datapath query adapter [n]
        datapath query adaptstats [n/-d ]
        datapath query device [n/-d ]
        datapath query devstats[n]
        datapath query wwpn
        datapath query portmap
        datapath query essmap

        datapath set adapter online/offline
        datapath remove adapter
        datapath set device path online/offline
        datapath set device /( ) policy rr/fo/lb/df
        datapath remove device path
        datapath open device path
        datapath set qdepth enable/disable
        datapath disable/enable ports ess
           Supported location format:
           single port          = R1-Bx-Hy-Zz
           all ports on card    = R1-Bx-Hy
           all ports on bay     = R1-Bx
           refer portmap output for the location string and ESS serial number

        Examples of valid device model include:
         2105    - Displays all 2105 models (ESS)
         2105F   - Displays all 2105 F models (ESS)
         2105800 - Displays all 2105 800 model (ESS)
         2145    - Displays all 2145 devices (SVC)
         2062    - Displays all 2062 devices (SVCCISCO)

 

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