Installation of MEGACLI
By following the link
http://down.51cto.com/data/2042596
Or
Http://pan.baidu.com/s/1eQ2FeHc
Download to the Windows Local desktop, and then on the Linux command line command: rz-be, in the Pop-up window select the compressed package that you just downloaded (be careful not to tick the ASCII mode to transfer the file )
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
The default Yum source wood has, for easy installation, can be manually added to the local Yum source, later installation can execute the following command:
Yum install megacli-y (for local Yum source build, please visit local Yum source)
First, view the RAID card information
Megacli-ldinfo-lall-aall
[Email protected] robin]# Megacli-ldinfo-lall-aall
osspecificinitialize:failed to load libsysfs.so.2.0.2 * Ensure that LIBSFS are present in the system.
The dependent library libsysfs.so.2.0.1 not available. Please contact LSI for distribution of the
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 <<<< This is the normal state.
Strip size:64 KB
Number of Drives per Span:2 <<<< RAID Group contains 2 disks (but is actually 4 500G SSD to do RAID10).
Span depth:2 <<<< Depth If 1, the actual is only RAID 1. 2 indicates can be 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 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 the 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
Note:
The RAID model corresponding table information is as follows:
RAID level:primary-1, Secondary-0, Raidlevel Qualifier-0 "#代表Raid 1
RAID level:primary-0, Secondary-0, raidlevel Qualifier-0 "#代表Raid 0
RAID level:primary-5, Secondary-0, Raidlevel Qualifier-3 "#代表Raid 5
RAID level:primary-1, Secondary-3, Raidlevel Qualifier-0 "#代表Raid10
Second, view the hard disk information:
[email protected] robin]# Megacli-pdlist-aall
# # #有如下样式的几段, which shows the actual number of hard drives (below is a piece of 500G SSD information)
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 was 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
For more information on how to use this tool, please visit:
http://www.ttlsa.com/tools/megacli-tool-query-raid-status/
MEGACLI view RAID card and hard drive information