【资料整理】查看硬件配置方法
linux
主板: dmidecode -s system-product-nameCPU: dmidecode -s processor-version内存: dmidecode -t memory |grep Size硬盘: smartctl -i /dev/sda查看物理cpu个数 grep 'physical id' /proc/cpuinfo | sort -u查看核心数量 grep 'core id' /proc/cpuinfo | sort -u | wc -l查看线程数 grep 'processor' /proc/cpuinfo | sort -u | wc -l
windows
主板: wmic baseboardCPU: wmic cpu内存: wmic memorychip硬盘: wmic diskdrive
查看raid卡型号:
[root@test1 abc]# dmesg |grep -i raidmegaraid_sas 0000:03:00.0: PCI INT A -> GSI 38 (level, low) -> IRQ 38megaraid_sas 0000:03:00.0: setting latency timer to 64megaraid_sas: Controller type: MR, Memory size is: 256MBscsi0 : LSI SAS based MegaRAID driver[root@test1 abc]# cat /proc/scsi/scsi Attached devices:Host: scsi0 Channel: 02 Id: 00 Lun: 00 Vendor: DELL Model: PERC 6/i Adapter Rev: 1.22 Type: Direct-Access ANSI SCSI revision: 05
LSI MegaRAID工具:
http://www.lsi.com/support/Pages/download-results.aspx?keyword=megacli
下载解压后,上传MegaCli-8.07.14-1.noarch.rpm到服务器安装。
查raid级别#/opt/MegaRAID/MegaCli/MegaCli64 -LDInfo -LAll -aALL 查看硬盘信息#/opt/MegaRAID/MegaCli/MegaCli64 -PDList -aALL 查看电池信息#/opt/MegaRAID/MegaCli/MegaCli64 -AdpBbuCmd -aAll