After a complete reinstall of mongo, it has still remembered the replica set configuration from before; where has it stored this?
I installed mongo on a linux server, using our project's user account, into a directory owned by that user. I set up replication and had it working fine. Then, to test out some finer install points, I removed the whole mongo directory and did a reinstall. Entering into mongo, I found that the replication was already set up as before; so it would appear that mongo is storing the information somewhere.
I have checked several areas which might have been holding the replica set config:
- First, in the mongo directory, but that was deleted.
- In some traditional linux structure probably owned by root, but the project user does not have root access and mongo, run by the same, should not either.
- The project user's home directory. Now this does have a .dbshell file containing the command line history, but only that. I did not see any other files there that related.
- Some location specified in the mongo configuration. But I only have two paths mentioned in there, one for the system log (
systemLog.path
) and the other for storage (storage.dbPath
), and the both point to the mongo directory, which was deleted.
Does anyone know where mongo is storing this configuration information?