yum install smartmontools 安装工具 smartctl -x /dev/sda 查看硬盘信息,查看Write cache状态。 smartctl -s wcache,on /dev/sda 打开写缓存