What is the current state of your deployment? Are you still having
Once apon a time we have noticed data corruption
Could you provide some context on the nature of the corruption, e.g. log
messages, errors, was it due to hardware failure, etc?
after restoring new member by mongorestore tool
Did I understand correctly that you created a new server, used mongorestore
to restore a previous dump (which was created using mongodump --repair on
an existing Secondary), and added this new server to the replica set using
In the example above, the md5 values between the fs.files collection and
the result of the filemd5 command differs for file test.txt identified in
GridFS by ObjectId("57282bb698e914b1a826601d"), which indicates that there
is a corruption in the GridFS storage of that file.
it wants to make initial sync with dropping all datafiles.
How to avoid this behavior?
The default behaviour for a Secondary’s initial sync step is to drop all
databases first. This is because a Secondary is supposed to act as a
high-availability failover server that could be called on at any time to
replace the function of the Primary. Therefore, it should be as similar to
the Primary as possible.
If I understand correctly, your replica set crashed due to data corruption,
and you would like to restore the replica set using a good dump. In this
case, you wanted to follow the instructions in the Restore a Replica Set
from MongoDB Backups
page (i.e. create a new replica set using the dumped data). If you restore
the data into a new server and then attach that restored server into an
existing replica set, the first thing it will do is to perform initial sync
with the set’s Primary (which you are seeing).
Mongod version is 2.6.11 and now it is a part of sharded cluster
I’m not sure I fully understand your statement here. Could you please
elaborate on how exactly did you convert this replica set into part of a
sharded cluster, and for what purpose?
Shard number 1 (unistore-1) consist of Primary , two arbiters and one
secondary that has been restored from dump.