http://home.51.com/chenjianghui1987/diary/item/10051836.html
[root@ijxdg2 ~]# dmesg |grep -i raid
dracut: rd_NO_DM: removing DM RAID activation
dracut: rd_NO_MD: removing MD RAID activation
megaraid_sas 0000:01:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
megaraid_sas 0000:01:00.0: setting latency timer to 64
megaraid_sas 0000:01:00.0: irq 51 for MSI/MSI-X
scsi0 : LSI SAS based MegaRAID driver
scsi 0:2:0:0: Direct-Access IBM ServeRAID M1015 2.12 PQ: 0 ANSI: 5
[root@ijxdg2 ~]#
[root@ijx ~]# cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 02 Id: 00 Lun: 00
Vendor: IBM Model: ServeRAID M5015 Rev: 2.12
Type: Direct-Access ANSI SCSI revision: 05
Host: scsi5 Channel: 00 Id: 00 Lun: 00
Vendor: IBM Model: 1746 FAStT Rev: 1070
Type: Direct-Access ANSI SCSI revision: 05
Host: scsi6 Channel: 00 Id: 00 Lun: 00
Vendor: IBM Model: 1746 FAStT Rev: 1070
Type: Direct-Access ANSI SCSI revision: 05
[root@ijx ~]# rpm -vh Lib_Utils-1.00-09.noarch.rpm
rpm: --hash (-h) may only be specified during package installation
[root@ijx ~]# rpm -ivh Lib_Utils-1.00-09.noarch.rpm
Preparing... ########################################### [100%]
Installing....
1:Lib_Utils ########################################### [100%]
[root@ijx ~]# rpm -ivh MegaCli-8.02.21-1.noarch.rpm
Preparing... ########################################### [100%]
1:MegaCli ########################################### [100%]
[root@ijx ~]#
确认MegaCli包的安装信息
# rpm -ql MegaCli
/opt/MegaRAID/MegaCli/MegaCli
/opt/MegaRAID/MegaCli/MegaCli64
因为安装的是64bit操作系统,所以使用MegaCli64命令。
尝试运行:
#/opt/MegaRAID/MegaCli/MegaCli64
该命令直接执行会提示如下错误
Fatal error – Command Tool invoked with wrong parameters
Exit Code: 0×01
为这个命令做个软连接:
#ln -sf /opt/MegaRAID/MegaCli/MegaCli64 /usr/bin/megacli
4. MegaCli常用命令:
(1)显示所有RAID级别、设置及逻辑盘信息
#megacli -LdInfo -LALL -aAll
(2)显示Raid卡型号,Raid设置,磁盘相关信息
#megacli -cfgdsply -aALL | more
(3)查看RAID卡详细信息
#megacli -AdpAllInfo -aALL
(4)查看适配器个数
#megacli -adpCount
(5)查看逻辑盘个数
#megacli -LdGetNum -aALL
(6)查看电池信息
#MegaCli -AdpBbuCmd -aAll
(7)查看命令帮助
#megacli -help
#megacli -cfgdsply -aALL 【显示Raid卡型号,Raid设置,Disk相关信息】
3.磁带状态的变化,从拔盘,到插盘的过程中。
Device |Normal|Damage|Rebuild|Normal
Virtual Drive |Optimal|Degraded|Degraded|Optimal
Physical Drive |Online|Failed –> Unconfigured|Rebuild|Online
==========================================
[root@ijx ~]# megacli -LdInfo -LALL -aAll
Adapter 0 -- Virtual Drive Information:
Virtual Drive: 0 (Target Id: 0)
Name :
RAID Level : Primary-1, Secondary-0, RAID Level Qualifier-0
Size : 271.945 GB
Mirror Data : 271.945 GB
State : Degraded
Strip Size : 128 KB
Number Of Drives per span:2
Span Depth : 2
Default Cache Policy: WriteThrough, ReadAheadNone, Direct, No Write Cache if Bad BBU
Current Cache Policy: WriteThrough, ReadAheadNone, Direct, No Write Cache if Bad BBU
Default Access Policy: Read/Write
Current Access Policy: Read/Write
Disk Cache Policy : Disabled
Encryption Type : None
Default Power Savings Policy: Controller Defined
Current Power Savings Policy: None
Can spin up in 1 minute: Yes
LD has drives that support T10 power conditions: Yes
LD's IO profile supports MAX power savings with cached writes: No
Is VD Cached: No
Exit Code: 0x00
[root@ijx ~]#
============================================
ibm x3650 webBios raid10更换坏的硬盘
拔掉坏硬盘,插入新硬盘。
选中新加硬盘(unconfig ...)-->replace missing pd -->go
-->Make Online-->go
-->rebuild drive -->go
[root@ijxdg2 ~]# dmesg |grep -i raid
dracut: rd_NO_DM: removing DM RAID activation
dracut: rd_NO_MD: removing MD RAID activation
megaraid_sas 0000:01:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
megaraid_sas 0000:01:00.0: setting latency timer to 64
megaraid_sas 0000:01:00.0: irq 51 for MSI/MSI-X
scsi0 : LSI SAS based MegaRAID driver
scsi 0:2:0:0: Direct-Access IBM ServeRAID M1015 2.12 PQ: 0 ANSI: 5
[root@ijxdg2 ~]#
[root@ijx ~]# cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 02 Id: 00 Lun: 00
Vendor: IBM Model: ServeRAID M5015 Rev: 2.12
Type: Direct-Access ANSI SCSI revision: 05
Host: scsi5 Channel: 00 Id: 00 Lun: 00
Vendor: IBM Model: 1746 FAStT Rev: 1070
Type: Direct-Access ANSI SCSI revision: 05
Host: scsi6 Channel: 00 Id: 00 Lun: 00
Vendor: IBM Model: 1746 FAStT Rev: 1070
Type: Direct-Access ANSI SCSI revision: 05
[root@ijx ~]# rpm -vh Lib_Utils-1.00-09.noarch.rpm
rpm: --hash (-h) may only be specified during package installation
[root@ijx ~]# rpm -ivh Lib_Utils-1.00-09.noarch.rpm
Preparing... ########################################### [100%]
Installing....
1:Lib_Utils ########################################### [100%]
[root@ijx ~]# rpm -ivh MegaCli-8.02.21-1.noarch.rpm
Preparing... ########################################### [100%]
1:MegaCli ########################################### [100%]
[root@ijx ~]#
确认MegaCli包的安装信息
# rpm -ql MegaCli
/opt/MegaRAID/MegaCli/MegaCli
/opt/MegaRAID/MegaCli/MegaCli64
因为安装的是64bit操作系统,所以使用MegaCli64命令。
尝试运行:
#/opt/MegaRAID/MegaCli/MegaCli64
该命令直接执行会提示如下错误
Fatal error – Command Tool invoked with wrong parameters
Exit Code: 0×01
为这个命令做个软连接:
#ln -sf /opt/MegaRAID/MegaCli/MegaCli64 /usr/bin/megacli
4. MegaCli常用命令:
(1)显示所有RAID级别、设置及逻辑盘信息
#megacli -LdInfo -LALL -aAll
(2)显示Raid卡型号,Raid设置,磁盘相关信息
#megacli -cfgdsply -aALL | more
(3)查看RAID卡详细信息
#megacli -AdpAllInfo -aALL
(4)查看适配器个数
#megacli -adpCount
(5)查看逻辑盘个数
#megacli -LdGetNum -aALL
(6)查看电池信息
#MegaCli -AdpBbuCmd -aAll
(7)查看命令帮助
#megacli -help
#megacli -cfgdsply -aALL 【显示Raid卡型号,Raid设置,Disk相关信息】
3.磁带状态的变化,从拔盘,到插盘的过程中。
Device |Normal|Damage|Rebuild|Normal
Virtual Drive |Optimal|Degraded|Degraded|Optimal
Physical Drive |Online|Failed –> Unconfigured|Rebuild|Online
==========================================
[root@ijx ~]# megacli -LdInfo -LALL -aAll
Adapter 0 -- Virtual Drive Information:
Virtual Drive: 0 (Target Id: 0)
Name :
RAID Level : Primary-1, Secondary-0, RAID Level Qualifier-0
Size : 271.945 GB
Mirror Data : 271.945 GB
State : Degraded
Strip Size : 128 KB
Number Of Drives per span:2
Span Depth : 2
Default Cache Policy: WriteThrough, ReadAheadNone, Direct, No Write Cache if Bad BBU
Current Cache Policy: WriteThrough, ReadAheadNone, Direct, No Write Cache if Bad BBU
Default Access Policy: Read/Write
Current Access Policy: Read/Write
Disk Cache Policy : Disabled
Encryption Type : None
Default Power Savings Policy: Controller Defined
Current Power Savings Policy: None
Can spin up in 1 minute: Yes
LD has drives that support T10 power conditions: Yes
LD's IO profile supports MAX power savings with cached writes: No
Is VD Cached: No
Exit Code: 0x00
[root@ijx ~]#
============================================
ibm x3650 webBios raid10更换坏的硬盘
拔掉坏硬盘,插入新硬盘。
选中新加硬盘(unconfig ...)-->replace missing pd -->go
-->Make Online-->go
-->rebuild drive -->go