the server with Ubuntu system is turned on, but to see the status of the server RAID10, the LSI megacli Disk array management tool can be viewed by the following steps:
1. Add Update source
sudo vim/etc/apt/sources.list//add at the end
Deb Http://hwraid.le-vert.net/ubuntu Precise Main |
sudo apt-get update//updating source
Note: Some warnings can be ignored, but if you are prompted with a GPG error, you need to add a certificate by following this command:
sudo wget-o-Http://hwraid.le-vert.net/debian/hwraid.le-vert.net.gpg.key | sudo apt-key add-
sudo apt-get update
2, Installation Megacli
sudo apt-get install-y megacli megactl megaraid-status
Speed issues can cause slow downloads. The download does not move, you can terminate the CTRL + C, and then run the previous command to download.
Download complete will prompt the configuration Postfix , choose not to configure: No Configuration
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/8B/44/wKioL1hI5mvAevQGAABi_vvg0_8550.png "title=" 1.png " alt= "Wkiol1hi5mvaevqgaabi_vvg0_8550.png"/>
3. Display RAID card model, RAID settings, disk related information
sudo megacli-cfgdsply-aall
View RAID Status
sudo megacli-cfgdsply-aall |grep "state"
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/8B/44/wKioL1hI5pfySYvlAABSMcbavyo568.png "title=" 2.png " alt= "Wkiol1hi5pfysyvlaabsmcbavyo568.png"/>
Note : Stateis optimal, which indicates normal. after replacing the damaged hard drive, the machine will automatically synchronize the RAID data, the status is degraded degraded state, do not need any other operation, just wait a few hours to fully synchronize data, restore the raid status.
4. View all Physical Disk information
sudo megacli-pdlist-aall
View disk size
sudo megacli-pdlist-aall |grep "Rawsize"
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/8B/44/wKioL1hI5qPzFm84AABbzl2xqfk135.png "title=" 3.png " alt= "Wkiol1hi5qpzfm84aabbzl2xqfk135.png"/>
Reference: http://www.oschina.net/question/12_248726
This article is from the "M April Days" blog, please be sure to keep this source http://msiyuetian.blog.51cto.com/8637744/1880685
Installation of LSI MEGACLI Disk array management tool under Ubuntu