Proxmox cluster not ready 问题
使用软路由工控机搭建,PVE物理机集群时. 单个软路由节点重启后,无法连接登录上WEB操作界面. 经过研究发现,是PVE集群一些策略导致.
PVE节点增加自启动命令.
参考:https://www.cnblogs.com/opsprobe/p/13418702.html [标题] Debian 9/Ubuntu 18添加rc.local开机自启的方法
自启动脚本:
!/bin/sh
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
#HYJ 添加开机启动,执行脚本 2023-10-22
#测试
date >> /home/selfStart.txt
sleep 20s
pvecm expected 1
exit 0
执行以下命令
pvecm expected 1
注意脚本格式 “!/bin/sh”
● rc-local.service - /etc/rc.local
Loaded: loaded (/etc/systemd/system/rc-local.service; enabled; vendor preset: enabled)
Drop-In: /usr/lib/systemd/system/rc-local.service.d
└─debian.conf
Active: inactive (dead) since Sun 2023-10-22 19:48:47 CST; 2min 50s ago
CPU: 2ms
Oct 22 19:43:58 Huanpve systemd[1]: Starting /etc/rc.local...
Oct 22 19:43:58 Huanpve systemd[1]: Started /etc/rc.local.
Oct 22 19:48:47 Huanpve systemd[1]: rc-local.service: Succeeded.
Oct 22 19:48:47 Huanpve systemd[1]: Stopped /etc/rc.local.
Oct 22 19:51:17 Huanpve systemd[1]: /etc/systemd/system/rc-local.service:11: Support for option SysVStartPriority= has been removed and it is ignored
可以延迟个20S左右,时间不是固定的
评论