ceph 集群 多网络 配置 (public、cluster、network、addr )

一、简介

    多网络的状况下,不进行多网络配置,会致使 osd 访问 错乱了(致使整个集群 访问混乱),本文描述 如何 处理 多个 网络的问题处理(public、cluster、network、addr)
    网络

二、多网络 配置

2.1 总体 架构

ceph 集群 多网络 配置 (public、cluster、network、addr )
    

2.2 配置 参数

    直接 写在 配置 文件中,重启服务架构

## 网段
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

    

2.3 修改配置文件

2.3.1 mon 修改

[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

    

2.3.2 osd修改

[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

    

四、重启服务

4.1 mon服务

# systemctl restart ceph-mon.target

    

4.2 osd服务

# systemctl restart ceph-osd.target

    

五、状态检测

5.1 mon 检测

# ceph mon dump

# ceph daemon /var/run/ceph/{socket_file} config show

    

5.2 osd 状态 检测

# ceph osd dump

## osd 守护进程 检查 (检查 特定的 osd)
# ceph daemon /var/run/ceph/{osd.asok} config show
相关文章
相关标签/搜索