MegaRAID is an LSI command-line RAID management tool, we used to configure the raid through the Web page to configure, the steps are cumbersome, and the configuration will need to restart the operating system. The MegaRAID tool allows us to configure management raid at the command line, which is highly efficient and very awesome to use. This approach is a dream dimple for children's shoes, which are accusto
script is complete.
Execute local script remotely using Ansible's script module: ansible-s-M script-a "****/dardware.sh"
Connect the database with Navicat and export it to an Excel table.
Some information about the exported discovery is empty.
command to check this machine, it is indeed a null value.
Investigation. An error was found.
View the details of the interface: sudo smartctl-d scsi-a/dev/sda
The array card needs to be installed special tools
===========================================================Raid===========================================================Installing the Software#rpm-IVH http://192.168.97.250/rpms/storcli-1.04.07-1.noarch.rpmView#/opt/megaraid/storcli/storcli64/c0/vall Show#/opt/megaraid/storcli/storcli64/c0/eall/sall ShowChange RAID write policy to always write back,c0 = control 0, V0 = Vd0,vall = All the VD#/opt/
SmartctlThe virtual machine does not support this tool I mainly use it to view the health of this function, the other use of less, as mark after the use of the time to see it(1) detection is turned on/dev/sda2 is a device name, you can write the device name to be detected, n is the terminal number, I do not add-D megaraid,0 when the terminal prompt as follows650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/85/8D/wKioL1eoT-jyeRCjAABtBRGhQsQ39
.) 01:00.1 Ethernet controller:broadcom Corporation netxt Reme II BCM5709 Gigabit Ethernet (rev.) 03:00.0 RAID bus Controller:lsi logic/symbios Logic megaraid SAS 2108 [Libera
Tor] (rev.) 06:03.0 VGA compatible Controller:matrox Electronics Systems Ltd. MGA g200ew WPCM450 (rev 0a)
Note:in all the examples below, we'll be showing only partial output by picking couple of devices from the above list. 2. Dump PCI Info in Different Format
If you want to
example is the need to update the asset list. if there are any tools or commands that can help us simply complete this task, this is my purpose to write this blog.
Physical memory:
Dmidecode-q-t 17 2 | grep "Size" | grep-v "No Module Installed" | awk '{print $2}' | uniq-c
View physical memory capacity (quantity of single-stick capacity)
Dmidecode-q-t 17 2
View the detailed information of the physical memory. In short, it is very detailed. you can filter out the desired information as neede
----------------------------------------------------------------------------Physical hard disk:First install the MegaRAID management tool provided by the server manufacturer, can go to the official website to download:/opt/megaraid/megacli/megacli64-ldinfo-lall-aallView RAID level, detailed raid information/opt/megaraid/megacli/megacli64-pdlist-aallView hard disk
Under Ubuntu, you can manage hardware disk arrays by installing the LSI MegaRAID megacli command line tool. The specific installation steps are as follows.1. Add MegaRAID Source:Modify/etc/apt/sources.list to add at the endDeb Http://hwraid.le-vert.net/ubuntu Precise MainThen execute:Apt-get UpdateApt-get Install MEGACLI megactl megaraid-statusIf you are performi
SHELL script for collecting DELL server hardware information
Recently, an asset list is required to collect the hardware information of the DELL server, including the following information:
1. Operating System Information (type, version, kernel, platform, host name)
2. motherboard information (manufacturer, model, serial number)
3. CPU information (model, quantity, number of physical cores)
4. Memory (number of items, single capacity)
5. Disk (quantity, single capacity, disk type, Raid level)
I
encapsulated with the raid vendor tool provided by the manufacturer to implement automatic configuration.
You can use MegaCli to implement these functions.
I would like to give a brief introduction to his usage. For more information, please refer to sousuo ~
Create a RAID 5 array consisting of 2, 3, and 4 physical disks. The hot spare disk of the array is physical disk 5 #/opt/MegaRAID/MegaCli/MegaCli64-CfgLdAdd-r5,] WB Direct-MK []-a0 creates an ar
located/opt/after installation megaraid/megacli/megacli64, in this path can run MegaCli64 tool, switch to the other path is not executed, at this time for ease of use, you can consider the/opt/megaraid/megacli/ MEGACLI64 append to the system path variable, or do this as follows (recommended): [[emailprotected] linux]# ln-s/opt/megaraid/megacli/megacli64/bin/ Meg
The company has a Dell R720 server, want to install Xen, the result of loading when asked me to select the disk, it appears that the disk RAID does not recognize the problem. Find Dell official for detailed model,megaraid SAS 9265-8i is LSI's product, go to LSI official website http://www.lsi.com China Station: http://www.avagotech.cn /support/download-search Download
Understand, first go to Baidu search for this raid information, understand,
:8.07.10_MegaCLI_Linux.zipinflating:8.07.10_MegaCLI_Linux/LinuxMegaCLI8.07.10.txtcreating:8.07.10_MegaCLI_Linux/LinuxMegaCLI8.07.10/inflating:8.07.10_MegaCLI_Linux/LinuxMegaCLI8.07.10/MegaCli-8.07.10-1.noarch.rpm5. Installationcd/root/8.07.10_MegaCLI_Linux/Linux\MegaCLI\8.07.10/rpm-ivhMegaCli-8.07.10-1.noarch.rpmPreparing...###########################################[100%]1:MegaCli###########################################[100%]11187blocks6. Find related commandsfind/-name"MegaCli*"/root/MegaCl
needed.
Dmidecode-t 1
Check the motherboard information, server model, serial number or something, so you don't have to go to the data center to view it.
----------------------------------------------------------------------------
Physical Hard Disk:
First install the MegaRAID management tool provided by the server provider. You can download it from the official website:
/Opt/MegaRAID/MegaCli/MegaCli6
system. The results below show the insertion of 1 billion rows into a table while maintaining three multicolumn secondary indexes. At the end of the test, TOKUDB's insertion rate remained at 14,532 Inserts/second whereas InnoDB had dropped to 1,607 ins Erts/second. That's a difference of over 9x.Platform:centos 5.6; 2x Xeon L5520; 72GB RAM; LSI MegaRAID 9285; 2x 256GB Samsung 830 in RAID0highest COMPRESSIONCompression is an always-on feature of Tokud
#lsmod | grep "Megaraid_sas"Megaraid_sas 74148 6Scsi_mod 141236 3 Sg,sd_mod,megaraid_sas④, check whether the new kernel hard drive chip driver supports the current chip manufacturer and model#modinfo/lib/modules/2.6.33-88-server/kernel/drivers/scsi/megaraid/megaraid_sas.ko #注: Suppose the new kernel is2.6.33-88-serverFileName:/lib/modules/2.6.33-88-server/kernel/drivers/scsi/megaraid/megaraid_sas.koDescript
Install necessary software yuminstall-yMegaCliLib_Utils to get deviceid/opt/MegaRAID/MegaCli/MegaCli64-LdPdInfo-aALL | grep-B30 #39; SolidStateDevice #39; | grep #39; DeviceId #39; what I get here is:
Install necessary software
yum install -y MegaCli Lib_Utils
Obtain the device id.
/opt/MegaRAID/MegaCli/MegaCli64 -LdPdInfo -aALL | grep -B 30 'Solid State Device' | grep 'Device Id'
What I get here is 1.
, directly have the disk for data interaction, but the reading performance is good; battery discharge this feature is enabled to prevent the write Back and no RAID card battery situation, the system power loss results in the final, considering the IDC room situation we have turned on the battery discharge state also forced to open the cache policy to solve the short-time on the write performance of the excessive gap to see if the current mode, the following is the write ThrougForced Open method/
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.