megacli-View raid Information

Source: Internet
Author: User

The article itself I do not make too many changes, here I put myself in the installation of the difficulties encountered with everyone to mention.
1. Where to download?
First of all, according to the path in the article has not been downloaded to the corresponding file, here we go to Http://www.lsi.com's website to search, try a variety of combinations
Finally with Linux_cli.zip in the search bar search for the corresponding results, find the Linux version, download can.
I also uploaded the file to the download space for security reasons.
http://down.51cto.com/data/342011
2. How do I use it?
After the installation of the files are still stored in the/OPT directory, but several layers of internal directory.
/opt/megaraid/megacli/megacli64 after the corresponding parameters can be followed.

The MEGACLI feature is also very powerful. Get more data on the ground in details like more raid information and hard drive details
Using the MEGACLI tool to view RAID disk array status under Linux operating system

The new version of MEGACLI-1.01.24-0.I386.RPM will install the program under/OPT, you can customize the installation directory, for example: rpm–relocate/opt/=/usr/sbin/-I MEGACLI-1.01.24-0.I386.RPM replaces the installation directory/opt with/usr/sbin. : Http://www.lsi.com/support/downloads/megaraid/miscellaneous/linux/Linux_MegaCLI_1.01.24.zip I introduce here to install under/OPT.
1. First introduce the Linux system itself to view
Software RAID: View information such as RAID level, status, etc.

#Cat /proc/mdstat

Hardware RAID: View RAID vendor, model, level

grep -i raid#cat /PROC/SCSI/SCSI

2. The best way to hardware RAID is through the installed RAID vendor's management tool to view, install the MEGACLI tool below to view
First download MEGACLI, unzip. #rpm-IVH megacli-1.01.24-0.i386.rpm installed under/OPT, so the command is/opt/megacli Oh.
command to use:

#/opt/megacli-ldinfo-lall-Aall RAID Level #/opt/megacli-adpallinfo-Aall RAID Card information #/opt/megacli-pdlist-Aall viewing hard disk information #/opt/megacli-adpbbucmd-Aall View battery Information #/opt/megacli-fwtermlog-dsply-aall View RAID card logs #/OPT/MEGACLI-Adpcount "Display adapter number" #/OPT/MEGACLI-Adpgettime–aall "Show Adapter Time" #/opt/megacli-adpallinfo-Aall "Show All Adapter Information" #/opt/megacli-ldinfo-lall-Aall "Show all Logical Disk group Information" #/opt/megacli-pdlist-Aall "Show All Physical Information" #/opt/megacli-adpbbucmd-getbbustatus-aall |grep' Charger status ' "View charging status" #/opt/megacli-adpbbucmd-getbbustatus-Aall "Show Bbu status information" #/opt/megacli-adpbbucmd-getbbucapacityinfo-Aall "Show Bbu Capacity Information" #/opt/megacli-adpbbucmd-getbbudesigninfo-aall "Show Bbu Design Parameters" #/opt/megacli-adpbbucmd-getbbuproperties-aall "Show Current Bbu Properties" #/opt/megacli-cfgdsply-aall "Show RAID card model, RAID settings, disk related information"

3. Changes in the status of the tape, from the pull-out to the process of the disc.

Device        | normal| damage| rebuild| normalvirtual    Drive | optimal| degraded| degraded| optimalphysical    Drive | online| Failed–> unconfigured| rebuild| Online

4. View the disk cache policy

#/opt/megacli-ldgetprop-cache-l0-a0or#/opt/megacli-ldgetprop-cache-l1-a0or#/opt/megacli- Ldgetprop-cache-lall-a0ro#/opt/megacli-ldgetprop-cache-lall-aallro#/opt/megacli-ldgetprop- Dskcache-lall-aall


5. Set the disk cache policy
Caching Policy Explanation:

WT    (write Throughwb    (write back) NORA  (No read ahead) RA    (read ahead) ADRA  (Adaptive read ahead) Cacheddirect

Example:

#/opt/megacli-ldsetprop wt| wb| nora| ra| Adra-l0-a0or#/opt/megacli-ldsetprop-cached|-direct-l0-/ Disable disk cache#/opt/ Megacli-ldsetprop-endskcache|-disdskcache-l0-a0

6. Create a RAID5 array, composed of physical disk 2,3,4, the hot spare of the array is the physical disk 5

#/opt/megacli-cfgldadd-r5 [1:2,1:3,1:4] WB direct-hsp[1 :5]-a0


7. Create an array without specifying a hot spare

#/opt/megacli-cfgldadd-r5 [1:2,1:3,1:4] WB Direct- A0

8. Deleting an array

#/opt/megacli-cfglddel-l1-a0

9. Adding disks Online

#/opt/megacli-ldrecon-start-r5-add-physdrv[1:4]-l1-a0

10. Once the array is created, there is a process for initializing the synchronization block to see its progress.

#/opt/megacli-ldinit-showprog-lall-Aall or display the #/opt/megacli-ldinit-progdsply-lall-aall in a dynamic visual text interface

11. View the background initialization progress of the array

#/opt/megacli-ldbi-showprog-lall-Aall or display the #/opt/megacli-ldbi-progdsply-lall-aall in a dynamic visual text interface

12. Specify the 5th disk as the global hot spare

#/opt/megacli-pdhsp-set [-enclaffinity] [-nonrevertible]-physdrv[1:5]-a0

13. Specify a dedicated hot spare for an array

#/opt/megacli-pdhsp-set [-dedicated [-array1]] [-enclaffinity] [-nonrevertible]-physdrv[1:5]-a0

14. Delete Global Hot Spares

#/opt/megacli-pdhsp-rmv-physdrv[1:5]-a0

15. Bring a physical disk offline/on-line

#/opt/megacli-pdoffline-physdrv [1:4]-a0#/opt/megacli-pdonline-physdrv [1: 4]-a0

16. View Physical Disk Rebuild progress

#/opt/megacli-pdrbld-showprog-physdrv [1:5]-a0

or display it in a dynamic visual text interface

#/opt/megacli-pdrbld-progdsply-physdrv [1:5]-a0


megacli-View raid Information

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.