[DOCS-1493] Warn user about enabling --directoryperdb with existing databases Created: 08/May/13 Updated: 08/May/13 Resolved: 08/May/13 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Stephen Lee | Assignee: | Sam Kleinman (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Participants: | |
| Days since reply: | 10 years, 41 weeks ago |
| Description |
|
TBH, I'm not sure if the following is by design, but at minimum, it needs some warning/clarification in the documentation. Mixing databases created without '--directoryperdb' and databases created with '--directoryperdb' does not work. If a user has an existing mongod running w/o '--directoryperdb' but restarts w/ it enabled, old databases will no longer be addressable. For example, before enabling '--directoryperdb', my dbpath looks something like:
Subsequently, I enable '--directoryperdb' but when I query for anything inside of the test database, mongod expects to find test's data files organized in the following fashion.
Stopping mongod, moving the test data files into a 'test' subdirectory of the dbpath root, and starting mongod --directoryperdb seems to work (w/o any deeper testing...); I can address the test database again. This is an important distinction because a user could want to use '--directoryperdb' to take advantage of a dbpath spanning multiple disks, but the user should be aware of having to potentially migrate existing databases before enabling '--directoryperdb'. |
| Comments |
| Comment by auto [ 08/May/13 ] |
|
Author: {u'date': u'2013-05-08T15:57:18Z', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}Message: |
| Comment by auto [ 08/May/13 ] |
|
Author: {u'date': u'2013-05-08T15:57:18Z', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}Message: |