Ubuntu 20.04下 如何查看在Raid下的磁盘的smart信息,包含SSD读写量,耐久度信息

安装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

记录并分享
Built with Hugo
主题 StackJimmy 设计