天天看點

linux--smartctl

1、smartctl

Smartctl(S.M.A.R.T 自監控,分析和報告技術)是類Unix系統下實施SMART任務指令行套件或工具,它用于列印SMART自檢和錯誤日志,啟用并禁用SMRAT自動檢測,以及初始化裝置自檢。

2、安裝

[[email protected] dev]# yum -y install smartmontools
已加載插件:fastestmirror
           

3、示例

[[email protected] 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.

[[email protected] dev]#