[SERVER-33391] Restoring database using files from a dbpath Created: 19/Feb/18  Updated: 21/Mar/18  Resolved: 20/Feb/18

Status: Closed
Project: Core Server
Component/s: Admin, Storage
Affects Version/s: 3.2.19
Fix Version/s: None

Type: Question Priority: Major - P3
Reporter: Jehanzeb Malik [X] Assignee: Ramon Fernandez Marina
Resolution: Done Votes: 0
Labels: restore
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Ubuntu 16.04


Participants:

 Description   

Kinda critical as my production servers are also affected.

Backstory:

I had hosted mongodb on a server from IBM's bluemix. Today the link went down in the region of my server. They restored the link but there were other issues now. My VSI's filesystem is now in a read-only state. Which seems like is due to inconsistencies in the root filesystem. They tried to boot our VSI into a rescue kernel and run a filesystem check (fsck). Unfortunately that didn't fix it. Bottom line is that I can not run any service on my server atm.

Issue:

I need to access my db to host it on another server. The last backup that I have is from 3 weeks back. I need latest backup and I can not create new backup file as service cannot run on a read-only filesystem.

Question: I can access the files on dbpath and have already made a backup of those files on my local machine. Is there some way I can use these files to up another instance of mongodb?

Any help in this regard would be highly appreciated.

I have all the files from dbpath. I can share them if you want.



 Comments   
Comment by Ramon Fernandez Marina [ 20/Feb/18 ]

Jehanzeb, as long as there was no mongod running at the time you copied the files in your dbpath, you should be able to start a mongod against them in any other machine.

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,
Ramón.

Generated at Thu Feb 08 04:33:15 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.