Do we need DbPath for Arbiter node config file

Hello Support team,

in Chapter 2: Replication in Re-configuring a Running Replica Set, in lecture notes in config file for arbiter node we have provided “dbPath: /var/mongodb/db/node4”. Since arbiter is not data bearing node, why dbPath parameter is provided.

So even if we provide this, and we use rd.addArb("") command to add arbiter node, will it ignore the dbpath

Please explain.

Yes it needs dbpath
Though arbiter is a non data bearing node it still needs dbpath to store config related data
Command to add arbiter is rs.addArb() which takes host a param
Unless your node is up and running you cannot add it to replicaset

Please check mongo doc for more details

1 Like