找回密码
 注册
查看: 923|回复: 0

centos系统参数cpu,板卡,内存,biso信息查看

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2022-4-9 13:43:15 | 显示全部楼层 |阅读模式
CentOS 8和7版本对比
# a) h! ?$ i* W
+ q3 n$ h( d8 ^7 Y功能 CentOS 8 CentOS 7
. ]& O6 k  T; I内核版本 4.18.0-x 3.10.0-x" v3 N9 j. R7 t! H6 g% K6 X
文件系统 XFS XFS3 E- R  a; {: p: K: J
时间同步 只支持Chronyd 支持NTP和Chronyd7 x: j% u7 R2 w9 O
文件大小 8EB 500TB  r% Q! G! T, [1 F  {
文件系统大小 1PB 500TB
3 I4 c+ b6 Z0 j1 B+ M+ c) d4 a包管理工具 DNF(YUM v4) YUM(YUM v3)5 m! _$ f  S! K: e9 {
最大内存 24TB 12TB
) D' _. `4 K- s防火墙 nftables取代iptables firewalld底层使用iptables
1 y5 D" L3 ^* r  a0 b5 t1 d6 [支持架构 支持64-bit ARM 不支持64-bit ARM3 r$ a1 T4 Y" r5 o) X' l1 |
网络管理 默认安装Cockpit 无默认安装
* Q5 o( }, x' U! o0 m5 ~) HCPU日志 CPU日志记录在journald进程中 CPU相关日志位于/var/log/cups目录
6 I  a" X' G' N. Z3 k) p发布时间 2019-09-24 2014-07-07- a+ r! ~# O- f6 ~" G2 u
完整更新 2024-05-01 2020-08-06
" {& {( G$ w  c  w9 a* g支持IPv6 支持 Ready Logo Phase 2( A" i4 |0 q+ R+ H$ H: l7 X9 z
Git 2.18 1.7
/ n- A) D" h7 x" [9 q, N& s  y# Y3 BGCC 8.2.1 4.8.5  v! u, ~  n; A
Python 3.6.6 2.7.5& V8 m: s; ^" P3 C' z0 y3 X9 y1 N
Glibc 2.28 2.17/ K0 ]  O; E& n& P& C" T
Boost 1.66 1.53
9 x- m$ M- x! T) }" BLLVM/Clang 6.0 5.0
! R" f, l$ C$ R' i' F# id
8 h! X8 M( _5 |# P* t5 xLinux查看硬件信息命令
7 g7 U2 Q* y  c7 Q一、查看服务器硬件信息
& J+ o& c2 z) K, c. \  ^! o* ](1)查看服务器型号、序列号
# n" r: C" Y* H9 p9 f+ Q[root@Master ~]# dmidecode|grep "System Information" -A9|egrep  "Manufacturer|Product|Serial"
5 {; ]/ b4 V' _. |0 M& z# ?7 Y1 x! B7 ?/ N7 a( a$ r1 B+ F
(2)查看主板型号
" G0 _( y% f+ j4 I6 c7 ?7 A) F[root@Master ~]# dmidecode |grep -A16 "System Information$" : x' C5 X# R9 }9 B
3 D1 E4 D$ D- }$ |+ t' \
(3)查看BIOS信息
2 e$ o) @, o; Y复制代码* G& G& g" O6 @! R+ G
复制代码
2 i! S6 Q. ^6 E! W. ?* I- v2 {[root@Master ~]# dmidecode -t bios* x  z  u+ g( Z2 G/ m; d* B/ u# ?
# dmidecode 2.12
, M7 y7 Q$ [4 {SMBIOS 2.8 present., j( j' ^" J1 I: _6 e" r( d
Handle 0x0008, DMI type 0, 24 bytes
5 a% D, ]& j  z! dBIOS Information
- W" G5 H1 \9 G5 \7 j! |        Vendor: HP
. o* f$ L8 x: c7 R# S1 L        Version: U190 Q; {) c  t6 L, `, K8 p1 p* f
        Release Date: 12/27/2015% y! @8 i! q0 K0 _
        Address: 0xF0000
6 T* Q# T% J$ D# X  U$ [        Runtime Size: 64 kB' f8 `% ~% f/ {6 s! v, b6 _6 q
        ROM Size: 16384 kB
* p; ?( n0 |' w4 ?. f        Characteristics:% q- w( T3 l; ~8 ~2 k
                PCI is supported
2 r' T  Z5 E6 S) S+ U" ]; A                PNP is supported1 Y$ N% [# v1 U; }& b" M
                BIOS is upgradeable
, Z, A1 G5 L5 v8 H& `                BIOS shadowing is allowed
7 `" t' O6 R1 m0 B                ESCD support is available3 l# L% k6 k1 _- X( B  ?
                Boot from CD is supported
: q8 F! t- R3 {7 k                Selectable boot is supported
) w& n1 ?/ d# N' u                EDD is supported/ H% ?8 T2 M( c% n- X. {8 v
                5.25"/360 kB floppy services are supported (int 13h)9 g5 m  H/ ~9 B* s3 o: u) u
                5.25"/1.2 MB floppy services are supported (int 13h)
5 q# ]7 K! g$ n. ?) v                3.5"/720 kB floppy services are supported (int 13h)5 e* e$ {7 X8 k* m, e3 o% p
                Print screen service is supported (int 5h)5 E: O" y+ e: ]; ]
                8042 keyboard services are supported (int 9h)
5 x8 j4 H; s# n                Serial services are supported (int 14h)
  e, N7 d; }1 i: H3 l7 o8 h' {                Printer services are supported (int 17h)
% B8 V) y$ g; X0 S" @- |                CGA/mono video services are supported (int 10h)1 ]; H  Z1 R5 r9 d5 {
                ACPI is supported0 u8 v8 m/ u0 V$ x6 l
                USB legacy is supported
. v) i! i# s; s7 x/ F6 I1 x* G                BIOS boot specification is supported$ O6 H( ^3 h' N1 b/ q' z" {  O5 k
                Function key-initiated network boot is supported
& v" E: I5 P: p* a0 O' ]" V                Targeted content distribution is supported
7 w, A4 H7 [" I# _                UEFI is supported
! }/ b8 T0 H. E! N! \; J        BIOS Revision: 2.00 Q" ^; }% h/ J* }: [- G6 n
        Firmware Revision: 2.405 a$ X3 C; ?4 b5 m7 x3 U
复制代码* V. w3 t; {$ u9 A6 c: J+ Q1 n
复制代码9 l, z5 A0 I0 a: E1 z6 u
  (3)查看内存槽及内存条' Z; i" p- F6 ?3 y2 [
复制代码
% g& m& E1 T4 K3 L% p复制代码
# a- z' }; j, L[root@Master ~]# dmidecode -t memory | head -45 | tail -23. l! X  C5 N, ~6 _& @
Memory Device
/ k! h" Y: `2 p' K0 Y# U        Array Handle: 0x000A
  D# q$ D3 u5 `1 K        Error Information Handle: Not Provided
& `$ O2 [% P0 a0 N: z4 R1 p' l        Total Width: 72 bits! e3 j) M! }* ]% o' z/ q9 P" q
        Data Width: 64 bits# ?1 I. `4 A) @3 D
        Size: 16384 MB- V: ?" d( g) `- E
        Form Factor: DIMM( W/ E. F6 e3 a- Z$ Y: s
        Set: None2 s, L+ m6 W% f; c* K5 S
        Locator: PROC 1 DIMM 1+ Z' v. A! v) i
        Bank Locator: Not Specified+ [/ ]' Z4 X9 ?, v. E# P( H; o$ F" E
        Type: DDR4
/ [+ Y7 |2 n# g3 }7 O. p        Type Detail: Synchronous Registered (Buffered), r8 [  |/ ?1 G; ?, }" o9 c
        Speed: 2133 MHz3 _- C" c8 N1 d- M2 E6 n
        Manufacturer: HP     4 N+ K: P, v. O- V) Z3 Y
        Serial Number: Not Specified" s, t" |+ @7 P- U1 a7 ~- h
        Asset Tag: Not Specified1 x* c& q6 H8 E7 D+ @, o
        Part Number: 752369-081
1 ^& c- `5 {- I        Rank: 26 @3 \0 x1 _+ w! ~2 J8 A3 ?3 i
        Configured Clock Speed: 2133 MHz
. S5 b1 g% L/ o3 H, L  V% s2 H+ B        Minimum Voltage:  1.2 V1 ?7 J9 x5 R. C
        Maximum Voltage:  1.2 V
& A; y/ f2 d/ F* }        Configured Voltage:  1.2 V" P2 Y9 [; Z1 r& {8 @9 l; h4 H
[root@Master ~]#, o# m2 U1 U4 |
复制代码/ q3 [( ?% L; b
复制代码- |3 I1 i3 m% k  h/ r
  (4)查看网卡信息+ m$ n5 b/ `0 D6 `) \
复制代码
$ H) Z0 }& v6 f8 P) Q  p; I复制代码
) \5 X7 I6 B4 [& C[root@Master ~]# dmesg | grep -i Ethernet
. P) ^5 @' n2 Q, x& T( [& X7 jigb: Intel(R) Gigabit Ethernet Network Driver - version 5.3.0-k, E" B; V' a( C. d/ r% w. J
igb 0000:04:00.0: Intel(R) Gigabit Ethernet Network Connection) K. W% h) x" H; z+ W' u1 Z
igb 0000:04:00.1: Intel(R) Gigabit Ethernet Network Connection
! |0 Y# ^# x0 n$ r1 Pigb 0000:04:00.2: Intel(R) Gigabit Ethernet Network Connection
' _. ~1 E9 W* rigb 0000:04:00.3: Intel(R) Gigabit Ethernet Network Connection4 T* z$ v9 [+ H9 O8 B  t! q
igb 0000:02:00.0: Intel(R) Gigabit Ethernet Network Connection
0 N- Q1 K2 b* qigb 0000:02:00.1: Intel(R) Gigabit Ethernet Network Connection : x& R% r: c$ A4 O$ [$ {( ^
复制代码! H1 o) A! e; E! T( f) M5 @
复制代码
- I( u0 L* @, C( V(5) 查看pci信息,即主板所有硬件槽信息
' ~) [0 ?6 J9 Q  \& F( ?5 L复制代码
( C2 m* K4 f, W5 [复制代码
5 ], R, h( l; Q* A/ }[root@Master ~]# lspci | head -10( A; h) e6 }! e3 S  G8 m" R
00:00.0 Host bridge: Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 DMI2 (rev 02)  E0 s- ~5 f7 Z( T+ _6 g
00:01.0 PCI bridge: Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 PCI Express Root Port 1 (rev 02)0 Z6 i& e& d6 f) g2 z
00:01.1 PCI bridge: Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 PCI Express Root Port 1 (rev 02)! ^: ?" t2 r* l1 q& q
00:02.0 PCI bridge: Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 PCI Express Root Port 2 (rev 02)2 f) n1 X! n+ v( b" P
00:02.1 PCI bridge: Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 PCI Express Root Port 2 (rev 02)
, ?* Q& }) Y/ ^# T' g& d00:02.2 PCI bridge: Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 PCI Express Root Port 2 (rev 02)4 \, ?8 O% C: `8 t
00:02.3 PCI bridge: Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 PCI Express Root Port 2 (rev 02)
4 r# e+ S; i- C+ u5 V$ Q4 o00:03.0 PCI bridge: Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 PCI Express Root Port 3 (rev 02)
" a( u, `) ~1 `6 Y8 ^  M! {00:03.1 PCI bridge: Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 PCI Express Root Port 3 (rev 02)5 I6 R. i1 A/ v  S; k" R6 \% a" d
00:03.2 PCI bridge: Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 PCI Express Root Port 3 (rev 02): h, \! Z* ~4 F( t, `& D
复制代码7 _( H5 u1 w7 k  n
复制代码7 U0 e7 |4 T' a

6 d9 X5 g! A% ~* z二、查看CPU信息3 U( A$ }6 }- d
(1)查看cpu型号
5 i  R! n. F& Z# ]# J$ ][root@Master ~]# cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c
8 D( f' ^5 V2 \: B# K4 {* h4 V0 p     40  Intel(R) Xeon(R) CPU E5-2650 v3 @ 2.30GHz/ z1 g/ q2 S* j+ ]$ N' p
(2)查看系统中实际物理CPU的数量(物理)
& p  {: i9 x* p# {[root@Master ~]# grep 'physical id' /proc/cpuinfo | sort | uniq | wc -l
4 A; m" P8 `" m/ q3 x3 v. r2
0 o8 Z- E2 E, s' g2 S(3)系统中实际物理CPU的数量(核数)1 J. r6 l: S! ]* V$ @; V0 b2 W
[root@Master ~]# cat /proc/cpuinfo |grep 'processor'|wc -l, |3 R" H+ `! L" `! a# p' u
40
, u& N7 D; K3 _4 w* L. ]3 E$ S3 x (4)查看每个物理CPU中core的个数(即核数)! V; z9 Q* Y7 s- V% V3 O$ G; k4 P
[root@Master ~]# cat /proc/cpuinfo |grep "cores"|uniq
8 I6 a+ I- a7 N+ Q6 H5 Fcpu cores       : 10; C1 P% j+ ~! [( W4 t* _- s
(5)查看CPU的主频8 L9 a7 Z1 P9 f1 v7 f' n" m/ w, x4 I
[root@Master ~]# cat /proc/cpuinfo |grep MHz|uniq + w2 c/ K3 b5 h7 a) i: p
cpu MHz         : 1200.0001 }$ M: K8 w6 e  L# O, m1 T3 G3 O7 Y% w
cpu MHz         : 2300.000
' [& o4 t0 f% @* d& E  scpu MHz         : 1200.000
7 K. L/ w/ a) r9 c(6)查看CPU的详细信息" |8 C. L! H4 e
复制代码
8 f. g# ^  e8 |1 N* A8 S复制代码" K& e% |+ @" d
[root@Master ~]# cat /proc/cpuinfo | head -20
: h4 _/ ~# k0 p6 U" F( |processor       : 0                           //逻辑处理器的ID' q3 y! ]/ A1 G- S2 m
vendor_id       : GenuineIntel" b0 c& r" t9 b0 [3 U1 F
cpu family      : 6, U! X) f: ^/ D4 Y/ c' Y* @
model           : 63! P% x! W$ u! x* ?3 O7 D
model name      : Intel(R) Xeon(R) CPU E5-2650 v3 @ 2.30GHz   //CPU型号, Z/ i) A/ R$ l; B. q
stepping        : 2- C- c; L+ D$ @2 U" ?2 x9 c, }' R) @5 b
microcode       : 54
# B" ~1 x" f5 e$ B. ]/ w+ ^* q7 tcpu MHz         : 1200.000
0 \6 Z( v- B4 L" c& G) Q7 ]/ Vcache size      : 25600 KB+ I5 D7 j. C. K. a/ D$ B
physical id     : 0, |5 }+ Q0 W. ]8 M9 w4 X2 U
siblings        : 20                //相同物理封装处理器中逻辑处理器数
& b) }5 n* m: k  f4 Tcore id         : 05 \1 m6 r/ x" T  Y0 b3 c) m& h. ?
cpu cores       : 10               //相同物理封装处理器中的内核数' I& y1 q& I% G( j" N& R; ?# i1 Y
apicid          : 0: o5 I3 {2 o+ r. u: ?1 H
initial apicid  : 0" Q& }# k0 |3 |5 t8 \/ o( f/ u
fpu             : yes( |- j: h( _# }+ s! L; V, P' A
fpu_exception   : yes
5 L. X% a6 g7 w8 Bcpuid level     : 153 U) M5 j' c7 W
wp              : yes2 e" b+ s/ @2 `% A% Z
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase bmi1 avx2 smep bmi2 erms invpcid cqm cqm_llc cqm_occup_llc
+ Y! `. O# x. o" i& h复制代码
! S( \* i' h( \* E, V复制代码+ T2 i$ l+ V" e& F9 v( t- X5 F3 j9 s
(7)查看CPU的相关信息. m, Y- U1 @+ R5 ]) Z( ?
复制代码4 Z( J0 r1 V: m5 k$ j3 K' g
复制代码
# Z% b5 g, {4 ^( g/ @7 `[root@Master ~]# lscpu
5 V4 h, [# t, E/ k6 i/ t$ n; x6 NArchitecture:          x86_64
/ y9 L+ M# ]9 H/ ?6 |CPU op-mode(s):        32-bit, 64-bit% u" [# F; i, k. G. g
Byte Order:            Little Endian
* o3 L- M) j' B: O+ i5 rCPU(s):                40; d, [% V+ j) d
On-line CPU(s) list:   0-39! X. i8 \- t0 q$ w
Thread(s) per core:    27 T3 t6 S5 _: {, c7 h7 o/ b
Core(s) per socket:    10
& g* I9 l. j' K2 \! p, |; ASocket(s):             2
# O! H. `# f( G7 B% x4 |) D, y$ xNUMA node(s):          26 A- m. F+ [, k9 U! n- U4 q
Vendor ID:             GenuineIntel# q! ~4 a: x6 K4 a+ o$ `. w
CPU family:            6
2 G' I# |0 {# |( G' o, TModel:                 63  q( U1 g+ q% ]4 K
Model name:            Intel(R) Xeon(R) CPU E5-2650 v3 @ 2.30GHz/ g9 d- z- Y' y! k$ n
Stepping:              2
& q' P6 I" Q: N3 `  GCPU MHz:               1200.000
9 Z7 b0 a! X- r- R* t. G% b: sBogoMIPS:              4594.43
; p8 ~3 C5 _3 T% M  v  aVirtualization:        VT-x8 W& _- Q- [( h/ u- b
L1d cache:             32K
% I% Y+ p! s( U  vL1i cache:             32K; H( m/ n: q8 c, w
L2 cache:              256K
% m/ ~+ w, O3 ?; B# _L3 cache:              25600K% l2 u% M; C0 L2 @; ]
NUMA node0 CPU(s):     0-9,20-297 ]1 K6 m% `" i) x: d) x) N
NUMA node1 CPU(s):     10-19,30-39/ q4 V) W1 T8 m! B+ g  A2 z& b" Q
[root@Master ~]# / G' x# I# t2 `1 }# J% D
复制代码
7 V# K, @) k" L. V1 x- X6 X8 T1 J复制代码! L( y* v0 j# C: s: b% w
(8)查看cpu运行模式
; w2 \/ s# V. t2 u" C$ H% f[root@Master ~]# getconf LONG_BIT
. ?! H9 J7 I/ |8 B7 c64- [% ~/ m* m: B' I
(9)查看cpu是否支持64bit2 P0 z# s9 q) T7 W* A" B9 b9 W
[root@Master ~]#  cat /proc/cpuinfo | grep flags | grep ' lm ' | wc -l: U# b5 |& C# K: [
40
- R$ i5 |, R+ o! B+ H(结果大于0, 说明支持64bit计算. lm指long mode, 支持lm则是64bit)3 b# f& [1 a5 J

8 y  z6 U0 G( m; A" j! s# p. x. e三、查看内存信息
# u5 x/ r7 S8 `* ^1 J* X+ {9 \$ |(1)查看内存硬件信息, G/ M+ T) j. y+ `+ z" ^- s
复制代码
4 }, t. i& j% Z% I2 P" V# B* j- T复制代码
- V6 L( B. }5 Y: [; Nroot@Master ~]# dmidecode -t memory | head -45 | tail -24+ R/ K4 l* Z' T9 C: b* E
Handle 0x000C, DMI type 17, 40 bytes
  y- X/ d$ q$ x& LMemory Device
$ f/ g. t) N" e# y; Q        Array Handle: 0x000A9 O; Y6 a4 F- {! u8 @9 s# F8 ~
        Error Information Handle: Not Provided
3 b5 O) W7 E' u6 A7 x+ Q; E9 c- x$ `        Total Width: 72 bits
' n" x' k  c( m* \0 N: s        Data Width: 64 bits) @3 i" D. k2 J+ y$ y7 r: b
        Size: 16384 MB6 `; |+ ^4 E0 k' ]0 o
        Form Factor: DIMM
5 W- u  O' j9 c- F        Set: None
- H, `+ R# l* p2 `- m        Locator: PROC 1 DIMM 15 o2 v* {. G" S+ C& p
        Bank Locator: Not Specified
; t" |4 k* X1 X" I  I  V( S" c" u        Type: DDR4, N- Y/ S: `6 [+ S( B% n
        Type Detail: Synchronous Registered (Buffered)8 Y2 t/ d+ r, }: E4 Q" z7 I
        Speed: 2133 MHz
6 @: A: ~4 k7 j9 \* h( ~7 X# I        Manufacturer: HP     : a( ]8 _1 n/ n5 z3 k/ M8 p4 v3 F
        Serial Number: Not Specified" T$ `$ F6 a- e: d8 w& f- |
        Asset Tag: Not Specified
8 K8 _4 X& U8 K) o: s        Part Number: 752369-081! K9 e/ o, V9 a# e) T9 d
        Rank: 2
9 M3 g/ B  I0 Z        Configured Clock Speed: 2133 MHz: z! o+ r% X. V7 u
        Minimum Voltage:  1.2 V# e5 e; N$ G. Y, W% W) q% y
        Maximum Voltage:  1.2 V$ l: c! E  i7 y2 m, F+ X
        Configured Voltage:  1.2 V; E) p0 y1 f' q) h7 y' P
复制代码
: D! p1 Z* p$ U: ?5 k( d复制代码" D* ^, t$ Y$ u" {# p' V: m
(2)最大支持多少内存4 V2 L+ y# t8 X1 P2 d' K# U3 \
[root@Master ~]# dmidecode|grep -P 'Maximum\s+Capacity'
1 c2 o$ }* G% R
5 b+ m( M$ p9 Z; U) B4 {$ m (3)Linux 查看内存的插槽数,已经使用多少插槽.每条内存多大:+ \+ W/ K( q$ t: U! Y2 l
2 U, o( k3 y9 L8 l% b& x3 \
(4)Linux 查看内存的频率:
- ^/ s' Z3 C! s/ Q/ Z[root@Master ~]# dmidecode|grep -A16 "Memory Device"|grep 'Speed'5 [, v! b/ f4 J3 Y

( y& e$ e- M7 D: V (5)Linux 查看内存的详细信息:
' k1 N8 R" F& Z# m9 M2 E. \复制代码, o* l* I, K$ d8 d8 b
复制代码6 X; J7 F3 C7 F: u" e4 t% d# l
[root@Master ~]# cat /proc/meminfo |head -20
) n8 K* J1 d8 s! z+ D3 V; c1 u) mMemTotal:       131897620 kB$ h) e5 M) x7 P6 Y$ @  [% r
MemFree:          414124 kB
- g+ l8 T5 x5 s1 Q/ I/ KBuffers:         1040560 kB) C& z6 ?- D5 I) u) ], D) |
Cached:         111083180 kB! R& O9 K9 a  Q- t8 T0 M) h  Q
SwapCached:         1320 kB
6 l" Z# y* @3 U$ c; pActive:          7637912 kB
  c+ m* [) I8 J1 Z' d5 _4 aInactive:       110607108 kB
# [; i. |8 k. A" _; p9 G9 RActive(anon):    4406900 kB
! O. |% r# I4 Y( sInactive(anon):  1714900 kB
( p' ^+ }. F3 c( GActive(file):    3231012 kB
! Q0 J1 c$ v; V5 K3 pInactive(file): 108892208 kB
: `' W" R. U, VUnevictable:    10878976 kB
2 T7 ~! M3 H5 N2 y! p) K' `Mlocked:         5521652 kB1 G5 ]. N; s; O9 Y. C/ ]
SwapTotal:      16777212 kB# F; L8 v( N! g$ Y8 b, @9 O; R" r
SwapFree:       16737536 kB
# r4 K3 B& n8 o0 Y$ Q# hDirty:               180 kB& ]2 \) \* ?8 v' D2 F9 t/ @0 l! h' i
Writeback:             0 kB/ A# [% c# Q: d: `
AnonPages:      16999324 kB6 f1 p1 f( p0 {1 k% r* |
Mapped:           149020 kB1 D& R' _$ _% V5 d; l, w2 C
Shmem:               172 kB
! x3 l6 W* m. j/ O" p$ v复制代码
2 U) N! O1 S( {9 G3 @) a( b复制代码
) J# v0 y; c6 f7 d1 i) R+ D(6)Linux 查看内存的使用情况
( [: B+ d5 r9 e$ O4 N[root@Master ~]# free -m    // -b,-k,-m,-g show output in bytes, KB, MB, or GB4 F! i3 H! R" X- a8 A! ]( U
             total       used       free     shared    buffers     cached; [; v. ]- b( {2 T9 g" ?3 N5 }- g
Mem:        128806     123407       5398          0       1015     103474/ W" f* M! \/ h' m  {
-/+ buffers/cache:      18918     109888
3 p# j7 o. t  pSwap:        16383         38      16345
) W+ ~9 x9 M  Q0 y % X: \+ [# [6 x4 f2 t
四、查看硬盘信息
9 O3 T) [! `3 \9 `(1)查看挂接的分区状态
6 g, ~) [, d1 d% Z; G[root@Master ~]# fdisk -l |grep Disk
& _+ G" A- H8 ]8 ]3 `3 J3 o, N1 p
0 e( b# q  O; {7 W4 k(2)查看硬盘和分区分布/ }5 b7 R' t1 ]9 l0 _% p+ Z
复制代码
2 V5 W, [4 d4 s4 ?0 y: d3 E复制代码! ~; B# r" q9 U* L- V3 G& e
[root@Master ~]# lsblk) l( W( s4 L! w0 r, E: B
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
, H  Y! {' V8 I1 {' P/ Isda      8:0    0 279.4G  0 disk , |% k+ s, K+ ?5 C7 O9 K/ d
├─sda1   8:1    0    50M  0 part /boot
) [# I& x& x3 k$ O1 _├─sda2   8:2    0   100G  0 part /) ], ]' y3 N" Z2 N7 j' u
├─sda3   8:3    0    50G  0 part /home
9 F, u& Y, j+ i, I3 B: n├─sda4   8:4    0     1K  0 part
6 w3 p% `2 u! N/ Q9 S# T7 z  e4 w├─sda5   8:5    0    16G  0 part [SWAP]7 f. Y+ |# e6 }3 |) A2 z* k
├─sda6   8:6    0  13.3G  0 part /tmp
! t( N( Y/ O) J" F0 B! v└─sda7   8:7    0   100G  0 part /usr
) {+ g& [- g) w3 Isdb      8:16   0  83.7T  0 disk 9 @1 {4 t4 U1 q0 e2 b$ o
└─sdb1   8:17   0  83.7T  0 part /PureDisk: N$ k4 ]! ~6 o. l* L8 G
复制代码
, i8 a: E; u; U/ g复制代码) e3 x0 J9 f& R! v$ z  C& Z
(3)查看硬盘和分区的详细信息2 f6 C! b$ b$ V+ Z7 u
复制代码& b: \! n& r( Y  P
复制代码
" H1 H- k1 d0 q6 W. I[root@Master ~]# fdisk -l           
" b0 V' `2 D4 ~+ V  M. _& G/ fDisk /dev/sda: 300.0 GB, 299966445568 bytes0 F0 G( R- \5 ]# U& w" P: ~
255 heads, 63 sectors/track, 36468 cylinders$ a  }: i. a5 i/ Z3 f6 c" }
Units = cylinders of 16065 * 512 = 8225280 bytes
! V% f- m/ N  [6 C% gSector size (logical/physical): 512 bytes / 512 bytes& ?6 i9 ?: _% L7 }
I/O size (minimum/optimal): 262144 bytes / 262144 bytes
1 x( |( H7 B) e& ?3 R! r" ~$ F8 QDisk identifier: 0x000384d9
6 h+ L: f$ s7 p$ G9 q& W' I9 Q: s   Device Boot      Start         End      Blocks   Id  System# R* _& C. T: n, `5 h) b
/dev/sda1   *           1           7       51200   83  Linux3 M! G' m- e. C$ B4 ^7 [* ^6 B& n
Partition 1 does not end on cylinder boundary.
2 h7 N; e% n. n; L8 h" N4 w/dev/sda2               7       13061   104857600   83  Linux) ~8 [9 I( Q) o0 V6 {' X
/dev/sda3           13061       19588    52428800   83  Linux
: h+ ~4 K& i4 u: z& X  |- h/dev/sda4           19588       36469   135597056    5  Extended
2 X$ y2 D. B" M( ?2 ?/dev/sda5           19588       21677    16777216   82  Linux swap / Solaris& _, @9 \7 l# B* [% N
/dev/sda6           21677       23415    13962240   83  Linux
% }0 i' r8 Q/ c. y9 ~/dev/sda7           23416       36469   104854528   83  Linux' K  E+ W0 H3 w  T& y' g% ~$ K
WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.
2 S( ]  E: M0 ]0 ]- K  W
' t! o5 O' P- y* LDisk /dev/sdb: 92017.3 GB, 92017310654464 bytes! t* s2 L  M" _
255 heads, 63 sectors/track, 11187134 cylinders6 Y8 G4 V# g: ~& d, L  o) U
Units = cylinders of 16065 * 512 = 8225280 bytes/ x3 q8 ~; E! y
Sector size (logical/physical): 512 bytes / 512 bytes  b+ ~/ L% `2 q  c( k; S
I/O size (minimum/optimal): 262144 bytes / 6029312 bytes/ v3 |7 @# R; Z2 z
Disk identifier: 0x00000000
( g- b) a6 x* W2 u+ `/ @* x   Device Boot      Start         End      Blocks   Id  System
5 z, H+ ]. q: V/dev/sdb1               1      267350  2147483647+  ee  GPT3 \* _' j  z2 z) ?* l# p
Partition 1 does not start on physical sector boundary.
; C; D  R9 N5 g6 _! ^* q复制代码
$ e4 R: J- V+ s; z& h/ g复制代码1 s. z, U. K7 ^
(4)查看挂接的分区状态2 K9 v# N8 o9 m1 U5 d) r
复制代码
# b% f  k+ w( _# X" }复制代码8 K& Y9 W0 n1 _5 ]) u8 b
[root@Master ~]# mount | column -t# K( n) [" H6 d8 h% o
/dev/sda2  on  /                         type  ext4         (rw)7 Q1 M! E+ o! k. |
proc       on  /proc                     type  proc         (rw)
9 J7 ?$ o/ E( s$ Y8 h) psysfs      on  /sys                      type  sysfs        (rw)
: D: {/ u% x, V) Z* qdevpts     on  /dev/pts                  type  devpts       (rw,gid=5,mode=620)9 H, g' |7 }! N# r
tmpfs      on  /dev/shm                  type  tmpfs        (rw)6 d( B+ Z7 ?/ K! _. R
/dev/sda1  on  /boot                     type  ext4         (rw)0 @. G9 p+ f) i  m  x
/dev/sda3  on  /home                     type  ext4         (rw)2 c" L. u0 G6 o: m" D& N3 G6 n
/dev/sda6  on  /tmp                      type  ext4         (rw)
. _0 n+ `+ {5 W6 M* @0 w* H: f9 s/dev/sda7  on  /usr                      type  ext4         (rw)
/ Z: j0 _7 U8 Q$ t/dev/sdb1  on  /PureDisk                 type  ext4         (rw)
, u+ }( e' Y* m' A3 pnone       on  /proc/sys/fs/binfmt_misc  type  binfmt_misc  (rw
' k. G; }5 \8 T1 R" e* S复制代码+ }% N6 A. V  N6 R% E
复制代码
- P7 F* S& F2 _6 v. m. A" b (5)查看挂接的分区状态
% M( H& ]6 O- @% p& {[root@Master ~]# swapon -s   , p3 k4 _" V9 a( D! i. |" \
Filename                                Type            Size    Used    Priority
- \9 o! ^, A: O7 v: N/dev/sda5                               partition       16777212        39676   -19 a2 D3 D# a) m; W' S9 [0 k! _
(6)查看硬盘使用情况
$ l0 \2 T! a% Y复制代码
0 S! n& ?, Z/ o( V& [复制代码
8 D2 Q' J8 l6 |6 g$ z[root@Master ~]# df -hT
! H2 a0 P+ j4 e9 ?, j" D* BFilesystem     Type   Size  Used Avail Use% Mounted on
8 x. b4 Q+ Y0 K% g+ l  k8 n/dev/sda2      ext4    99G  561M   93G   1% /
, Q! }& ^* k0 c  B0 utmpfs          tmpfs   63G   76K   63G   1% /dev/shm7 L% F) v. Q1 D2 z5 V! W; |  y
/dev/sda1      ext4    45M   38M  4.9M  89% /boot: \* H' x6 z# L# R
/dev/sda3      ext4    50G   52M   47G   1% /home
; f; I$ |4 m1 U% F! T" B( m( N/dev/sda6      ext4    13G   34M   13G   1% /tmp
" S1 T7 u- J4 K! s. d# p/dev/sda7      ext4    99G   21G   73G  23% /usr
4 {5 N& ~9 F4 g/dev/sdb1      ext4    84T   41T   40T  51% /PureDisk
; h  o# |0 T! ^& A! `" q复制代码
5 H+ u/ O9 i/ W8 E  {' `; G8 c/ C& i复制代码
9 i4 X! `1 S$ A- b: p6 H8 z8 X (7) 硬盘检测命令smartctl
" o8 ]% l9 E0 A8 ~+ Y$ n% V复制代码% }7 b2 Y# q* w
复制代码# u0 P5 G8 p; s& e, s# ~
[root@Master ~]# smartctl -a /dev/sda* p9 X& b, c- y
smartctl 5.43 2012-06-30 r3573 [x86_64-linux-2.6.32-642.el6.x86_64] (local build)
, K) v( }& k3 z# z7 UCopyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net. D3 L2 y7 Z! P8 G0 `7 Y) N
Vendor:               HP      " g- B4 \6 q3 Z7 l0 v" @
Product:              LOGICAL VOLUME  : N- ^7 F0 r/ s6 L
Revision:             3.56
" t8 a5 L& t- L' s% o; ]  `% wUser Capacity:        299,966,445,568 bytes [299 GB]
+ j" U) Q5 L( w6 X8 {Logical block size:   512 bytes& w6 l: n8 |2 j$ G% ~7 r5 c
Logical Unit id:      0x600508b1001cc8a1b9ec4dacc5ab35dc
6 s; z5 o% f/ `- i5 j7 S4 H) XSerial number:        PDNNK0BRH9U0AG  ; f# m% h  Y% P
Device type:          disk
  w% e5 _/ p  p! y* o& q$ ^Local Time is:        Mon Feb  5 13:13:33 2018 CST
- `* `$ p) i+ r) SDevice supports SMART and is Enabled/ E  h  ~0 B  U9 N6 T% |: Z: Y
Temperature Warning Disabled or Not Supported
3 t! T4 O/ S/ ~1 X5 qSMART Health Status: OK
' @. ^! c  A! u' H1 Y  ^" ?" dError Counter logging not supported
5 p+ h) K# Y6 y- x- g" x7 jDevice does not support Self Test logging5 F# s6 \5 S' j" X  m. ^
复制代码( g0 I3 D) c# B* L8 `1 t& O0 g0 G
复制代码
8 s. a3 e8 C" v, I8 [
$ i7 P5 ~& N1 D0 Y4 \! n, C: p1 d9 L五、查看网卡信息6 t% Z8 u; C+ z& I( B5 _0 H9 \
(1)查看网卡硬件信息! z& Y5 b% N+ i8 @8 W# a
[root@Master ~]#  lspci | grep -i 'eth'
8 w4 B' R0 b8 I. R) _$ _  v6 o
4 J' z) Z2 \) k8 u" K   (2)查看系统的所有网络接口
: w: ~$ _5 l# t2 R; g7 Y( s[root@Master ~]# ifconfig -a
' x( E. V. p) P) F. `[root@Master ~]# ip link show
8 a% m1 ]# m7 ~    (3)查看某个网络接口的详细信息,例如eth0的详细参数和指标; I4 k9 E& \  H* d2 Z, i* ~
复制代码! `3 S2 g  W3 Y1 D  |/ a
复制代码7 A  p0 C, ~9 f5 P
[root@Master ~]# ethtool eth0
& m/ M# D- P1 s6 [; Z9 o. @2 JSettings for eth0:
: e) q- ^4 A% j  k" N& W* r8 A        Supported ports: [ FIBRE ], _" F4 Z# L3 J7 K
        Supported link modes:   10000baseT/Full 4 K* I  y! V9 j9 D1 b
        Supported pause frame use: No* g4 u7 O8 A! Q4 a: C5 b! u% g2 e" |+ L
        Supports auto-negotiation: No
% p4 [% y) O' R' m% U2 }        Advertised link modes:  10000baseT/Full
, f6 g+ i2 C5 d# p/ T1 g# `+ J& r        Advertised pause frame use: No% Q! q; S, T  Q2 |. |4 I
        Advertised auto-negotiation: No7 t+ _' o! ^6 k
        Speed: 10000Mb/s
6 {/ T& W3 T$ |/ w        Duplex: Full
+ N4 e. V+ {5 }( M. v% |) O& l        Port: FIBRE+ t1 {1 K# G$ m' z6 I$ Q4 V/ }; i* n
        PHYAD: 02 N! ?$ A; ?6 F; \
        Transceiver: external8 n" f, q9 _- m; k4 h# m
        Auto-negotiation: off" u$ w3 v7 R+ I) V3 h
        Supports Wake-on: d) V! i% s& a- z3 L( b0 ^
        Wake-on: d5 ^& N7 d0 B/ a1 k; h( [
        Current message level: 0x00000007 (7)+ N4 z  J) z; q5 @# g) X5 y' l
                               drv probe link
( b1 x1 H$ S8 o* m- t1 O+ N        Link detected: yes2 C6 H8 p7 h) E& D3 y% N' i) t
复制代码. l8 L5 X0 g: W4 u6 F* a
复制代码+ v) X; g+ K+ M9 h2 B7 Y4 d" q
    (4)查看所有网卡的链路状态3 i. ^7 b' R8 Q7 U0 V1 F
复制代码) W3 V# f7 J1 C% x) `: s
复制代码
/ w6 l, L( H2 z6 o8 G& w; P[root@Master ~]# for i in `seq 0 9`;do ethtool eth${i} | egrep 'eth|Link';done5 N  S' _, r0 ?8 g* C5 B1 K
Settings for eth0:
, m  ], f  B0 q; T. p        Link detected: yes   
( |9 j% H  w2 r& r0 M) G* MSettings for eth1:; _% n4 p+ ?- O
        Link detected: yes
- |! J  L- T8 Z0 K9 S7 F0 CSettings for eth2:  b3 U) p% T- A: J2 Y# t! [$ e& \
        Link detected: no2 |& n; a6 r8 q% y) Q
Settings for eth3:% D$ }. p% f7 t$ I- Y
        Link detected: no" a) L) r4 y% p0 h+ [7 h6 m
Settings for eth4:
- F! H4 l' u5 `" f        Link detected: no
5 K1 g' H# J+ FSettings for eth5:
( s( M8 ^" J* m9 i        Link detected: no* L* w% n4 ]7 i7 {: ^! u8 l+ H
Settings for eth6:3 [( f# g/ t9 p  I( \! f- P
        Link detected: no
: a& y0 S7 ~+ o  ?  ZSettings for eth7:9 F, w5 p2 V* f" Q. }& L
        Link detected: no% d/ Z% V3 ^8 R( Q& Q  P2 v1 b
Settings for eth8:
! Y1 b6 z3 C$ }0 M& O( s        Link detected: no
6 k' H: h$ U9 q! y3 ^Settings for eth9:
! ]+ G* i/ W8 G6 m        Link detected: no, E1 y, y" E7 `
复制代码
6 w- ^9 ?& [9 N% Y. D. H# b$ A复制代码
/ k5 j# c4 p( o# e% @& @ ; I* Y- V$ E& c1 i) c2 C' m
六、列出所有PCI设备信息
) V9 w3 x* w# c复制代码' j; \' w1 s  j! {
复制代码7 l1 g2 u0 v* H5 x: V) G
[root@Master ~]# lspci -tv | more9 \2 Q# P& N: k+ ~# _, d% Q
-+-[0000:ff]-+-08.0  Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 QPI Link 08 u% h1 G7 n1 \; J
|           +-08.3  Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 QPI Link 0
& G( o: C- p4 O& ?: E/ I; ~ |           +-09.0  Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 QPI Link 1
8 ~* y' F& c& t |           +-09.3  Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 QPI Link 1
& _. K5 d6 v% f8 ^& V |           +-0b.0  Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 R3 QPI Link 0 & 1 Monitoring- ~+ k8 Z+ v+ d5 f! m, ~, A
|           +-0b.1  Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 R3 QPI Link 0 & 1 Monitoring5 B' `- k* K) }2 L* ~
|           +-0b.2  Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 R3 QPI Link 0 & 1 Monitoring+ @7 g, u  w& x$ w% }+ ]% x
|           +-0c.0  Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 Unicast Registers# X' A1 b' ~$ ^/ m* J
|           +-0c.1  Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 Unicast Registers
4 r+ n  y5 W: p$ f |           +-0c.2  Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 Unicast Registers; k9 d" v8 o) h
|           +-0c.3  Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 Unicast Registers
( T: ]3 b( t' _% d |           +-0c.4  Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 Unicast Registers
- {, h  `$ c4 H9 Q( _ |           +-0c.5  Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 Unicast Registers
- n. w5 c9 M$ U9 Q8 j |           +-0c.6  Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 Unicast Registers: i* H' j$ _" d1 L! P; @  L) ^0 h; Z
|           +-0c.7  Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 Unicast Registers: y3 b0 @5 q) u. J
|           +-0d.0  Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 Unicast Registers
7 O: i& K, V! b |           +-0d.1  Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 Unicast Registers
( s) v5 e0 \7 P* `' z |           +-0f.0  Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 Buffered Ring Agent
: f3 |& j' `/ j7 Y# U3 G3 D! @ |           +-0f.1  Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 Buffered Ring Agent# Y* J3 O5 G* \4 }" G
|           +-0f.2  Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 Buffered Ring Agent: f6 T: f2 p& c( _, ]  W+ }- O
|           +-0f.3  Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 Buffered Ring Agent
7 \( t9 P2 j1 \- j7 x9 s" B, K复制代码
" e8 H7 y  s  R( d1 F: z
0 B9 a& Q6 j  p/ e" s复制代码( r# C- \. f9 K4 j7 J7 w
" j& A6 [5 s' E0 d: J
end
! @( V& Y$ r* R) l9 ]# z8 bCentOS 8 U盘安装及Installation Source报错和ssh报错的解决方法0 n$ ~0 O- u3 P3 T( c
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-12 01:53 , Processed in 0.019285 second(s), 21 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表