Convert Replica Set backup to standalone via Ops Manager

239 views
Skip to first unread message

Jeff Tetzloff

unread,
May 6, 2016, 3:13:31 PM5/6/16
to mongodb-user
Hello!

I'm evaluating Ops Manager and have been fumbling around with the restore methods.  I've been able to create a backup easily enough, but have had difficulty restoring them, as in I've yet to get it to work.  Here's the scenario I'm looking to support:

1) Production would consist of a couple databases in a replica set.  Currently evaluating on 3.2.5, WiredTiger.
2) Say a developer requires a point-in-time copy of a single database to restore to a standalone mongod (local laptop or a development server).
3) I create the backup via Ops Manager using a whitelist to select only this database.
4) ???

I tried shutting down the service and copying in the files from the backup to an existing instance (I'm a SQL Server DBA so forgive the parlance), but after that the service won't start (maybe related to https://jira.mongodb.org/browse/SERVER-19815?).  Does the directoryPerDB setting matter here?  Log file shows this:

2016-05-06T14:09:57.413-0500 I CONTROL  [main] Trying to start Windows service 'MongoDB'
2016-05-06T14:09:57.416-0500 I STORAGE  [thread1] Service running
2016-05-06T14:09:57.416-0500 I CONTROL  [initandlisten] MongoDB starting : pid=4380 port=27018 dbpath=D:\DBData01\RestoreTest\db 64-bit host=XXXXXXX
2016-05-06T14:09:57.416-0500 I CONTROL  [initandlisten] targetMinOS: Windows 7/Windows Server 2008 R2
2016-05-06T14:09:57.416-0500 I CONTROL  [initandlisten] db version v3.2.5
2016-05-06T14:09:57.416-0500 I CONTROL  [initandlisten] git version: 34e65e5383f7ea1726332cb175b73077ec4a1b02
2016-05-06T14:09:57.416-0500 I CONTROL  [initandlisten] OpenSSL version: OpenSSL 1.0.1p-fips 9 Jul 2015
2016-05-06T14:09:57.416-0500 I CONTROL  [initandlisten] allocator: tcmalloc
2016-05-06T14:09:57.416-0500 I CONTROL  [initandlisten] modules: enterprise 
2016-05-06T14:09:57.416-0500 I CONTROL  [initandlisten] build environment:
2016-05-06T14:09:57.416-0500 I CONTROL  [initandlisten]     distmod: windows-64
2016-05-06T14:09:57.416-0500 I CONTROL  [initandlisten]     distarch: x86_64
2016-05-06T14:09:57.416-0500 I CONTROL  [initandlisten]     target_arch: x86_64
2016-05-06T14:09:57.417-0500 I CONTROL  [initandlisten] options: { config: "D:\DBData01\RestoreTest\db\automation-mongod.conf", net: { port: 27018 }, service: true, storage: { dbPath: "D:\DBData01\RestoreTest\db", engine: "wiredTiger" }, systemLog: { destination: "file", path: "D:\DBData01\RestoreTest\log\mongodb.log" } }
2016-05-06T14:09:57.418-0500 I STORAGE  [initandlisten] wiredtiger_open config: create,cache_size=4G,session_max=20000,eviction=(threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),checkpoint=(wait=60,log_size=2GB),statistics_log=(wait=0),
2016-05-06T14:09:57.429-0500 I -        [initandlisten] Assertion: 28595:2: No such file or directory
2016-05-06T14:09:57.429-0500 I STORAGE  [initandlisten] exception in initAndListen: 28595 2: No such file or directory, terminating
2016-05-06T14:09:57.429-0500 I CONTROL  [serviceStopWorker] dbexit:  rc: 49

I look in the documentation (https://docs.opsmanager.mongodb.com/current/tutorial/restore-single-database/) and it looks like this functionality has been removed, with no option for supporting a 3.0+ restore, or at least it's not obvious.

Any hints?

Thanks!
Jeff

Markus Thielsch

unread,
May 19, 2016, 6:11:14 PM5/19/16
to mongodb-user

Hi Jeff,

Please note that Ops Manager is a part of MongoDB Enterprise edition, which is a commercially supported product. If your company already has a commercial subscription and you have further questions about running OpsManager, for faster response I would suggest to open a case in the Commercial Support Project in MongoDB Jira. Alternatively, if you are evaluating Ops Manager and interested please contact me off list and I could put you in touch with an Account Executive.

For more information see Ops Manager manual. Restore a Replica Set from a Backup could also be useful for your specific use case.

Regards
Markus

Reply all
Reply to author
Forward
0 new messages