数据采集方法

使用smartmontools软件包中的smartctl工具采集SMART数据。

  1. 安装smartmontools软件包。

    yum install smartmontools

  2. 以采集/dev/sda这块盘的SMART数据为例。

    smartctl -a /dev/sda