Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default location for database files on RHEL variants is /var/lib/mongo #714

Closed
bschonec opened this issue Mar 22, 2024 · 0 comments · Fixed by #718
Closed

Default location for database files on RHEL variants is /var/lib/mongo #714

bschonec opened this issue Mar 22, 2024 · 0 comments · Fixed by #718

Comments

@bschonec
Copy link

bschonec commented Mar 22, 2024

What are you seeing

The default location for the database files on RHEL variants is /var/lib/mongo. The class module mongodb::params defaults to /var/lib/mongodb for all operating systems.

Output log

I audited the RPM packages of Mongo and Mongo enterprise and the location for the database is /var/lib/mongo:

Name        : mongodb-enterprise-server    Relocations: /usr /var /etc 
Release     : 1.el8                         Build Date: Tue 20 Feb 2024 04:45:42 PM EST
/var/lib/mongo
Name        : mongodb-enterprise-server    Relocations: /usr /var /etc 
Release     : 1.el8                         Build Date: Tue 20 Feb 2024 06:17:00 PM EST
/var/lib/mongo
Name        : mongodb-enterprise-server    Relocations: /usr /var /etc 
Release     : 1.el8                         Build Date: Wed 13 Mar 2024 07:52:19 PM EDT
/var/lib/mongo
Name        : mongodb-enterprise-server    Relocations: /usr /var /etc 
Release     : 1.el9                         Build Date: Tue 20 Feb 2024 06:36:02 PM EST
/var/lib/mongo
Name        : mongodb-enterprise-server    Relocations: /usr /var /etc 
Release     : 1.el9                         Build Date: Wed 13 Mar 2024 07:50:58 PM EDT
/var/lib/mongo
Name        : mongodb-enterprise-server    Relocations: /usr /var /etc 
Release     : 1.el7                         Build Date: Tue 20 Feb 2024 05:25:02 PM EST
/var/lib/mongo
Name        : mongodb-enterprise-server    Relocations: /usr /var /etc 
Release     : 1.el7                         Build Date: Tue 20 Feb 2024 06:39:09 PM EST
/var/lib/mongo
Name        : mongodb-enterprise-server    Relocations: /usr /var /etc 
Release     : 1.el7                         Build Date: Wed 13 Mar 2024 08:40:40 PM EDT
/var/lib/mongo
Name        : mongodb-org-server           Relocations: /usr /var /etc 
Release     : 1.el9                         Build Date: Thu 16 Nov 2023 01:20:36 PM EST
/var/lib/mongo
Name        : mongodb-org-server           Relocations: /usr /var /etc 
Release     : 1.el7                         Build Date: Thu 05 Oct 2023 04:36:14 PM EDT
/var/lib/mongo
Name        : mongodb-org-server           Relocations: /usr /var /etc 
Release     : 1.el8                         Build Date: Wed 08 Mar 2023 02:34:48 PM EST
/var/lib/mongo

I recommend that $dbpath for RHEL be changed to reflect the default location of MongoDB database files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant