[SERVER-9264] Repair process fails with a mount folder volume on Windows Created: 05/Apr/13 Updated: 10/Dec/14 Resolved: 05/Apr/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Diagnostics |
| Affects Version/s: | 2.4.1 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | David Verdejo | Assignee: | A. Jesse Jiryu Davis |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | error, folder, mounted, repair, windows | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
db version v2.4.1 |
||
| Attachments: |
|
||||||||||||||||
| Issue Links: |
|
||||||||||||||||
| Operating System: | ALL | ||||||||||||||||
| Steps To Reproduce: | 1) Start a mongod instance with dbpath: "E:\mongodb\data\db" and directoryperdb: true parameters. |
||||||||||||||||
| Participants: | |||||||||||||||||
| Description |
|
We create use a mounted folder on Windows to use a database on a different volume for improve performance disk. |
| Comments |
| Comment by A. Jesse Jiryu Davis [ 05/Apr/13 ] | |||
|
Unfortunately repairDatabase and --directoryperdb are not supported together when the databases' directories are mount points. While waiting for this feature to be implemented, you can engage in the following: 1. Use the shell command like:
2. mongod makes compacted copy of files at E:\mongodb\data\db_tmp_repairDatabase_0, then asserts 3. shut down mongod 4. Manually copy the files from E:\mongodb\data\db_tmp_repairDatabase_0 to E:\mongodb\data\db\cacheagg 5. Restart mongodb 6. Optionally delete repaired files from E:\mongodb\data\db_tmp_repairDatabase_0 Clearly, using repairDatabase with --directoryperdb and mount points will be better once |