mongodb - Promote secondary to primary from secondary node -


my test system (due lack of resources) has dual mongodb replicaset. there no arbiter.

during system changes 1 of servers got put out of action , not coming back. server happened host primary mongo node. left other member of set secondary.

i know should have had @ least 3 nodes cluster (our prod setup does).

is there way can make primary offline step down? haven't been able change of rs.conf() settings because working node secondary. starting arbiter doesn't seem work because cannot add replset primary down.

has encountered before , managed resolve it?

to recap:

server (primary) - offline

server b (secondary) - online

a + b = replset

any appreciated.

the mongodb website has documentation (in emergency only) when need reconfigure replica set when members down. sounds situation in.

basically, if you're on version >= 2.0, , it's emergency, can add force: true replica set configuration command.


Comments

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -