Hi,
I recommend to read the docs[1] carefully. The preferred method is to
add a mon within the new ip range and then remove the old ones one by
one to maintain quorum. The hosts must be able to route between those
networks. If you don't have an additional mon available or there can't
be any routing between those networks you would need to follow the
advanced method [2].
Basically, you would edit the monmap to reflect the new ip range and
then inject it into the stopped mon daemons. That means your cluster
has to be stopped, of course.
Regards,
Eugen
[1]
https://docs.ceph.com/en/reef/rados/operations/add-or-rm-mons/#changing-a-monitor-s-ip-address
[2]
https://docs.ceph.com/en/reef/rados/operations/add-or-rm-mons/#changing-a-monitor-s-ip-address-advanced-method
Zitat von farhad kh <farhad.khedriyan@xxxxxxxxx>:
I have implemented a ceph cluster with cephadm which has three monitors and
three OSDs
each node have one interface 192.168.0.0/24 network.
I want to change the address of the machines to the range 10.4.4.0/24.
Is there a solution for this change without data loss and failure?
i change the pubic_network in mon and change the ip node but its not worked
.
how can i sovle this problem?
```
ceph orch host ls
HOST ADDR LABELS STATUS
ceph-01 192.168.0.130 _admin,rgw
ceph-02 192.168.0.131 _admin,rgw
ceph-03 192.168.0.132 _admin,rgw
3 hosts in cluster
````
[root@ceph-01 ~]# ceph config get mon public_network
192.168.0.0/24
````
[root@ceph-01 ~]# ceph orch ls
NAME PORTS RUNNING REFRESHED AGE
PLACEMENT
alertmanager ?:9093,9094 1/1 112s ago 9M
count:1
ceph-exporter 3/3 114s ago 8M *
crash 3/3 114s ago 9M *
grafana ?:3000 1/1 112s ago 8M
count:1
mgr 2/2 113s ago 9M
count:2
mon 3/3 114s ago 8M
count:3
node-exporter ?:9100 3/3 114s ago 9M *
osd.dashboard-admin-1685787597651 6 114s ago 8M *
prometheus ?:9095 1/1 112s ago 3M
count:1
````
_______________________________________________
ceph-users mailing list -- ceph-users@xxxxxxx
To unsubscribe send an email to ceph-users-leave@xxxxxxx
_______________________________________________
ceph-users mailing list -- ceph-users@xxxxxxx
To unsubscribe send an email to ceph-users-leave@xxxxxxx