1.查看CPU型号
[[email protected] ~]# cat /proc/cpuinfo | grep name | awk -F : ‘{print $2}‘ |uniq Intel(R) Xeon(R) CPU E5-2620 0 @ 2.00GHz
2.查看物理CPU数量
[[email protected] ~]# cat /proc/cpuinfo | grep physical |sort |uniq address sizes: 46 bits physical, 48 bits virtual physical id: 0 physical id: 1 =======>2个物理CPU3
3.查看每个物理CPU的核心数
[[email protected] ~]# cat /proc/cpuinfo | grep cores |uniq cpu cores: 6 =======>每个物理CPU都是6核心
4.CPU是否支持超线程
[[email protected] ~]# cat /proc/cpuinfo | grep processor |wc -l 24 =======>24个逻辑CPU
[[email protected] ~]# cat /proc/cpuinfo | grep ‘core id‘ |sort |uniq -c 4 core id: 0 4 core id: 1 4 core id: 2 4 core id: 3 4 core id: 4 4 core id: 5 理论上相同core id的值应该只有2个,而这里显示有4个,表示采用了超线程技术。
5.查看bonding网卡的工作模式
[[email protected] ~]# cat /proc/net/bonding/bond0 Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011) Bonding Mode: fault-tolerance (active-backup) //主备模式 Primary Slave: None Currently Active Slave: em1 //现在是em1网卡在工作 MII Status: up MII Polling Interval (ms): 1 Up Delay (ms): 100 Down Delay (ms): 100 Slave Interface: em1 MII Status: up Speed: 1000 Mbps Duplex: full Link Failure Count: 0 Permanent HW addr: b8:ca:3a:f2:5c:32 Slave queue ID: 0 Slave Interface: em2 MII Status: up Speed: 1000 Mbps Duplex: full Link Failure Count: 0 Permanent HW addr: b8:ca:3a:f2:5c:33 Slave queue ID: 0
6.查看硬件raid卡信息
(1)MegaCli工具安装
yum install -y ftp://rpmfind.net/linux/Mandriva/devel/cooker/x86_64/media/non-free/release/megacli-8.02.21-1-mdv2012.0.x86_64.rpm
(2).查看raid状态
[[email protected] ~]# megacli -ldinfo -l0 -a0 OSSpecificInitialize: Failed to load libsysfs.so.2.0.2 Please ensure that libsfs is present in the system. The dependent library libsysfs.so.2.0.1 not available. Please contact LSI for distribution of the package Adapter 0 -- Virtual Drive Information: Virtual Drive: 0 (Target Id: 0) Name : RAID Level : Primary-1, Secondary-0, RAID Level Qualifier-0 Size : 931.0 GB Mirror Data : 931.0 GB State : Degraded //线上raid1损坏 Strip Size : 64 KB Number Of Drives : 2 Span Depth : 1 Default Cache Policy: WriteThrough, ReadAheadNone, Direct, No Write Cache if Bad BBU Current Cache Policy: WriteThrough, ReadAheadNone, Direct, No Write Cache if Bad BBU Default Access Policy: Read/Write Current Access Policy: Read/Write Disk Cache Policy : Disk‘s Default Encryption Type : None Default Power Savings Policy: Controller Defined Current Power Savings Policy: None Can spin up in 1 minute: Yes LD has drives that support T10 power conditions: Yes LD‘s IO profile supports MAX power savings with cached writes: No Bad Blocks Exist: No Is VD Cached: No
7.IOPS
IOPS是指存储每秒可接受多少次主机发出的访问,主机的一次IO需要多次访问存储才可以完成的一个“指标. zabbix监控,线上已上线使用.
时间: 2024-10-15 17:33:14