You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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:
I recommend that $dbpath for RHEL be changed to reflect the default location of MongoDB database files.
The text was updated successfully, but these errors were encountered: