I have set up MongoDB on three Red Hat 8 servers as a cluster and on-premises. Since the installation path was the default, I wanted to move the data files to a new disk I added on one of the secondary nodes.
To do this, I stopped the service, copied the files to the new path, gave the necessary file permissions to the mongod
user, and updated the configuration file. However, after that, the service won’t start and I encounter an exit code status 100
error. I can connect to the instance using the mongod --dbpath --config
command, but not as a service.
I’m really frustrated and unsure where I went wrong. I would greatly appreciate your help.