安裝smartmontools
1
|
sudo apt-get install smartmontools
|
使用下面的命令查看
/dev/sda 組成raid後的設備名稱
-d cciss,0 raid中的0號磁盤,同理-d cciss,1表示raid中的1號磁盤
1
|
sudo smartctl -a -d cciss,0 /dev/sda
|
實際命令輸出結果如下:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.11.0-40-generic] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Vendor: SEAGATE
Product: XS800LE70004
Revision: 0003
Compliance: SPC-5
LU is resource provisioned, LBPRZ=1
Rotation Rate: Solid State Device
Form Factor: 2.5 inches
Logical Unit id: 0x5000c5003e83f24b
Serial number: HLJ03MGG0000822150Z3
Device type: disk
Transport protocol: SAS (SPL-3)
Local Time is: Thu Nov 25 17:47:46 2021 CST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
Temperature Warning: Enabled
=== START OF READ SMART DATA SECTION ===
SMART Health Status: OK
Percentage used endurance indicator: 13%
Current Drive Temperature: 37 C
Drive Trip Temperature: 70 C
Manufactured in week 30 of year 2019
Specified cycle count over device lifetime: 10000
Accumulated start-stop cycles: 340
Elements in grown defect list: 0
Vendor (Seagate Cache) information
Blocks sent to initiator = 4018240293
Blocks received from initiator = 2045277761
Blocks read from cache and sent to initiator = 0
Number of read and write commands whose size <= segment size = 0
Number of read and write commands whose size > segment size = 0
Vendor (Seagate/Hitachi) factory information
number of hours powered up = 2459.70
number of minutes until next internal SMART test = 59
Error counter log:
Errors Corrected by Total Correction Gigabytes Total
ECC rereads/ errors algorithm processed uncorrected
fast | delayed rewrites corrected invocations [10^9 bytes] errors
read: 0 0 0 0 0 881666.641 0
write: 0 0 0 0 0 915841.827 0
Non-medium error count: 0
No Self-tests have been logged
|
Percentage used endurance indicator:
SSD磁盤的健康度信息, 0表示全新,100表示健康度為0, 但可能仍能正常使用,只是表示預計壽命用完了
Gigabytes processed (read,write)
數據讀寫數,單位是GB