计算机技术
esxi两种方法查看硬盘健康状况

系统自带命令esxcli
列出硬盘
esxcli storage core device list
查看硬盘smart信息
esxcli storage core device smart get -d <disk>

安装社区支持smartctl
- 首先下载软件
http://pfoo.unscdf.org/esxi/smartctl-6.6-4433.x86_64.vib - 使用winscp上传到虚拟机
- 设置允许社区软件
- 安装软件
- 使用smartctl命令
/opt/smartmontools/smartctl -d sat -a /vmfs/devices/disks/<disk>
其中硬盘名称可以用上面的方法得到
也可以全部使用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
https://blog.csdn.net/weixin_43894988/article/details/105256473