...
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' |
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 |
---|
Related articles
Filter by label (Content by label) | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...