[SERVER-5400] Repair fails when using --repairpath Created: 26/Mar/12 Updated: 15/Aug/12 Resolved: 17/May/12 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Storage |
| Affects Version/s: | 2.0.1 |
| Fix Version/s: | None |
| Type: | Question | Priority: | Major - P3 |
| Reporter: | Vinith Philipose | Assignee: | Mathias Stearn |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||||||||||
| Issue Links: |
|
||||||||||||
| Participants: | |||||||||||||
| Description |
|
I am trying to repair the dbPath using the following command line: The repair fails. Attached the repair.log which contain the exception. How to use repair path correctly so that I can successfully use a directory other than dbPath for the temporary files? |
| Comments |
| Comment by Vinith Philipose [ 26/Mar/12 ] |
|
Actually I am using repair to free up disk, but since our mongo server instance runs already with journalling on therefore currently we will have to temporarily move the journal folder. Please let us know which future version gets this issue fixed. |
| Comment by Eliot Horowitz (Inactive) [ 26/Mar/12 ] |
|
It looks like a bug in the interaction of --repair with --journal. Note: using the journal while doing a repair is not helpful at all. So perhaps --repair should just be made not to use the journal at all... |
| Comment by Vinith Philipose [ 26/Mar/12 ] |
|
It seems after the removal of journal folder it works. Why can't mongod repair handle the journal folder (which can be very useful for repairing.recovery)? |
| Comment by Eliot Horowitz (Inactive) [ 26/Mar/12 ] |
|
Can you: start mongod normally. remove journal directory run --repair with --nojournal |
| Comment by Vinith Philipose [ 26/Mar/12 ] |
|
Mon Mar 26 11:51:23 [initandlisten] MongoDB starting : pid=6018 port=27017 dbpath=/export/dsetdata2/HKDATAT05.daiwaasia.local/mongoData 64-bit host=HKDATAP01.daiwaasia.local ************** |
| Comment by Eliot Horowitz (Inactive) [ 26/Mar/12 ] |
|
Can you try running with --nojournal? |