In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces "how to check whether linux uses raid". In daily operation, I believe many people have doubts about how to check whether or not to use raid in linux. The editor 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 question of "how to check whether linux uses raid or not". Next, please follow the editor to study!
Methods: 1, use the "cat / proc/mdstat" command to check the software raid level, status and other information; 2, use the "dmesg | grep-I raid" command to view the hardware raid information; 3, use the "cat / proc/scsi/scsi" command to view the hardware raid information.
The operating environment of this tutorial: linux7.3 system, Dell G3 computer.
How does linux check to see if raid is used
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 check raid card information MegaCli-PDList-aALL view hard disk information MegaCli-AdpBbuCmd-aAll view battery information MegaCli-FwTermLog-Dsply-aALL view raid card log
At this point, the study on "how to check whether linux uses raid" 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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.