异常断电导致的硬件和系统损坏时最长出现的问题。
因此对于重要的设备,一般都需要配置ups进行异常断电的保护。
nut 项目地址:https://github.com/networkupstools/nut
- 硬件结构
DSM+软路由由APC的ups供电
ups的通讯口连接在DSM的USB口
- 开启DSM的UPS服务
- 开启PVE的ups支持
1)安装nut
apt-get install nut -y
2)配置
nano /etc/nut/nut.conf 修改: MODE=netclient
nano /etc/nut/upsmon.conf 修改: MONITOR ups@10.10.10.6 1 upsmon pass slave
启动服务
systemctl start nut-client && systemctl enable nut-client
ups状态检查
upsc ups@10.10.10.6
- centos配置使用nut
yum install nut -y
修改配置
nano /etc/ups/nut.conf
nano /etc/ups/upsmon.conf
启动系统服务
systemctl start nut-monitor systemctl enable nut-monitor #systemctl start nut-monitor nut-driver nut-server
检查ups
upsc ups@10.10.10.6
参考资料
- https://www.zimrilink.com/devops/284.html
- https://blog.catprosystems.com/2020/01/ups-centos-8/
- https://networkupstools.org/