[SERVER-22464] Is it possible to make mongo reload data files without restart? Created: 04/Feb/16 Updated: 04/Feb/16 Resolved: 04/Feb/16 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Admin |
| Affects Version/s: | 3.0.3 |
| Fix Version/s: | None |
| Type: | Question | Priority: | Major - P3 |
| Reporter: | nadav reichler | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Participants: |
| Description |
|
I've created a backup process for the mongo dbdir. The restoration process takes one of the backups created by rsync and copies it to a new disk and mounts it on the data dir. After the process I still see collections and databases (databases appear as empty) that existed before the restoration process, until I restart mongo. I would like to avoid this restart if possible, is there any way to cause mongo reload its data files on the fly? (I didn't use mongodump because it for some reason inflated the db from 4GB to 40GB after mongorestore, but that is a different issue) |
| Comments |
| Comment by Ramon Fernandez Marina [ 04/Feb/16 ] |
|
nadavreichler, modifying the files in dbpath of a running mongod is not supported, the behavior is undefined and may lead to data loss. Please read the documentation about backup for more information. Please note that the SERVER project is for reporting bugs or feature suggestions for the MongoDB server. For MongoDB-related support discussion please post on the mongodb-user group or Stack Overflow with the mongodb tag, where your question will reach a larger audience. A question like this involving more discussion would be best posted on the mongodb-user group. See also our Technical Support page for additional support resources. Regards, |