Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to view Raid disk array information in linux

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces "how to view Raid disk array information in linux". In daily operation, I believe many people have doubts about how to view Raid disk array information in linux. Xiaobian consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the doubt of "how to view Raid disk array information in linux". Next, please follow the editor to study!

The method of viewing soft and hard raid information under Linux.

Software raid: can only be viewed through the Linux system itself

Cat / proc/mdstat

You can see the raid level, status and other information.

Hardware raid: the best way is to view it through the installed raid vendor's management tools, including cmdline and a graphical interface. For example, the hardware card of Adaptec can be viewed by the following command:

# / usr/dpt/raidutil-L all

You can see very detailed information.

Of course, more often than not, there are no corresponding management tools installed, so we can only rely on Linux itself. Generally speaking, there are two ways I know:

# dmesg | grep-I raid

# cat / proc/scsi/scsi

The information displayed is about the same, raid manufacturer, model, level, but can not view the information of each hard drive.

In addition, after the actual test, the server of Dell can be displayed through the command, while the server of HP, IBM and so on can not be displayed by the command above. DELL can only be viewed by installing the hardware manufacturer's management tools. BMC can be viewed.

Cat / proc/scsi/scsi

You can see that it is a device on the SCSI. You can generally see the RAID level. Lspci can see the model of the raid card.

=

Rpm-ivh MegaCli-1.01.09-0.i386.rpm

The command uses:

MegaCli-LDInfo-Lall-aALL check raid level

MegaCli-AdpAllInfo-aALL to check raid card information

MegaCli-PDList-aALL to view hard disk information

MegaCli-AdpBbuCmd-aAll to view battery information

MegaCli-FwTermLog-Dsply-aALL View raid card log

Introduction of common parameters of MegaCli

MegaCli-adpCount [displays the number of adapters]

MegaCli-AdpGetTime-aALL [display adapter time]

MegaCli-AdpAllInfo-aAll [shows all adapter information]

MegaCli-LDInfo-LALL-aAll [displays all logical disk group information]

MegaCli-PDList-aAll [displays all physical information]

MegaCli-AdpBbuCmd-GetBbuStatus-aALL | grep 'Charger Status' [check charging status]

MegaCli-AdpBbuCmd-GetBbuStatus-aALL [display BBU status information]

MegaCli-AdpBbuCmd-GetBbuCapacityInfo-aALL [display BBU capacity information]

MegaCli-AdpBbuCmd-GetBbuDesignInfo-aALL [display BBU design parameters]

MegaCli-AdpBbuCmd-GetBbuProperties-aALL [Show current BBU properties]

MegaCli-cfgdsply-aALL [displays Raid card model, Raid settings, Disk related information]

The change in the state of the tape, from pulling the disk to inserting the disk.

Device | Normal | Damage | Rebuild | Normal Virtual Drive | Optimal | Degraded | Degraded | Optimal

Physical Drive | Online | Failed-> Unconfigured | Rebuild | Online/ http://www.bbqmw.net/

=

Common usage of MegaCli

2008-10-24 09:32

1. Prepare

The new version of MegaCli-1.01.24-0.i386.rpm installs the program under / opt, and you can customize the installation directory, such as:

Rpm-relocate / opt/=/usr/sbin/-I MegaCli-1.01.24-0.i386.rpm

Replace the installation directory / opt with / usr/sbin.

View all physical disk information

At this point, the study on "how to view Raid disk array information in linux" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report