I have removed the monitor via web GUI, later created it again, but it doesn't start. Can't remove it or create again.
What to do?
I also found the same problem here, but no solution.
EDIT. I did created a monitor manually, but it don't want to add to the map.
Bash:
root@asr3:~# pveceph mon destroy asr3
no such monitor id 'asr3'
root@asr3:~# pveceph mon create --monid asr3
monitor address '192.168.121.3' already in use
root@asr3:~# pveceph status
cluster:
id: 8fc87072-5946-466f-a10a-6fa9bd6fa925
health: HEALTH_OK
services:
mon: 3 daemons, quorum asr1,asr2,asr4 (age 22m)
mgr: asr2(active, since 3d), standbys: asr1, asr4, asr3
mds: cephfs:1 {0=asr4=up:active} 3 up:standby
osd: 27 osds: 27 up (since 18m), 27 in (since 4h)
data:
pools: 4 pools, 193 pgs
objects: 359.84k objects, 1.4 TiB
usage: 4.0 TiB used, 40 TiB / 44 TiB avail
pgs: 193 active+clean
io:
client: 0 B/s rd, 100 KiB/s wr, 0 op/s rd, 7 op/s wr
root@asr3:/etc/pve# cat ceph.conf
[global]
auth_client_required = cephx
auth_cluster_required = cephx
auth_service_required = cephx
cluster_network = 192.168.121.0/24
fsid = some-id
mon_allow_pool_delete = true
mon_host = 192.168.121.1 192.168.121.2 192.168.121.4 192.168.121.3
osd_pool_default_min_size = 2
osd_pool_default_size = 3
public_network = 192.168.121.0/24
[client]
keyring = /etc/pve/priv/$cluster.$name.keyring
[mds]
keyring = /var/lib/ceph/mds/ceph-$id/keyring
[mds.asr1]
host = asr1
mds_standby_for_name = pve
[mds.asr2]
host = asr2
mds_standby_for_name = pve
[mds.asr3]
host = asr3
mds_standby_for_name = pve
[mds.asr4]
host = asr4
mds_standby_for_name = pve
[mon.asr1]
public_addr = 192.168.121.1
[mon.asr2]
public_addr = 192.168.121.2
[mon.asr3]
public_addr = 192.168.121.3
[mon.asr4]
public_addr = 192.168.121.4
I also found the same problem here, but no solution.
EDIT. I did created a monitor manually, but it don't want to add to the map.
Code:
root@asr3:~# ceph mon getmap -o tmp/map
got monmap epoch 5
root@asr3:~# ceph auth get mon. -o tmp/key
exported keyring for mon.
root@asr3:~# rm -rf /var/lib/ceph/mon/ceph-asr3/
root@asr3:~# systemctl stop ceph-mon.target
root@asr3:~# systemctl stop ceph-mon@asr3.service
root@asr3:~# ceph-mon -i asr3 --mkfs --monmap tmp/map --keyring tmp/key
root@asr3:~# ceph-mon -i asr3 --public-network 192.168.121.0/24
root@asr3:~# ss -tulpn | grep '3300\|6789'
tcp LISTEN 0 512 192.168.121.3:3300 0.0.0.0:* users:(("ceph-mon",pid=2491129,fd=27))
tcp LISTEN 0 512 192.168.121.3:6789 0.0.0.0:* users:(("ceph-mon",pid=2491129,fd=28))
root@asr3:~# ceph mon dump
dumped monmap epoch 5
epoch 5
fsid 8fc87072-5946-466f-a10a-6fa9bd6fa925
last_changed 2021-04-21T00:46:55.557939+0300
created 2021-04-06T16:06:42.329089+0300
min_mon_release 15 (octopus)
0: [v2:192.168.121.1:3300/0,v1:192.168.121.1:6789/0] mon.asr1
1: [v2:192.168.121.2:3300/0,v1:192.168.121.2:6789/0] mon.asr2
2: [v2:192.168.121.4:3300/0,v1:192.168.121.4:6789/0] mon.asr4
Last edited: