[DOCS-4394] Running mongod with --repair and --repairpath does alter the existing data files. Created: 19/Nov/14  Updated: 16/Mar/15  Resolved: 19/Nov/14

Status: Closed
Project: Documentation
Component/s: manual
Affects Version/s: None
Fix Version/s: v1.3.14

Type: Bug Priority: Major - P3
Reporter: Gianfranco Palumbo 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: 9 years, 13 weeks ago

 Description   

To fix:

See the last sentence here:
http://docs.mongodb.org/manual/reference/program/mongod/#cmdoption--repair
and the Note at the bottom of the "Definition" block:
http://docs.mongodb.org/manual/reference/command/repairDatabase/#definition

Basically the --repairpath is only used for storing temporary files while the repair is running. Once finished the --repairpath folder will be empty and the original files in the dbpath will be replaced.

Usually --repairpath is used when somebody is trying to reclaim disk space and it's using another volume with sufficient space to run the repair.



 Comments   
Comment by Githook User [ 19/Nov/14 ]

Author:

{u'username': u'tychoish', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}

Message: DOCS-4394: clarify repair operation
Branch: master
https://github.com/mongodb/docs/commit/67fdf69bfc9f120ab7f6d0d772df64e11cb54edf

Comment by Gianfranco Palumbo [ 19/Nov/14 ]

Thanks for fixing the second doc.

The first wasn't in the commit:
https://github.com/mongodb/docs/blob/master/source/tutorial/recover-data-following-unexpected-shutdown.txt#L97

Comment by Githook User [ 19/Nov/14 ]

Author:

{u'username': u'tychoish', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}

Message: DOCS-4394: clarification about repair path
Branch: master
https://github.com/mongodb/docs/commit/2a282febcf07800768094beac4f85af521ca3fea

Generated at Thu Feb 08 07:47:53 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.