Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

siomongo1 was down for a few days, and it was too out-of-sync to rejoin the cluster. To fix this, remove all files from the database directory, /data/db and restart the mongod service. This will put the node into STARTUP & STARTUP2 status. Eventually, the node will rebuild, and be promoted to SECONDARY status

Warning

This should only be done on a single node, and the replication status should be checked first

Notes from bootstrapping the stage cluster

Check service status via ansible

Code Block
ansible mongodb_stage -m shell -a 'systemctl status rh-mongodb36-mongod'


Image Added


Check status of cluster replication

Code Block
 scl enable rh-mongodb36 "mongo -u root -p'**REDACTED**' --authenticationDatabase admin --eval 'rs.status()'"


Code Block
[root@clortho ~]# ansible mongodb_stage -m shell -a  "scl enable rh-mongodb36 $'mongo -u root -p \'REDACTED1P\' --authenticationDatabase admin --eval \'rs.status()\' '" 


Info

Filter by label (Content by label)
showLabelsfalse
max5
spacescom.atlassian.confluence.content.render.xhtml.model.resource.identifiers.SpaceResourceIdentifier@a51
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel in ( "peopledb" , "high-availability" , "ha" , "mongo" , "nosql" , "database" , "cluster" , "peopledb3" , "replication" , "mongodb" ) and type = "page" and space = "SD"
labelspeopledb peopledb3 mongo mongodb nosql database cluster replication ha high-availability

...