I am trying to migrate mongodb data from On Premise server to Azure VM using replica set. The version of MongoDB is 2.6.12 and the data is about 6.5 TiB.
For one of the server which had less amount of data, replication was successful but for this server, the replica set on secondary node is not acquiring secondary state and I am getting error as “Too many files open”.
I have also set the limit for open files to 700000000, core file size to unlimited, file size to unlimited, max memory size to unlimited, max locked memory to unlimited, virtual memory to unlimited and file locks to unlimited but all in vain…
After making all the changes to the replica set in secondary node, I always get an error of too many open files on reaching to a point at 1937 GB.
Please suggest me of some ways to make this data get migrated from on premise to Azure VM.