1

我正在做mongodump --host=replicasetname/host,host,host -d databasename --out=path,它工作正常,永远。

但是我已经制作了一个新的副本集,当我这样做时,我什么也得不到。

当它起作用时会发生这种情况:

2016-02-10T11:58:29.152+0100 starting new replica set monitor for replica set ... with seeds ...:27017,...:27017,...:27017
2016-02-10T11:58:29.152+0100 creating new connection to:...:27017
2016-02-10T11:58:29.152+0100 [ReplicaSetMonitorWatcher] BackgroundJob starting: ReplicaSetMonitorWatcher
2016-02-10T11:58:29.152+0100 [ReplicaSetMonitorWatcher] starting
2016-02-10T11:58:29.213+0100 [ConnectBG] BackgroundJob starting: ConnectBG
2016-02-10T11:58:29.275+0100 connected to server ...:27017 (...)
2016-02-10T11:58:29.275+0100 connected connection!
2016-02-10T11:58:29.339+0100 changing hosts to ... from ...
connected to: ...
2016-02-10T11:58:29.339+0100 creating new connection to:...
2016-02-10T11:58:29.400+0100 [ConnectBG] BackgroundJob starting: ConnectBG
2016-02-10T11:58:29.460+0100 connected to server ...
2016-02-10T11:58:29.460+0100 connected connection!
2016-02-10T11:58:29.521+0100 DATABASE: ...   to     ...
2016-02-10T11:58:29.648+0100    ....system.indexes to /tmp/dump/...
...
...

当它不起作用时会发生这种情况

2016-02-10T12:03:02.181+0100 starting new replica set monitor for replica set ... with seeds ...
2016-02-10T12:03:02.181+0100 creating new connection to:...
2016-02-10T12:03:02.181+0100 [ReplicaSetMonitorWatcher] BackgroundJob starting: ReplicaSetMonitorWatcher
2016-02-10T12:03:02.181+0100 [ReplicaSetMonitorWatcher] starting
2016-02-10T12:03:02.192+0100 [ConnectBG] BackgroundJob starting: ConnectBG
2016-02-10T12:03:02.258+0100 connected to server ...
2016-02-10T12:03:02.258+0100 connected connection!
connected to: ...
2016-02-10T12:03:02.323+0100 creating new connection to:...
2016-02-10T12:03:02.323+0100 [ConnectBG] BackgroundJob starting: ConnectBG
2016-02-10T12:03:02.386+0100 connected to server ...
2016-02-10T12:03:02.386+0100 connected connection!
2016-02-10T12:03:02.450+0100 DATABASE: ...   to     ...

out 文件夹已创建,但它是空的。

没有显示错误。数据库存在,它包含集合和文档

他们的配置虽然不同

这个有效

{
    "settings" : {
        "chainingAllowed" : true,
        "heartbeatTimeoutSecs" : 10,
        "getLastErrorModes" : {

        },
        "getLastErrorDefaults" : {
            "w" : 1,
            "wtimeout" : 0
        }
    }
}

这个其他不{“protocolVersion”:NumberLong(1),“settings”:{“chainingAllowed”:true,“heartbeatIntervalMillis”:2000,“heartbeatTimeoutSecs”:10,“electionTimeoutMillis”:10000,“getLastErrorModes”:{

        },
        "getLastErrorDefaults" : {
            "w" : 1,
            "wtimeout" : 0
        }
    }
}

这里发生了什么?我能做些什么?

谢谢

4

0 回答 0