[SERVER-22484] Unable to backup mongodb sharded cluster Created: 05/Feb/16  Updated: 05/Feb/16  Resolved: 05/Feb/16

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

Type: Question Priority: Major - P3
Reporter: Jorn Jambers Assignee: Stennie Steneker (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

Dear all,

'm unable to backup a sharded mongodb cluster

/mongo-metadata/backuptest# mongodump --directoryperdb --oplog --out dump --host 10.100.x.x --port 27017
connected to: 10.100.x.x:27017
assertion: 13106 nextSafe():

{ $err: "can't use 'local' database through mongos", code: 13644 }

Anyone has a clue what is going on here?

MongoDB version: 2.6.9



 Comments   
Comment by Jorn Jambers [ 05/Feb/16 ]

Ok thx @stephen !

Comment by Stennie Steneker (Inactive) [ 05/Feb/16 ]

Hi Jorn,

You cannot use the --oplog flag for mongodump via mongos; each shard has a separate oplog. A sharded cluster has additional considerations in order to properly capture a consistent backup of each shard as well as the cluster metadata on the config servers.

For supported procedures please see Backup and Restore Sharded Clusters in the MongoDB manual.

Please also note that the SERVER project is for reporting bugs or feature suggestions for the MongoDB server. For MongoDB-related support discussion you can post on the mongodb-user group or Stack Overflow with the mongodb tag, where your questions will reach a large audience of MongoDB users, developers and enthusiasts.

Thanks,
Stephen

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