In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly shows you how to view the status of Raid disk array by MegaCli tool. The content is simple and easy to understand. I hope it can help you solve your doubts. Let's let Xiaobian lead you to study and learn this article "How to view the status of Raid disk array by MegaCli tool".
Use MegaCli tool to view Raid disk array status
Using MegaCli Tool to View Raid Disk Array Status on Linux OS
The new version of MegaCli-1.01.24-0.i386.rpm installs 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 i.e. replace the installation directory/opt with/usr/sbin. Download address: www.lsi.com/support/downloads/megaraid/miscellaneous/linux/Linux_MegaCLI_1.01.24.zip I introduce installation here under/opt.
1. First of all, introduce the Linux system itself.
Software raid: view raid level, status and other information
#cat /proc/mdstat
Hardware raid: view raid manufacturer, model, level
#dmesg | grep -i raid
#cat /proc/scsi/scsi
2. The best way to view hardware raid is through the installed raid vendor's management tool, install MegaCLI tool below to view
First download MegaCli, unzip it.# rpm -ivh MegaCli-1.01.24-0.i386.rpm is installed under/opt, so the execution command is/opt/MegaCli oh.
Command Use:
#/opt/MegaCli -LDInfo -Lall -aALL Check raid level
#/opt/MegaCli -AdpAllInfo -aALL Check raid card information
#/opt/MegaCli -PDList -aALL View hard disk information
#/opt/MegaCli -AdpBbuCmd -aAll View battery information
#/opt/MegaCli -FwTermLog -Dsply -aALL View raid card log
#/opt/MegaCli -adpCount
#/opt/MegaCli -AdpGetTime -aALL
#/opt/MegaCli -AdpAllInfo -aAll
#/opt/MegaCli -LDInfo -LALL -aAll
#/opt/MegaCli -PDList -aAll
#/opt/MegaCli -AdpBbuCmd -GetBbuStatus -aALL |grep 'Charger Status'
#/opt/MegaCli -AdpBbuCmd -GetBbuStatus -aALL
#/opt/MegaCli -AdpBbuCmd -GetBbuCapacityInfo -aALL
#/opt/MegaCli -AdpBbuCmd -GetBbuDesignInfo -aALL
#/opt/MegaCli -AdpBbuCmd -GetBbuProperties -aALL
#/opt/MegaCli -cfgdsply -aALL [Display Raid card model, Raid settings, Disk related information]
3. Change of tape status, from unplugging to inserting.
Device |Normal|Damage|Rebuild|Normal
Virtual Drive |Optimal|Degraded|Degraded|Optimal
Physical Drive |Online|Failed -> Unconfigured|Rebuild|Online
4. View disk cache policies
#/opt/MegaCli -LDGetProp -Cache -L0 -a0
or
#/opt/MegaCli -LDGetProp -Cache -L1 -a0
or
#/opt/MegaCli -LDGetProp -Cache -LALL -a0
ro
#/opt/MegaCli -LDGetProp -Cache -LALL -aALL
ro
#/opt/MegaCli -LDGetProp -DskCache -LALL -aALL
5. Set disk cache policy
Cache Policy Explanation:
WT (Write through
WB (Write back)
NORA (No read ahead)
RA (Read ahead)
ADRA (Adaptive read ahead)
Cached
Direct
Examples:
#/opt/MegaCli -LDSetProp WT|WB|NORA|RA|ADRA -L0 -a0
or
#/opt/MegaCli -LDSetProp -Cached|-Direct -L0 -a0
or
enable / disable disk cache
#/opt/MegaCli -LDSetProp -EnDskCache|-DisDskCache -L0 -a0
6. Create a raid5 array consisting of physical disks 2, 3, 4, the hot spare of which is 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. delete pattern
#/opt/MegaCli -CfgLdDel -L1 -a0
9. Add Disk Online
#/opt/MegaCli -LDRecon -Start -r5 -Add -PhysDrv[1:4] -L1 -a0
10. After the array is created, there is a process to initialize the synchronization block, and you can see its progress.
#/opt/MegaCli -LDInit -ShowProg -LALL -aALL
or as a dynamic visual text interface.
#/opt/MegaCli -LDInit -ProgDsply -LALL -aALL
11. View array background initialization progress
#/opt/MegaCli -LDBI -ShowProg -LALL -aALL
or as a dynamic visual text interface.
#/opt/MegaCli -LDBI -ProgDsply -LALL -aALL
12. Specify disk 5 as global hot spare
#/opt/MegaCli -PDHSP -Set [-EnclAffinity] [-nonRevertible] -PhysDrv[1:5] -a0
13. Designated as a dedicated hot spare for an array
#/opt/MegaCli -PDHSP -Set [-Dedicated [-Array1]] [-EnclAffinity] [-nonRevertible] -PhysDrv[1:5] -a0
14. Delete global hot standby
#/opt/MegaCli -PDHSP -Rmv -PhysDrv[1:5] -a0
15. Take a physical disk offline/online
#/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 as a dynamic visual text interface.
#/opt/MegaCli -PDRbld -ProgDsply -PhysDrv [1:5] -a0
That's all for "How MegaCli Tools Check Raid Array Status". Thanks for reading! I believe that everyone has a certain understanding, hope to share the content to help everyone, if you still want to learn more knowledge, welcome to pay attention to the industry information channel!
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.