加载中…
个人资料
  • 博客等级:
  • 博客积分:
  • 博客访问:
  • 关注人气:
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

linux  查看硬件阵列卡信息命令和方法简单汇总

(2015-01-20 12:03:49)
标签:

linux查看阵列卡信息

linux查看raid信息方

分类: 网路存储
利用linux系统内置命令 lspci -v   来查看

[root@svn-slave ~]# lspci -v
00:00.0 Host bridge: Intel Corporation Clarkdake DRAM Controller (rev 12)
        Subsystem: Giga-byte Technology Unknown device 5000
        Flags: bus master, fast devsel, latency 0
        Capabilities: [e0] Vendor Specific Information

00:01.0 PCI bridge: Intel Corporation Clarkdale PCI Express x16 Root Port (rev 12) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0
        Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
        I/O behind bridge: 0000d000-0000dfff
        Memory behind bridge: f6000000-f9ffffff
        Prefetchable memory behind bridge: 00000000d0000000-00000000dff00000
        Capabilities: [88] #0d [0000]
        Capabilities: [80] Power Management version 3
        Capabilities: [90] Message Signalled Interrupts: 64bit- Queue=0/0 Enable+
        Capabilities: [a0] Express Root Port (Slot+) IRQ 0

00:1a.0 USB Controller: Intel Corporation Ibex Peak USB Universal Host Controller (rev 06) (prog-if 00 [UHCI])
        Subsystem: Giga-byte Technology Unknown device 5004
        Flags: bus master, medium devsel, latency 0, IRQ 10
        I/O ports at ff00 [size=32]
        Capabilities: [50] #13 [0306]

00:1a.1 USB Controller: Intel Corporation Ibex Peak USB Universal Host Controller (rev 06) (prog-if 00 [UHCI])
        Subsystem: Giga-byte Technology Unknown device 5004
        Flags: bus master, medium devsel, latency 0, IRQ 4
        I/O ports at fe00 [size=32]
        Capabilities: [50] #13 [0306]

00:1a.2 USB Controller: Intel Corporation Ibex Peak USB Universal Host Controller (rev 06) (prog-if 00 [UHCI])
        Subsystem: Giga-byte Technology Unknown device 5004
        Flags: bus master, medium devsel, latency 0, IRQ 3
        I/O ports at fd00 [size=32]
        Capabilities: [50] #13 [0306]

00:1a.7 USB Controller: Intel Corporation Ibex Peak USB2 Enhanced Host Controller (rev 06) (prog-if 20 [EHCI])
        Subsystem: Giga-byte Technology Unknown device 5006
        Flags: bus master, medium devsel, latency 0, IRQ 3
        Memory at fbfff000 (32-bit, non-prefetchable) [size=1K]
        Capabilities: [50] Power Management version 2
        Capabilities: [58] Debug port
        Capabilities: [98] #13 [0306]

00:1b.0 Audio device: Intel Corporation Ibex Peak High Definition Audio (rev 06)
        Subsystem: Giga-byte Technology Unknown device a002
        Flags: bus master, fast devsel, latency 0, IRQ 5
        Memory at fbff8000 (64-bit, non-prefetchable) [size=16K]
        Capabilities: [50] Power Management version 2
        Capabilities: [60] Message Signalled Interrupts: 64bit+ Queue=0/0 Enable-
        Capabilities: [70] Express Unknown type IRQ 0

00:1c.0 PCI bridge: Intel Corporation Ibex Peak PCI Express Root Port 1 (rev 06) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0
        Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
        Capabilities: [40] Express Root Port (Slot+) IRQ 0
        Capabilities: [80] Message Signalled Interrupts: 64bit- Queue=0/0 Enable+
        Capabilities: [90] #0d [0000]
        Capabilities: [a0] Power Management version 2

00:1c.5 PCI bridge: Intel Corporation Ibex Peak PCI Express Root Port 6 (rev 06) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0
        Bus: primary=00, secondary=03, subordinate=03, sec-latency=0
        I/O behind bridge: 0000c000-0000cfff
        Prefetchable memory behind bridge: 00000000fbd00000-00000000fbd00000
        Capabilities: [40] Express Root Port (Slot+) IRQ 0
        Capabilities: [80] Message Signalled Interrupts: 64bit- Queue=0/0 Enable+
        Capabilities: [90] #0d [0000]
        Capabilities: [a0] Power Management version 2

00:1d.0 USB Controller: Intel Corporation Ibex Peak USB Universal Host Controller (rev 06) (prog-if 00 [UHCI])
        Subsystem: Giga-byte Technology Unknown device 5004
        Flags: bus master, medium devsel, latency 0, IRQ 7
        I/O ports at fc00 [size=32]
        Capabilities: [50] #13 [0306]

00:1d.1 USB Controller: Intel Corporation Ibex Peak USB Universal Host Controller (rev 06) (prog-if 00 [UHCI])
        Subsystem: Giga-byte Technology Unknown device 5004
        Flags: bus master, medium devsel, latency 0, IRQ 11
        I/O ports at fb00 [size=32]
        Capabilities: [50] #13 [0306]

00:1d.2 USB Controller: Intel Corporation Ibex Peak USB Universal Host Controller (rev 06) (prog-if 00 [UHCI])
        Subsystem: Giga-byte Technology Unknown device 5004
        Flags: bus master, medium devsel, latency 0, IRQ 3
        I/O ports at fa00 [size=32]
        Capabilities: [50] #13 [0306]

00:1d.7 USB Controller: Intel Corporation Ibex Peak USB2 Enhanced Host Controller (rev 06) (prog-if 20 [EHCI])
        Subsystem: Giga-byte Technology Unknown device 5006
        Flags: bus master, medium devsel, latency 0, IRQ 7
        Memory at fbffe000 (32-bit, non-prefetchable) [size=1K]
        Capabilities: [50] Power Management version 2
        Capabilities: [58] Debug port
        Capabilities: [98] #13 [0306]

00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev a6) (prog-if 01 [Subtractive decode])
        Flags: bus master, fast devsel, latency 0
        Bus: primary=00, secondary=04, subordinate=04, sec-latency=32
        Memory behind bridge: fbe00000-fbefffff
        Prefetchable memory behind bridge: 00000000f0000000-00000000f3f00000
        Capabilities: [50] #0d [0000]

00:1f.0 ISA bridge: Intel Corporation Ibex Peak LPC Interface Controller (rev 06)
        Subsystem: Giga-byte Technology Unknown device 5001
        Flags: bus master, medium devsel, latency 0
        Capabilities: [e0] Vendor Specific Information

00:1f.2 IDE interface: Intel Corporation Ibex Peak 4 port SATA IDE Controller (rev 06) (prog-if 8f [Master SecP SecO PriP PriO])
        Subsystem: Giga-byte Technology Unknown device b002
        Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 11
        I/O ports at f900 [size=8]
        I/O ports at f800 [size=4]
        I/O ports at f700 [size=8]
        I/O ports at f600 [size=4]
        I/O ports at f500 [size=16]
        I/O ports at f400 [size=16]
        Capabilities: [70] Power Management version 3
        Capabilities: [b0] #13 [0306]

00:1f.3 SMBus: Intel Corporation Ibex Peak SMBus Controller (rev 06)
        Subsystem: Giga-byte Technology Unknown device 5001
        Flags: medium devsel, IRQ 3
        Memory at fbffd000 (64-bit, non-prefetchable) [size=256]
        I/O ports at 0500 [size=32]

00:1f.5 IDE interface: Intel Corporation Ibex Peak 2 port SATA IDE Controller (rev 06) (prog-if 85 [Master SecO PriO])
        Subsystem: Giga-byte Technology Unknown device b002
        Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 11
        I/O ports at f200 [size=8]
        I/O ports at f100 [size=4]
        I/O ports at f000 [size=8]
        I/O ports at ef00 [size=4]
        I/O ports at ee00 [size=16]
        I/O ports at ed00 [size=16]
        Capabilities: [70] Power Management version 3
        Capabilities: [b0] #13 [0306]

01:00.0 VGA compatible controller: nVidia Corporation G98 [GeForce 9300 GE] (rev a1) (prog-if 00 [VGA controller])
        Subsystem: nVidia Corporation Unknown device 0681
        Flags: bus master, fast devsel, latency 0, IRQ 10
        Memory at f8000000 (32-bit, non-prefetchable) [size=16M]
        Memory at d0000000 (64-bit, prefetchable) [size=256M]
        Memory at f6000000 (64-bit, non-prefetchable) [size=32M]
        I/O ports at df00 [size=128]
        [virtual] Expansion ROM at f9000000 [disabled] [size=128K]
        Capabilities: [60] Power Management version 3
        Capabilities: [68] Message Signalled Interrupts: 64bit+ Queue=0/0 Enable-
        Capabilities: [78] Express Endpoint IRQ 0

03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 06)
        Subsystem: Giga-byte Technology GA-EP45-DS5 Motherboard
        Flags: bus master, fast devsel, latency 0, IRQ 89
        I/O ports at ce00 [size=256]
        Memory at fbdff000 (64-bit, prefetchable) [size=4K]
        Memory at fbdf8000 (64-bit, prefetchable) [size=16K]
        Capabilities: [40] Power Management version 3
        Capabilities: [50] Message Signalled Interrupts: 64bit+ Queue=0/0 Enable+
        Capabilities: [70] Express Endpoint IRQ 1
        Capabilities: [b0] MSI-X: Enable- Mask- TabSize=4
        Capabilities: [d0] Vital Product Data

04:04.0 RAID bus controller: Adaptec AAC-RAID (rev 01)
        Subsystem: Adaptec AAR-2410SA PCI SATA 4ch (Jaguar II)
        Flags: bus master, 66MHz, slow devsel, latency 32, IRQ 10
        Memory at f0000000 (32-bit, prefetchable) [size=64M]
        [virtual] Expansion ROM at fbe00000 [disabled] [size=32K]
        Capabilities: [80] Power Management version 2

红色字为详细信息 ,绿色字为raid阵列卡的型号信息

------------------------------------------------------------------------------------------------------------------
利用厂家工具查看 raid信息。----强烈推荐,这里就是根据上一步中得到的阵列卡型号 去官方照到对应的管理包
猛戳下载
[root@svn-slave ~]# wget -c http://download.adaptec.com/raid/aac/sm/asm_linux_x64_v4.30-16038.rpm
--2015-01-20 11:44:49--  http://download.adaptec.com/raid/aac/sm/asm_linux_x64_v4.30-16038.rpm
正在解析主机 download.adaptec.com... 68.232.45.253
Connecting to download.adaptec.com|68.232.45.253|:80... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:40525797 (39M) [application/octet-stream]
Saving to: `asm_linux_x64_v4.30-16038.rpm'

100%[===============================================================>] 40,525,797   238K/s   in 2m 21s

2015-01-20 11:47:13 (280 KB/s) - `asm_linux_x64_v4.30-16038.rpm' saved [40525797/40525797]

[root@svn-slave ~]# ls
anaconda-ks.cfg                install.log.syslog  r8168-8.037.00.tar.bz2  test-iozon4M-250G.xls
asm_linux_x64_v4.30-16038.rpm  mbox                rubygems-1.6.2          test-iozon8M-250G.xls
dead.letter                    mysql.sh            rubygems-1.6.2.tgz      test-iozone1M-250G.xls
install.log                    nohup.out           svnjilu                 tttt.sh
[root@svn-slave ~]# rpm -ivh  asm_linux_x64_v4.30-16038.rpm
Preparing...                ########################################### [100%]

Adaptec
Version 4.30

   1:StorMan                ########################################### [100%]
starting Adaptec Storage Manager agent ...


Installation completed successfully.             #提示安装成功并运行相应的脚本
The application can be started by running: /usr/StorMan/StorMan.sh

[root@svn-slave ~]# /usr/StorMan/arcconf GETCONF  1
Controllers found: 1
------------------------------------------------------------------------------------------------------------------
[root@svn-slave ~]# /usr/StorMan/arcconf GETCONFIG 1 PD
Controllers found: 1

----------------------------------------------------------------------
Physical Device information
----------------------------------------------------------------------
   Channel #0:
      Transfer Speed                   : SATA 1.5 Gb/s
      Device #2
         Device is a Hard drive
         State                         : Rebuilding
         Supported                     : Yes
         Transfer Speed                : SATA 1.5 Gb/s
         Reported Channel,Device       : 0,2
         Vendor                        : ST310005
         Model                         : 28AS
         Firmware                      : CC38
         Size                          : 953869 MB
         Write Cache                   : Enabled (write-back)
         FRU                           : None
         S.M.A.R.T.                    : Yes
      Device #3
         Device is a Hard drive
         State                         : Online
         Supported                     : Yes
         Transfer Speed                : SATA 1.5 Gb/s
         Reported Channel,Device       : 0,3
         Vendor                        : ST1000DM
         Model                         : 003-1ER162
         Firmware                      : CC43
         Size                          : 953869 MB
         Write Cache                   : Enabled (write-back)
         FRU                           : None
         S.M.A.R.T.                    : No


Command completed successfully.
[root@svn-slave ~]# /usr/StorMan/arcconf GETCONFIG 1 LD
Controllers found: 1

----------------------------------------------------------------------
Logical device information
----------------------------------------------------------------------
Logical device number 1
   Logical device name                 :
   RAID level                          : 1
   Status of logical device            : Degraded
   Size                                : 953836 MB
   Read-cache mode                     : Enabled
   Write-cache mode                    : Enabled (write-back)
   Write-cache setting                 : Enabled (write-back)
   Partitioned                         : Yes
   Number of chunks                    : 2
   Drive(s) (Channel,Device)           : 0,3 0,2


Command completed successfully.
-----------------------------------------------------------------------------------------------------------------

[root@svn-slave ~]# /usr/StorMan/arcconf GETSTATUS 1
Controllers found: 1

Logical device Task:
   Logical device                 : 1
   Current operation              : Rebuild
   Status                         : In Progress
   Percentage complete            : 14                           # rebuilding 进度百分比



Command completed successfully.




[root@svn-slave ~]# /usr/StorMan/arcconf GETCONFIG 1     显示配置信息
Controllers found: 1

----------------------------------------------------------------------
Controller information
----------------------------------------------------------------------
   Controller Status                   : Optimal
   Channel description                 : SATA
   Controller Model                    : Adaptec 2410SA
   Controller Serial Number            : C98AD7
   Physical Slot                       : 3
   Installed memory                    : 64 MB
   Copyback                            : Disabled
   Background consistency check        : Disabled
   Defunct disk drive count            : 0
   Logical devices/Failed/Degraded     : 1/0/1
   ---------------------------------------------------
   Controller Version Information
   ---------------------------------------------------
   BIOS                                : 4.2-0 (7348)
   Firmware                            : 4.2-0 (7348)
   Driver                              : 1.1-5 (2461)
   Boot Flash                          : 0.0-0 (0)
   ---------------------------------------------------
   Controller Battery Information                           #如阵列卡有电池会在这里显示电池电量信息,此处为没有
   ---------------------------------------------------
   Status                              : Not Installed

----------------------------------------------------------------------
Logical device information
----------------------------------------------------------------------
Logical device number 1
   Logical device name                 :
   RAID level                          : 1                                 #运行raid 1
   Status of logical device            : Degraded            #逻辑设备运行在降级状态,即有一颗硬盘在rebuild
   Size                                : 953836 MB
   Read-cache mode                     : Enabled
   Write-cache mode                    : Enabled (write-back)
   Write-cache setting                 : Enabled (write-back)
   Partitioned                         : Yes
   Number of chunks                    : 2
   Drive(s) (Channel,Device)           : 0,3 0,2

----------------------------------------------------------------------
Physical Device information
----------------------------------------------------------------------
   Channel #0:                                #此处尤为重要,因为这个通道对应阵列卡的接口号,才能找到对应的坏盘
      Transfer Speed                   : SATA 1.5 Gb/s
      Device #2
         Device is a Hard drive
         State                         : Rebuilding
         Supported                     : Yes
         Transfer Speed                : SATA 1.5 Gb/s
         Reported Channel,Device       : 0,2
         Vendor                        : ST310005
         Model                         : 28AS
         Firmware                      : CC38
         Size                          : 953869 MB
         Write Cache                   : Enabled (write-back)
         FRU                           : None
         S.M.A.R.T.                    : Yes
      Device #3
         Device is a Hard drive
         State                         : Online
         Supported                     : Yes
         Transfer Speed                : SATA 1.5 Gb/s
         Reported Channel,Device       : 0,3
         Vendor                        : ST1000DM
         Model                         : 003-1ER162
         Firmware                      : CC43
         Size                          : 953869 MB
         Write Cache                   : Enabled (write-back)
         FRU                           : None
         S.M.A.R.T.                    : No


Command completed successfully.


以下是关于 arcconf 命令的全部参数


[root@svn-slave ~]# /usr/StorMan/arcconf

  | UCLI |  Adaptec uniform command line interface
  | UCLI |  Version 4.30 (B16038)
  | UCLI |  (C) Adaptec 2003-2006
  | UCLI |  All Rights Reserved

 COPYBACK      | toggles controller copy back mode
 CREATE        | creates a logical device
 DELETE        | deletes one or more logical devices
 SNAPSHOT      | creates a copy of a logical device
 GETCONFIG     | prints controller information
 GETLOGS       | gets controller log information                 #查看日志
 GETSTATUS     | displays the status of running background tasks
 GETVERSION    | prints version information for all controllers
 IDENTIFY      | blinks LEDS on device(s) connected to a controller
 KEY           | installs a Feature Key onto a controller
 MODIFY        | performs RAID Level Migration or Online Capacity Expansion
 RESCAN        | checks for new or removed drives
 ROMUPDATE     | updates controller firmware                   #可以通过此命令更新阵列卡的BIOS
 SETALARM      | controls the controller alarm, if present
 SETCONFIG     | restores the default configuration
 SETCACHE      | adjusts physical or logical device cache mode
 SETNAME       | renames a logical device given its logical device number
 SETSTATE      | manually sets the state of a physical device
 TASK          | performs a task such as verify on a physical or logical device

如果你的服务器安装了 X window ,也可以安装图形化的管理工具,那样操作起来更加直观。
server 本地需安装   adaptec-storage-manager-gui
远程访问  需安装     
adaptec-storage-manager-agent


------------------------------------------------------------------------------------------------------
经过长达3天的 重建  最后终于完成了

[root@svn-slave ~]# /usr/StorMan/arcconf GETCONFIG 1
Controllers found: 1

----------------------------------------------------------------------
Controller information
----------------------------------------------------------------------
   Controller Status                   : Optimal
   Channel description                 : SATA
   Controller Model                    : Adaptec 2410SA
   Controller Serial Number            : C98AD7
   Physical Slot                       : 3
   Installed memory                    : 64 MB
   Copyback                            : Disabled
   Background consistency check        : Disabled
   Defunct disk drive count            : 0
   Logical devices/Failed/Degraded     : 1/0/0
   ---------------------------------------------------
   Controller Version Information
   ---------------------------------------------------
   BIOS                                : 4.2-0 (7348)
   Firmware                            : 4.2-0 (7348)
   Driver                              : 1.1-5 (2461)
   Boot Flash                          : 0.0-0 (0)
   ---------------------------------------------------
   Controller Battery Information
   ---------------------------------------------------
   Status                              : Not Installed

----------------------------------------------------------------------
Logical device information
----------------------------------------------------------------------
Logical device number 1
   Logical device name                 :
   RAID level                          : 1
   Status of logical device            : Optimal
   Size                                : 953836 MB
   Read-cache mode                     : Enabled
   Write-cache mode                    : Enabled (write-back)
   Write-cache setting                 : Enabled (write-back)
   Partitioned                         : Yes
   Number of chunks                    : 2
   Drive(s) (Channel,Device)           : 0,3 0,2

----------------------------------------------------------------------
Physical Device information
----------------------------------------------------------------------
   Channel #0:
      Transfer Speed                   : SATA 1.5 Gb/s
      Device #2
         Device is a Hard drive
         State                         : Online
         Supported                     : Yes
         Transfer Speed                : SATA 1.5 Gb/s
         Reported Channel,Device       : 0,2
         Vendor                        : ST1000DM
         Model                         : 003-1ER162
         Firmware                      : CC45
         Size                          : 953869 MB
         Write Cache                   : Enabled (write-back)
         FRU                           : None
         S.M.A.R.T.                    : No
      Device #3
         Device is a Hard drive
         State                         : Online
         Supported                     : Yes
         Transfer Speed                : SATA 1.5 Gb/s
         Reported Channel,Device       : 0,3
         Vendor                        : ST1000DM
         Model                         : 003-1ER162
         Firmware                      : CC43
         Size                          : 953869 MB
         Write Cache                   : Enabled (write-back)
         FRU                           : None
         S.M.A.R.T.                    : No


Command completed successfully.


可以看到状态都是online了



0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有