esxi两种方法查看硬盘健康状况

系统自带命令esxcli

列出硬盘

esxcli storage core device list

查看硬盘smart信息

esxcli storage core device smart get -d <disk> 

esxi两种方法查看硬盘健康状况_第1张图片

安装社区支持smartctl

  1. 首先下载软件
    http://pfoo.unscdf.org/esxi/smartctl-6.6-4433.x86_64.vib

  2. 使用winscp上传到虚拟机

  3. 设置允许社区软件
    esxi两种方法查看硬盘健康状况_第2张图片

  4. 安装软件
    esxi两种方法查看硬盘健康状况_第3张图片

  5. 使用smartctl命令

/opt/smartmontools/smartctl -d sat -a /vmfs/devices/disks/<disk>

其中硬盘名称可以用上面的方法得到
esxi两种方法查看硬盘健康状况_第4张图片
也可以全部使用ssh命令

cd /vmfs/volumes/datastore1
wget http://pfoo.unscdf.org/esxi/smartctl-6.6-4433.x86_64.vib
esxcli software acceptance set --level=CommunitySupported
esxcli software vib install -v /vmfs/volumes/datastore1/smartctl-6.6-4433.x86_64.vib

部分参考https://wiki.csnu.org/index.php/ESXi_smart_/_smartctl

你可能感兴趣的:(笔记,linux)