多网络的状况下,不进行多网络配置,会致使 osd 访问 错乱了(致使整个集群 访问混乱),本文描述 如何 处理 多个 网络的问题处理(public、cluster、network、addr)
网络
直接 写在 配置 文件中,重启服务架构
## 网段 public_network = 192.168.0.0/16 cluster_network = 192.169.0.0/16 ## 指定 IP 地址 public_addr =192.168.xxx.xxx cluster_addr = 192.169.xxx.xxx
[global] ... mon_host = 192.168.xxx.xxx public_network = 192.168.0.0/16 cluster_network = 192.169.0.0/16 [mon] ... ## 指定 IP 地址 public_addr =192.168.xxx.xxx cluster_addr = 192.169.xxx.xxx
[global] ... mon_host = 192.168.xxx.xxx public_network = 192.168.0.0/16 cluster_network = 192.169.0.0/16 [osd] ... ## 指定 IP 地址 public_addr =192.168.xxx.xxx cluster_addr = 192.169.xxx.xxx
# systemctl restart ceph-mon.target
# systemctl restart ceph-osd.target
# ceph mon dump # ceph daemon /var/run/ceph/{socket_file} config show
# ceph osd dump ## osd 守护进程 检查 (检查 特定的 osd) # ceph daemon /var/run/ceph/{osd.asok} config show