UIS初始化分布式存储集群卡在99%通常由以下原因导致:
排查步骤:
1. 查看存储服务状态
登录UIS管理节点,检查存储相关服务
ps -ef | grep ceph
systemctl status ceph-mon@*
systemctl status ceph-osd@*
2. 检查集群网络连通性
确认所有节点间存储网络互通
ping <对端存储IP>
检查存储网卡状态
ip a | grep <存储网段>
3. 查看ceph集群状态
ceph -s
ceph health detail
若显示HEALTH_WARN或ERROR,查看具体告警
ceph health detail
4. 检查OSD状态
ceph osd tree
ceph osd df
若有down的OSD,尝试重启
systemctl restart ceph-osd@
5. 查看日志定位卡住原因
查看初始化日志
tail -f /var/log/ceph/ceph.log
查看UIS部署日志
tail -f /var/log/uis/uis-deploy.log
常见原因及处理:
网络问题:存储网段不通或丢包,检查交换机配置和网线
磁盘问题:某块磁盘异常导致OSD无法启动,检查dmesg | grep error
时钟同步问题:节点间时钟偏差过大,执行ntpdate 同步
mon选举异常:重启mon服务systemctl restart ceph-mon@<节点名>
建议: 若长时间卡住(超过30分钟),可重启初始化流程,但需先清理残留配置:
清理残留ceph配置(谨慎操作)
ceph-deploy purge <节点IP>
若问题持续,建议收集ceph -s输出和/var/log/ceph/日志提交新华三工单分析。
要怎么看