数据采集方法

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

  1. 安装smartmontools软件包。

    1
    yum install smartmontools
    

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

    1
    smartctl -a /dev/sda