计算机技术

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

系统自带命令esxcli

列出硬盘

esxcli storage core device list

查看硬盘smart信息

esxcli storage core device smart get -d <disk> 
smart系统自带命令方式

安装社区支持smartctl

  1. 首先下载软件
    http://pfoo.unscdf.org/esxi/smartctl-6.6-4433.x86_64.vib
  2. 使用winscp上传到虚拟机
  3. 设置允许社区软件
    在这里插入图片描述
  4. 安装软件
    在这里插入图片描述
  5. 使用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

Related Articles

发表回复

Check Also
Close
Back to top button