首页 > 代码库 > HP_DELL RAID卡查看工具介绍

HP_DELL RAID卡查看工具介绍

操作系统自带的命令查看RAID

软件raid:查看raid级别,状态等信息  【生产环境没人敢用软raid,除非他不想干了】

# cat/proc/mdstat

 

硬件raid:查看raid的厂商,型号,级别

# dmesg |grep -i raid

技术分享


# cat/proc/scsi/scsi

技术分享


DELL服务器 使用MegaCli64查看RAID

安装

# rpm-ivh MegaCli64-8.07.14-1.noarch.rpm

 

默认是安装到/opt/MegaRAID目录下了。

cd /opt/MegaRAID/MegaCli


执行./MegaCli64 -LDInfo -LAll-aAll   ----> 常用

技术分享

#./MegaCli64  -LDInfo -Lall -aALL raid级别

 

#./MegaCli64-AdpAllInfo -aALL raid卡信息

 

#./MegaCli64 -PDList -aALL 查看硬盘信息     ----> 常用

#./MegaCli64 -AdpBbuCmd -aAll 查看电池信息

#./MegaCli64-FwTermLog -Dsply -aALL 查看raid卡日志

#./MegaCli64-adpCount 【显示适配器个数】

#./MegaCli64-AdpGetTime aALL 【显示适配器时间】

#./MegaCli64-AdpAllInfo -aAll     【显示所有适配器信息】

#./MegaCli64-LDInfo -LALL -aAll    【显示所有逻辑磁盘组信息】

#./MegaCli64-PDList -aAll    【显示所有的物理信息】

#./MegaCli64-AdpBbuCmd -GetBbuStatus -aALL |grep ‘Charger Status‘ 【查看充电状态】

#./MegaCli64-AdpBbuCmd -GetBbuStatus -aALL【显示BBU状态信息】

#./MegaCli64-AdpBbuCmd -GetBbuCapacityInfo -aALL【显示BBU容量信息】

#./MegaCli64-AdpBbuCmd -GetBbuDesignInfo -aALL    【显示BBU设计参数】

#./MegaCli64-AdpBbuCmd -GetBbuProperties -aALL    【显示当前BBU属性】

#./MegaCli64-cfgdsply -aALL    【显示Raid卡型号,Raid设置,Disk相关信息】

 

 

3.磁带状态的变化,从拔盘,到插盘的过程中。

Device         |Normal|Damage|Rebuild|Normal

VirtualDrive    |Optimal|Degraded|Degraded|Optimal

PhysicalDrive     |Online|Failed –>Unconfigured|Rebuild|Online

 

4.查看磁盘缓存策略

#./MegaCli64-LDGetProp -Cache -L0 -a0

or

#./MegaCli64-LDGetProp -Cache -L1 -a0

or

#./MegaCli64-LDGetProp -Cache -LALL -a0

ro

#./MegaCli64-LDGetProp -Cache -LALL -aALL

ro

#./MegaCli64-LDGetProp -DskCache -LALL -aALL

 

5.设置磁盘缓存策略

缓存策略解释:

WT    (Write through

WB    (Write back)

NORA  (No read ahead)

RA    (Read ahead)

ADRA  (Adaptive read ahead)

Cached

Direct

 

例子:

#./MegaCli64-LDSetProp WT|WB|NORA|RA|ADRA -L0 -a0

or

#./MegaCli64-LDSetProp -Cached|-Direct -L0 -a0

or

enable /disable disk cache

#./MegaCli64-LDSetProp -EnDskCache|-DisDskCache -L0 -a0

 

6.创建一个raid5 阵列,由物理盘2,3,4 构成,该阵列的热备盘是物理盘5

#./MegaCli64-CfgLdAdd -r5 [1:2,1:3,1:4] WB Direct -Hsp[1:5] -a0

 

7.创建阵列,不指定热备

#./MegaCli64-CfgLdAdd -r5 [1:2,1:3,1:4] WB Direct -a0

 

8.删除阵列

#./MegaCli64-CfgLdDel -L1 -a0

 

9.在线添加磁盘

#./MegaCli64-LDRecon -Start -r5 -Add -PhysDrv[1:4] -L1 -a0

 

10.阵列创建完后,会有一个初始化同步块的过程,可以看看其进度。

#./MegaCli64-LDInit -ShowProg -LALL -aALL

或者以动态可视化文字界面显示

#./MegaCli64-LDInit -ProgDsply -LALL -aALL

 

11.查看阵列后台初始化进度

#./MegaCli64-LDBI -ShowProg -LALL -aALL

或者以动态可视化文字界面显示

#./MegaCli64-LDBI -ProgDsply -LALL -aALL

 

12.指定第5 块盘作为全局热备

#./MegaCli64-PDHSP -Set [-EnclAffinity] [-nonRevertible] -PhysDrv[1:5] -a0

 

13.指定为某个阵列的专用热备

#./MegaCli64-PDHSP -Set [-Dedicated [-Array1]] [-EnclAffinity] [-nonRevertible]-PhysDrv[1:5] -a0

 

14.删除全局热备

#./MegaCli64-PDHSP -Rmv -PhysDrv[1:5] -a0

 

15.将某块物理盘下线/上线

#./MegaCli64-PDOffline -PhysDrv [1:4] -a0

#./MegaCli64-PDOnline -PhysDrv [1:4] -a0

 

16.查看物理磁盘重建进度

#./MegaCli64-PDRbld -ShowProg -PhysDrv [1:5] -a0

或者以动态可视化文字界面显示

 

#./MegaCli64-PDRbld -ProgDsply -PhysDrv [1:5] -a0

 

 

HP服务器 使用hpacucli查看RAID

软件:hpacucli-9.40-12.0.x86_64.rpm

默认安装到/opt/compaq/hpacucli/bld

 

cd /opt/compaq/hpacucli/bld

./hpacucli ctrl all show config detail ----> 常用

结果如下:

SmartArray P400 in Slot 2

   Bus Interface: PCI

   Slot: 2

   Serial Number: PAFGK0T9SXL0WU

   Cache Serial Number: PA2270J9SXM13V

   RAID 6 (ADG) Status: Enabled

   Controller Status: OK

   Hardware Revision: E

   Firmware Version: 7.22

   Rebuild Priority: Medium

   Expand Priority: Medium

   Surface Scan Delay: 15 secs

   Surface Scan Mode: Idle

   Wait for Cache Room: Disabled

   Surface Analysis Inconsistency Notification:Disabled

   Post Prompt Timeout: 0 secs

   Cache Board Present: True

   Cache Status: OK

   Cache Ratio: 25% Read / 75% Write

   Drive Write Cache: Disabled

   Total Cache Size: 512 MB

   Total Cache Memory Available: 464 MB

   No-Battery Write Cache: Disabled

   Cache Backup Power Source: Batteries

   Battery/Capacitor Count: 1

   Battery/Capacitor Status:OK

   SATA NCQ Supported: True

 

   Array: A

      Interface Type: SATA

      Unused Space: 0  MB

      Status: OK

      Array Type: Data

 

 

 

      Logical Drive: 1

         Size: 232.9 GB

         Fault Tolerance: 1

         Heads: 255

         Sectors Per Track: 32

         Cylinders: 59844

         Strip Size: 128 KB

         Full Stripe Size: 128 KB

         Status: OK

         Caching:  Enabled

         Unique Identifier:600508B10010543953584B34304C0031

         Disk Name: /dev/cciss/c0d0

         Mount Points: /boot 200 MB

         OS Status: LOCKED

         Logical Drive Label:A02701F3PAFGK0T9SXK40LB1E4

         Mirror Group 0:

            physicaldrive 1I:0:1 (port 1I:box0:bay 1, SATA, 250 GB, OK)

         Mirror Group 1:

            physicaldrive 1I:0:2 (port 1I:box0:bay 2, SATA, 250 GB, OK)

         Drive Type: Data

 

      physicaldrive 1I:0:1

         Port: 1I

         Box: 0

         Bay: 1

         Status: OK

         Drive Type: Data Drive

         Interface Type: SATA

         Size: 250 GB

         Firmware Revision: EMT01B6Q

         Serial Number:S22SNXAG970453K    

         Model: ATA     Samsung SSD 850

         SATA NCQ Capable: True

         SATA NCQ Enabled: True

         Current Temperature (C): 35

         Maximum Temperature (C): 70

         PHY Count: 1

         PHY Transfer Rate:1.5Gbps

 

      physicaldrive 1I:0:2

         Port: 1I

         Box: 0

         Bay: 2

         Status: OK

         Drive Type: Data Drive

         Interface Type: SATA

         Size: 250 GB

         Firmware Revision: EMT01B6Q

         Serial Number:S22SNXAG970835X    

         Model: ATA     Samsung SSD 850

         SATA NCQ Capable: True

         SATA NCQ Enabled: True

         Current Temperature (C): 36

         Maximum Temperature (C): 70

         PHY Count: 1

         PHY Transfer Rate:1.5Gbps

 

 

 


本文出自 “菜鸡” 博客,请务必保留此出处http://lee90.blog.51cto.com/10414478/1920263

HP_DELL RAID卡查看工具介绍