Adding to replica set

hi everyone, I have a question.
why my replica set name is m103-rpl but in the host file is m103?
It’s not a problem, but when I add replicas to the set I have to use m103 and not m103-repl
It’s correct?

Best regards
Marco

HI Marco,

Few things to note here:

  1. Re-check your replica set name and ensure that you use the ones mentioned in the labs, otherwise you might get error while validating the labs.

  2. Do you mean in configuration file?

Please share the screenshot and we can quick check.

  1. The host name is different than the repl-set name. When you add the node to the replica set, you use hostname with the port number. You can verify the same in /etc/hosts file.

Note: Replica set name and host name are two separate things.

Please let me know, if you have any questions.

Thanks,
Sonali