On Jul 12, 5:42 pm, Bernie Hackett <
ber...@10gen.com> wrote:
> From my testing it looks like you can do this:
>
> 1. rs.remove(<secondary you want to query>)
> 2. Restart the secondary without --replSet
> 3. Run your queries
> 4. Restart the secondary with --replSet
> 6. rs.add(<secondary you queried>)
Thanks. I just tested, and I believe --fastsync is also required in
Step 4, in addtion to --replSet.
Step 4 generates the following errors if I don't include --
fastsync ...
[startReplSets] replSet error self not present in the repl set
configuration:
[startReplSets] { _id: "replicasetname", version: 18, members:
[ { _id: 2, host: "
rs-west1.mydomain.com", priority: 0.0 }, { _id: 1,
host: "
rs-east2.mydomain.com" } ] }
[startReplSets] replSet error loading configurations 13497 replSet
error self not present in the configuration
[startReplSets] replSet error replication will not start
[startReplSets] replSet error loading set config
[startReplSets] replSet error fatal, stopping replication
[startReplSets] replSet ~RSBase called
[startReplSets] replSet caught exception in startReplSets thread:
replSet error self not present in the configuration
Dane