问题描述
Proxmox集群单节点丢失,能够ping通,但是ssh通过key连接时卡住,使用密码正常。
使用ssh -vvv查看发现在验证key的时候无任何反馈,表明故障节点存public key的地方出现了问题。
排查
Proxmox存储集群public key的地方在/etc/pve,尝试cd进入失败。
/etc/pve路径使用的是corosync进行同步,查看状态无异常,能看到5个pve节点:
root@PVE-EU-2 ~ # systemctl status corosync ● corosync.service - Corosync Cluster Engine Loaded: loaded (/lib/systemd/system/corosync.service; enabled; vendor preset: enabled Active: active (running) since Sun 2020-02-23 11:06:37 CET; 2min 55s ago Docs: man:corosync man:corosync.conf man:corosync_overview Main PID: 23596 (corosync) Tasks: 9 (limit: 4915) Memory: 128.8M CGroup: /system.slice/corosync.service └─23596 /usr/sbin/corosync -f
查看pve-cluster信息,发现cluster服务错误,集群丢失:
root@PVE-EU-2 ~ # systemctl status pve-cluster ● pve-cluster.service - The Proxmox VE cluster filesystem Loaded: loaded (/lib/systemd/system/pve-cluster.service; enabled; vendor preset: enab Active: failed (Result: exit-code) since Sun 2020-02-23 11:09:52 CET; 4s ago Process: 3799 ExecStart=/usr/bin/pmxcfs (code=exited, status=255/EXCEPTION) Feb 23 11:09:51 PVE-EU-2 systemd[1]: pve-cluster.service: Control process exited, code=e Feb 23 11:09:51 PVE-EU-2 systemd[1]: pve-cluster.service: Failed with result 'exit-code' Feb 23 11:09:51 PVE-EU-2 systemd[1]: Failed to start The Proxmox VE cluster filesystem. Feb 23 11:09:52 PVE-EU-2 systemd[1]: pve-cluster.service: Service RestartSec=100ms expir Feb 23 11:09:52 PVE-EU-2 systemd[1]: pve-cluster.service: Scheduled restart job, restart Feb 23 11:09:52 PVE-EU-2 systemd[1]: Stopped The Proxmox VE cluster filesystem. Feb 23 11:09:52 PVE-EU-2 systemd[1]: pve-cluster.service: Start request repeated too qui Feb 23 11:09:52 PVE-EU-2 systemd[1]: pve-cluster.service: Failed with result 'exit-code' Feb 23 11:09:52 PVE-EU-2 systemd[1]: Failed to start The Proxmox VE cluster filesystem.
发现问题:集群文件服务出错,也就是corosync还是有问题
解决方案
首先重启corosync,再重启pve-cluster,节点恢复
systemctl restart corosync systemctl restart pve-cluster