On 10/4/21 15:58, Konstantin Shalygin wrote:
On 4 Oct 2021, at 16:38, Stefan Kooman <stefan@xxxxxx
<mailto:stefan@xxxxxx>> wrote:
What procedure are you following to add the mon?
# ceph mon dump
epoch 10
fsid 677f4be1-cd98-496d-8b50-1f99df0df670
last_changed 2021-09-11 10:04:23.890922
created 2018-05-18 20:43:43.260897
min_mon_release 14 (nautilus)
0: [v2:10.40.0.81:3300/0,v1:10.40.0.81:6789/0] mon.ceph-01
1: [v2:10.40.0.83:3300/0,v1:10.40.0.83:6789/0] mon.ceph-03
2: [v2:10.40.0.86:3300/0,v1:10.40.0.86:6789/0] mon.ceph-06
dumped monmap epoch 10
sudo -u ceph ceph mon getmap -o /tmp/monmap.map
got monmap epoch 10
sudo -u ceph ceph-mon -i mon2 --mkfs --monmap /tmp/monmap.map
chown -R ceph:ceph /var/lib/ceph/mon/ceph-mon2
systemctl start ceph-mon@mon2
I'm missing the part where keyring is downloaded and used:
ceph auth get mon. -o /tmp/keyring
ceph mon getmap -o /tmp/monmap
chown -R ceph:ceph /var/lib/ceph/mon/ceph-mon2
ceph-mon -i mon2 --mkfs --monmap /tmp/monmap --keyring /tmp/keyring
--setuser ceph --setgroup ceph
Gr. Stefan
P.s. I have noticed, that sometimes you first need to reboot the node
before you are able to start the monitor with systemd.
_______________________________________________
ceph-users mailing list -- ceph-users@xxxxxxx
To unsubscribe send an email to ceph-users-leave@xxxxxxx