Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #42
By mistake, AET MongoDB data folder was set to the default value for the
sc-mongodb
cookbook which is/var/lib/mongo/
directory.After this fix, MongoDB will be configured to store its data under
/opt/aet/mongodb/db
.This is critical bugfix for the instances with separate disk/lvm configured for MognoDB.
Important!
If your instance is provisioned with
aet-cookbook
versionsv5.0.0
orv5.1.0
you need to manually move your MongoDB data. Please follow steps below after upgrading your instance with version of cookbook that contains this fix:sudo service karaf stop
sudo service mongod stop
/opt/aet/mongodb/db
withsudo rm -rf /opt/aet/mongodb/db/*
sudo mv -f /var/lib/mongo/* /opt/aet/mongodb/db
(depending of the size of your database it may tak a while, if you wish you may usersync
instead ofmv
).sudo service mongod start
. Check if all the databases are visible after data migration.sudo service karaf start