环境 操作系统:Ubuntu Kylin 优麒麟 21.10、Debian 11 Bullseye 适用架构:ARM64(鲲鹏、飞腾)
简介固态硬盘都有使用时长和写入量的限制,因此,有必要进行寿命的检测。 SmartControlSmartCtl(S.M.A.R.T 自监控,分析和报告技术)是类 Unix 系统下实施 SMART 任务命令行套件或工具,它用于打印 SMART 自检和错误日志,启用并禁用SMRAT自动检测,以及初始化设备自检。 SmartCtl 对于 Linux 物理服务器十分有用,在这些服务器上,可以对智能磁盘进行错误检查,并将与硬件 RAID 相关的磁盘信息摘录下来。 安装 sudo apt install gsmartcontrol 如果不使用图形界面,可以使用如下命令。 sudo apt install smartmontools 执行查看命令。/dev/nvme0n1 是硬盘的路径。 sudo smartctl -a /dev/nvme0n1 输出信息。加粗标红的就是硬盘写入量和读出量。 smartctl 7.1 2019-12-30 r5022 [aarch64-linux-5.4.18-35-generic] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org === START OF INFORMATION SECTION ===
Model Number: ADATA SXXXXXX
Serial Number: XXXXXXXX
Firmware Version: XXXXXXXXX
PCI Vendor/Subsystem ID: 0x126f
IEEE OUI Identifier: 0x000000
Controller ID: 1
Number of Namespaces: 1
Namespace 1 Size/Capacity: 2,048,408,248,320 [2.04 TB]
Namespace 1 Utilization: 152,219,648 [152 MB]
Namespace 1 Formatted LBA Size: 512
Local Time is: Sun Sep 26 02:30:18 2021 CST
Firmware Updates (0x14): 2 Slots, no Reset required
Optional Admin Commands (0x0017): Security Format Frmw_DL Self_Test
Optional NVM Commands (0x005f): Comp Wr_Unc DS_Mngmt Wr_Zero Sav/Sel_Feat Timestmp
Maximum Data Transfer Size: 64 Pages
Warning Comp. Temp. Threshold: 75 Celsius
Critical Comp. Temp. Threshold: 80 Celsius Supported Power States
St Op Max Active Idle RL RT WL WT Ent_Lat Ex_Lat
0 + 9.00W - - 0 0 0 0 0 0
1 + 4.60W - - 1 1 1 1 0 0
2 + 3.80W - - 2 2 2 2 0 0
3 - 0.0450W - - 3 3 3 3 2000 2000
4 - 0.0040W - - 4 4 4 4 15000 15000 Supported LBA Sizes (NSID 0x1)
Id Fmt Data Metadt Rel_Perf
0 + 512 0 0 === START OF SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED SMART/Health Information (NVMe Log 0x02)
Critical Warning: 0x00
Temperature: 39 Celsius
Available Spare: 100%
Available Spare Threshold: 10%
Percentage Used: 0%
Data Units Read: 28,982,809 [14.8 TB]
Data Units Written: 33,195,887 [16.9 TB]
Host Read Commands: 452,851,029
Host Write Commands: 515,596,751
Controller Busy Time: 874
Power Cycles: 2
Power On Hours: 14
Unsafe Shutdowns: 1
Media and Data Integrity Errors: 0
Error Information Log Entries: 0
Warning Comp. Temperature Time: 0
Critical Comp. Temperature Time: 0 Error Information (NVMe Log 0x01, max 256 entries)
No Errors Logged
|