New replicaset from existing mongo filesystem snapshot backup

Hi,

I have taken a snapshot of my data volume from a server that’s in use. The snapshot is then transferred to S3. During a new deployment of a fresh server, I download the data and populate mongodb dbPath.

Now when the replicaset loads on the new server, it contains a reference to the old server where the backup was taken. And running rs.conf() shows the server where the backup was taken. This is probably because of the existing journal files and diagnostic data from the snapshot volume. I can see logs like this:

Is there any way I can set up a fresh, new replica set from existing mongo snapshot?

HI @Soham_Chakraborty

This is a well documented procedure and relatively simple:

2 Likes

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.