megacli 查看Raid卡和硬盘信息

megacli的安装

通过如下链接

http://down.51cto.com/data/2042596

或者

http://pan.baidu.com/s/1eQ2FeHc

下载至windows本地桌面,然后在linux命令行用命令:rz -be ,在弹出的窗口中选择刚才下载的压缩包(注意不要勾选已ASCII码方式传送文件)

tar xf megacli-8.02.21-1-mdv2012.0.x86_64.rpm.tar
rpm -ivh megacli-8.02.21-1-mdv2012.0.x86_64.rpm

默认yum源木有,为了安装方便,可以手工添加到本地yum源,以后安装就可以执行如下命令:

yum install megacli -y (关于本地yum源的搭建,请移步本地yum源搭建)

一、查看Raid卡信息
megacli -LDInfo -Lall -aALL

[[email protected] robin]# megacli -LDInfo -Lall -aALL
                                     
OSSpecificInitialize: Failed to load libsysfs.so.2.0.2 Please ensure that libsfs is present in the system.
The dependent library libsysfs.so.2.0.1 not available. Please contact LSI for distribution of the package

Adapter 0 -- Virtual Drive Information:
Virtual Drive: 0 (Target Id: 0)
Name                :
RAID Level          : Primary-1, Secondary-0, RAID Level Qualifier-0
Size                : 930.5 GB
Mirror Data         : 930.5 GB
State               : Optimal  <<<< 这是正常的状态。

Strip Size          : 64 KB
Number Of Drives per span:2  <<<< RAID组包含2块磁盘(但实际是4块500G的SSD做Raid10)。

Span Depth          : 2 <<<< 深度若是1,说明实际只是RAID 1。2表示可以是RAID 10

Default Cache Policy: WriteBack, ReadAdaptive, Direct, No Write Cache if Bad BBU
Current Cache Policy: WriteBack, ReadAdaptive, Direct, No Write Cache if Bad BBU
Default Access Policy: Read/Write
Current Access Policy: Read/Write
Disk Cache Policy   : Disk‘s Default
Ongoing Progresses:
  Background Initialization: Completed 41%, Taken 190 min.
Encryption Type     : None
Default Power Savings Policy: Controller Defined
Current Power Savings Policy: None
Can spin up in 1 minute: No
LD has drives that support T10 power conditions: No
LD‘s IO profile supports MAX power savings with cached writes: No
Bad Blocks Exist: No
Is VD Cached: No

备注:

RAID型号对应表信息如下:

RAID Level    
   : Primary-1, Secondary-0, RAID
Level Qualifier-0"    
    #代表Raid 1

RAID Level    
   : Primary-0, Secondary-0, RAID
Level Qualifier-0"    
    #代表Raid 0

RAID Level    
   : Primary-5, Secondary-0, RAID
Level Qualifier-3"    
    #代表Raid 5

RAID Level    
   : Primary-1, Secondary-3, RAID
Level Qualifier-0"    
    #代表Raid10

二、查看硬盘信息:
[[email protected] robin]# megacli -PDList -aALL

###有如下样式的几段,说明实际有几块硬盘(下面是一块500G的SSD的信息)

Enclosure Device ID: 32
Slot Number: 3
Drive‘s postion: DiskGroup: 0, Span: 1, Arm: 1
Enclosure position: 0
Device Id: 3
WWN: 50025388A0061518
Sequence Number: 2
Media Error Count: 0
Other Error Count: 0
Predictive Failure Count: 0
Last Predictive Failure Event Seq Number: 0
PD Type: SATA
Raw Size: 465.761 GB [0x3a386030 Sectors]
Non Coerced Size: 465.261 GB [0x3a286030 Sectors]
Coerced Size: 465.25 GB [0x3a280000 Sectors]
Firmware state: Online, Spun Up
Device Firmware Level: BB0Q
Shield Counter: 0
Successful diagnostics completion on :  N/A
SAS Address(0): 0x4433221107000000
Connected Port Number: 3(path0)
Inquiry Data: S1DHNSADA04008B     Samsung SSD 840 EVO 500GB               EXT0BB0Q
FDE Enable: Disable
Secured: Unsecured
Locked: Unlocked
Needs EKM Attention: No
Foreign State: None
Device Speed: 6.0Gb/s
Link Speed: 6.0Gb/s
Media Type: Solid State Device
Drive:  Not Certified
Drive Temperature :32C (89.60 F)
PI Eligibility:  No
Drive is formatted for PI information:  No
PI: No PI
Drive‘s write cache : Disabled
Drive‘s NCQ setting : Disabled
Port-0 :
Port status: Active
Port‘s Linkspeed: 6.0Gb/s
Drive has flagged a S.M.A.R.T alert : No

关于这个工具的更多的使用方法,请移步:

http://www.ttlsa.com/tools/megacli-tool-query-raid-status/

时间: 2024-08-01 19:21:24

megacli 查看Raid卡和硬盘信息的相关文章

Linux中使用MegaCli工具查看、管理Raid卡信息

MegaCli是一款管理维护硬件RAID软件,可以通过它来了解当前raid卡的所有信息,包括 raid卡的型号,raid的阵列类型,raid 上各磁盘状态,等等.通常,我们对硬盘当前的状态不太好确定,一般通过机房人员巡检来完成,有没有通过软件的方式来检查确定这个问题呢.MegaCli就可以做到,一般通过 MegaCli 的Media Error Count: 0 Other Error Count: 0 这两个数值来确定阵列中磁盘是否有问题:Medai Error Count 表示磁盘可能错误,

MegaCli查看物理硬盘信息及zabbix告警介绍

参考:https://www.cnblogs.com/heaven-xi/p/9618078.html 1.MegaCli 监控主要是通过MegaCli 软件获取到物理主机的read及硬盘相关状态信息.然后通过zabbix的自定义报警进行监控. MegaCli是一款管理维护硬件RAID软件,可以通过它来了解当前raid卡的所有信息,包括 raid卡的型号,raid的阵列类型,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 /op

linux查看Raid磁盘阵列信息

软件raid:只能通过Linux系统本身来查看 cat /proc/mdstat 可以看到raid级别,状态等信息. 硬件raid: 最佳的办法是通过已安装的raid厂商的管理工具来查看,有cmdline,也有图形界面.如Adaptec公司的硬件卡就可以通过下面的命令进行查看: # /usr/dpt/raidutil -L all 可以看到非常详细的信息. 当然更多情况是没有安装相应的管理工具,只能依靠Linux本身的话一般我知道的是两种方式: # dmesg |grep -i raid # c

Linux系统下安装 LSI StorCLI64工具查看和管理raid卡

OS环境:CentOS 6.3/CentOS 7.1 一.可用如下命令查询服务器raid卡硬件相关信息: [[email protected] /]# dmesg | grep raid megaraid_sas 0000:04:00.0: PCI INT A -> GSI 30 (level, low) -> IRQ 30 megaraid_sas 0000:04:00.0: setting latency timer to 64 megaraid_sas 0000:04:00.0: irq

MegaCli 采集raid的基本信息

命令使用:MegaCli -LDInfo -Lall -aALL 查raid级别MegaCli -AdpAllInfo -aALL 查raid卡信息MegaCli -PDList -aALL 查看硬盘信息MegaCli -AdpBbuCmd -aAll 查看电池信息MegaCli -FwTermLog -Dsply -aALL 查看raid卡日志 MegaCli常用参数介绍MegaCli -adpCount [显示适配器个数]MegaCli -AdpGetTime –aALL [显示适配器时间]

MegaCli 监控raid状态

MegaCli是一款管理维护硬件RAID软件,可以通过它来了解当前raid卡的所有信息,包括 raid卡的型号,raid的阵列类型,raid 上各磁盘状态,等等.通常,我们对硬盘当前的状态不太好确定,一般通过机房人员巡检来完成,有没有通过软件的方式来检查确定这个问题呢.MegaCli就可以做到,一般通过 MegaCli 的Media Error Count: 0 Other Error Count: 0 这两个数值来确定阵列中磁盘是否有问题:Medai Error Count 表示磁盘可能错误,

Linux通过命令查询服务器型号、主板、CPU、内存及硬盘信息

测试环境: Dell服务器 CentOS 6.4 主要使用到的命令: dmidecode.cat.megaCli64.df 查询服务器型号: dmidecode -t 1 查询主板信息: dmidecode -t 2 查询CPU信息: 查看CPU型号 cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c 查看CPU物理个数 cat /proc/cpuinfo |grep "physical id" | sort | uniq | w

IBM服务器 Centos系统 查看RAID状态

以下是组建服务器raid时查到的资料,做下笔记,没兴趣的朋友请无视. 最新下载地址: http://www.lsi.com/Search/?terms=MegaCLI&x=12&y=11 打开上面网址,点击"documents and downloads search tool.",搜索 MegaCli 找到MegaRAID 820X MegaCLI - Linux, Version 3.00.03 最大版本号进行下载. 会下载4.00.16_Linux_MegaCli