[DOCS-8231] Clarify the steps regarding repair data files and preserve original files Created: 08/Jul/16  Updated: 30/Oct/23  Resolved: 29/Aug/16

Status: Closed
Project: Documentation
Component/s: Server
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Bug Priority: Major - P3
Reporter: Linda Qin Assignee: Kay Kim (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by DOCS-7203 "Recover Data after an Unexpected Shu... Closed
is duplicated by DOCS-7302 Comment on: "manual/tutorial/recover-... Closed
is duplicated by DOCS-8085 Comment on: "manual/tutorial/recover-... Closed
Related
related to SERVER-25008 Disallow repairPath with non-mmap sto... Closed
Participants:
Days since reply: 7 years, 24 weeks, 2 days ago
Story Points: 0.25

 Description   

This is for the following document:

This document describes repairing the data files using the --repairpath option to preserve the original data files unmodified.

However, from the docs for --repairpath:

Specifies a working directory that MongoDB will use during the --repair operation. After --repair completes, the data files in option: --dbpath and the --repairpath directory is empty.

There will be no data under the --repairpath directory after repair completes. So Step 2 to start mongod with the new data directory doesn't make sense.

--repairpath is only to specify the tmp directory used for repair and it cannot used to preserve the original data files for repairing. User should take a backup of the data files before repairing, rather than relying on --repairpath.



 Comments   
Comment by Githook User [ 29/Aug/16 ]

Author:

{u'username': u'kay-kim', u'name': u'kay', u'email': u'kay.kim@10gen.com'}

Message: DOCS-8231 clean up repair data files
Branch: master
https://github.com/mongodb/docs/commit/b98069d12e4313569bb26e3a473a48c27ac67206

Comment by Githook User [ 29/Aug/16 ]

Author:

{u'username': u'kay-kim', u'name': u'kay', u'email': u'kay.kim@10gen.com'}

Message: DOCS-8231 clean up repair data files
Branch: v3.0
https://github.com/mongodb/docs/commit/d7b1223a5e65e68fc44fa1fc998b04f06de3c554

Comment by Michael Cahill (Inactive) [ 13/Jul/16 ]

In SERVER-25008, we will change repairPath to an error for any storage engine other than MMAPv1. To get the same effect, users should first copy their data (all files under the dbPath) to the desired destination, then run mongod --repair --dbpath=/path/to/repair. The data files will be repaired in-place.

Comment by Linda Qin [ 13/Jul/16 ]

Also, currently only the MMAPv1 storage engine will acknowledge the --repairPath option. Please refer to SERVER-25008 for more details.

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