1、smartctl
Smartctl(S.M.A.R.T 自监控,分析和报告技术)是类Unix系统下实施SMART任务命令行套件或工具,它用于打印SMART自检和错误日志,启用并禁用SMRAT自动检测,以及初始化设备自检。
2、安装
[root@localhost dev]# yum -y install smartmontools
已加载插件:fastestmirror
3、示例
[root@localhost dev]# smartctl -i /dev/sda
smartctl 7.0 2018-12-30 r4883 [x86_64-linux-3.10.0-693.el7.x86_64] (local build)
Copyright (C) 2002-18, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Vendor: VMware,
Product: VMware Virtual S
Revision: 1.0
User Capacity: 21,474,836,480 bytes [21.4 GB]
Logical block size: 512 bytes
Device type: disk
Local Time is: Wed Apr 8 23:14:06 2020 CST
SMART support is: Unavailable - device lacks SMART capability.
[root@localhost dev]#