MongoDB Master-Slaver模式主备切换问题
下面是官网上关于 Master-Slaver模式主备切换步骤
1、 Halt writes on A using the fsync command.
2、Make sure B is up to date with the state of A.
3、 Shut down B.
4、Back up and move all data files that begin with local on B from the dbPath to remove the existing local.sources data.
Warning
Removing local.* is irrevocable and cannot be undone. Perform this step with extreme caution.
5、Start B with the --master option.
6、Do a write on B, which primes the oplog to provide a new sync start point.
7、Shut down B. B will now have a new set of data files that start with local.
8、Shut down A and replace all files in the dbPath of A that start with local with a copy of the files in the dbPath of B that begin with local.
9、Considering compressing the local files from B while you copy them, as they may be quite large.
10、Start B with the --master option.
11、Start A with all the usual slave options, but include fastsync.
关于第三步我不很明白,删除local.source data,这个local.sources data是哪个文件