Linux megaraid command line usage tool

Source: Internet
Author: User

MegaRAID is an LSI command-line RAID management tool, we used to configure the raid through the Web page to configure, the steps are cumbersome, and the configuration will need to restart the operating system. The MegaRAID tool allows us to configure management raid at the command line, which is highly efficient and very awesome to use. This approach is a dream dimple for children's shoes, which are accustomed to GUI style. :-)。 command line, you can not restart the operating system, the configuration is ready to use, very convenient.

To use the tool, you first install the appropriate package on the system. After the installation is complete, the/OPT directory

Next more than one MEGARAID/MEGACLI directory,

This time using the command-line tool scenario:

In the 4th and 5th slots, a new two Intel P3700 SSD disk was added,

1. View the RAID card's device number

# cd/opt/megaraid/megacli#./megacli64-pdlist-aall |grep "Device ID" enclosure device Id:252enclosure device Id:252enc Losure device id:252enclosure device id:252enclosure device id:252enclosure device id:252

Description: The above output indicates that we have a RAID card, which has 6 disks under the card. The ID number here needs to be

You need to write down the raid in the back.

2. Check the slot ID, there is no case of the wrong order

#./megacli64-pdlist-aall |grep "slot" slot Number:0slot number:1slot number:2slot number:3slot number:4slot number : 5

Note: This slot number needs to be written down and used for raid.

3. View foreign information

#./megacli64-pdlist-aall |grep "Foreign State" Foreign state:noneforeign state:noneforeign state:noneforeign state:n Oneforeign State:foreign # This is the newly added Foreign state:foreign # This is the new addition

4. Clear foreign information

#./megacli64-cfgforeign-clear-a0

5. Re-raid, do RAID0 on SLOT4 and SLOT5

#./megacli64-cfgldadd-r0 [252:4,252:5] WT direct-a0

Note: If do RAID1, only need to change r0 to R1 can.

Appendix: Noun Interpretation

Disk Cache policy:

WT (write Through) WB (write back) NORA (NO read Ahead) RA (read Ahead) ADRA (Adaptive read Ahead)

See how many RAID levels you need to use if you need to delete the specified raid at a later time, where

"Target Id:n", N is the nth group of RAID

#./megacli64-ldinfo-lall-aall

Delete array

#./megacli64-cfglddel-l1-a0


This article is from the "Tiandaochouqin" blog, make sure to keep this source http://lavenliu.blog.51cto.com/5060944/1627399

Linux megaraid command line usage tool

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.