I have 4 node ceph architecture as shown in the figure. Ceph Architecture Ceph.conf contains
[global]
fsid = 23923667-d7af-4138-a6e5-2e38fb999e2d
max open files = 131072
mon_initial_members = host1, host2
mon host = 10.xx.xx.1,10.xx.xx.2
public_network = 10.xx.xx.xx/27
cluster_network = 10.xx.xx.xx/27
The first monitor has been attached using the following command
ceph-deploy mon create-initial
Second monitor has been added to the cluster by the following command
ceph-deploy mon add 10.xx.xx.2
We are testing high availability cases with this setup.
Case 1: I brought down the node 10.xx.xx.2 and tested my connection. Ceph was up and responding with the monitor 10.xx.xx.1
Case 2: I brought down the node 10.xx.xx.1. But I am unable to access the ceph cluster via 10.xx.xx.2.
Is there any other way to create the setup so that the second node becomes master when the first node is down ?
[edit1]
The scenario is
intial monitor node = mon.a
additional monitor node =mon.b,mon.c
When I bring down mon.b and mon.c ceph is working fine.
But when I bring down mon.a entire ceph cluster gets disturbed and ceph is not responding.