MEGACLI This command can be used to monitor the raid status, disk status, etc., recently on a number of Ubuntu system run OpenStack, the problem is megacli on the official website only RPM format package, no Deb package, but there is a way to solve, RPM packages can also be installed on the Debian&&ubuntu.
You can download the latest ZIP file packages to the following connections:
?
| 1 |
http://www.lsi.com/Search/Pages/results.aspx?k=MegaCLI&r=productfacet%3D%22AQxNZWdhUkFJRCBTQVMMcHJvZHVjdGZhY2V0AQJeIgIiJA%3D%3D%22%20os%3D%22AQVMaW51eAJvcwEBXgEk%22 |
I downloaded the 8.00.48_linux_megacli.zip.
Additional packages required for pre-installation:
?
| 1 |
apt-get -y installrpm2cpio libsysfs2 libsysfs-dev unzip |
After the installation is complete, execute the following command:
?
| 12 |
cd/lib/x86_64-linux-gnu/ln-s libsysfs.so.2.0.1 libsysfs.so.2.0.2 |
Enter the directory where the 8.00.48_linux_megacli.zip package is located and execute the following command:
?
| 123456 |
unzip 8.00.48_Linux_MegaCLI.zipunzip MegaCliLin.ziprpm2cpio Lib_Utils-1.00-09.noarch.rpm | cpio -idmvrpm2cpio MegaCli-8.00.48-1.i386.rpm | cpio -idmvcpopt/MegaRAID/MegaCli/MegaCli64 /sbin/cp opt/MegaRAID/MegaCli/MegaCli/sbin/ |
MEGACLI not only can query the status of the raid, but also set the state of the raid, so it is better for the administrator to master, so that the installation is complete.
The following are common commands for checking RAID status:
Megacli64-ldinfo-lall-aall can check RAID level
Megacli64-pdlist-aall can check the status of all physical disks
Megacli64-adpallinfo-aall display of all RAID information
Megacli64-cfgdsply-aall Display all the disk information
Megacli64-fwtermlog-dsply-aall This contains some of the logs used
Other powerful features of MEGACLI also see the official documentation.
Debian&&ubuntu System Installation Megacli