配置服務器日志顯示錯誤資訊
. Abandoning this batch of oplog entries and re-evaluating our sync source.
2019-05-29T22:04:22.261+0800 I REPL [signalProcessingThread] Stopping replication snapshot thread
2019-05-29T22:04:22.264+0800 I REPL [signalProcessingThread] Stopping replication storage threads
2019-05-29T22:04:22.268+0800 W SHARDING [signalProcessingThread] cant reload ShardRegistry :: caused by :: CallbackCanceled: Callback canceled
2019-05-29T22:04:22.269+0800 I FTDC [signalProcessingThread] Shutting down full-time diagnostic data capture
2019-05-29T22:04:22.283+0800 I STORAGE [signalProcessingThread] WiredTigerKVEngine shutting down
2019-05-29T22:04:22.412+0800 I STORAGE [signalProcessingThread] shutdown: removing fs lock...
2019-05-29T22:04:22.412+0800 I CONTROL [signalProcessingThread] now exiting
2019-05-29T22:04:22.412+0800 I CONTROL [signalProcessingThread] shutting down with code:0
2019-05-29T23:01:17.440+0800 I CONTROL [main] ***** SERVER RESTARTED *****
2019-05-29T23:01:17.516+0800 I CONTROL [initandlisten] MongoDB starting : pid=6948 port=20000 dbpath=/software/mongodb/config/data 64-bit host=dzswj_mongodb_db1
2019-05-29T23:01:17.516+0800 I CONTROL [initandlisten] db version v3.4.4
2019-05-29T23:01:17.516+0800 I CONTROL [initandlisten] git version: 888390515874a9debd1b6c5d36559ca86b44babd
2019-05-29T23:01:17.516+0800 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.1e-fips 11 Feb 2013
2019-05-29T23:01:17.516+0800 I CONTROL [initandlisten] allocator: tcmalloc
2019-05-29T23:01:17.516+0800 I CONTROL [initandlisten] modules: none
2019-05-29T23:01:17.516+0800 I CONTROL [initandlisten] build environment:
2019-05-29T23:01:17.516+0800 I CONTROL [initandlisten] distmod: rhel62
2019-05-29T23:01:17.516+0800 I CONTROL [initandlisten] distarch: x86_64
2019-05-29T23:01:17.516+0800 I CONTROL [initandlisten] target_arch: x86_64
2019-05-29T23:01:17.516+0800 I CONTROL [initandlisten] options: { config: "/software/mongodb/conf/config.conf", net: { bindIp: "0.0.0.0", maxIncomingConnections: 20000, port: 20000 }, operationProfiling: { slowOpThresholdMs: 500 }, processManagement: { fork: true, pidFilePath: "/software/mongodb/config/log/configsrv.pid" }, replication: { replSet: "configs" }, security: { authorization: "enabled", clusterAuthMode: "keyFile", keyFile: "/software/mongodb/key/mongdb-keyfile" }, sharding: { clusterRole: "configsvr" }, storage: { dbPath: "/software/mongodb/config/data", directoryPerDB: true, engine: "wiredTiger" }, systemLog: { destination: "file", logAppend: true, path: "/software/mongodb/config/log/configsrv.log" } }
2019-05-29T23:01:17.520+0800 I STORAGE [initandlisten] exception in initAndListen: 72 Requested option conflicts with current storage engine option for directoryPerDB; you requested true but the current server storage is already set to false and cannot be changed, terminating
2019-05-29T23:01:17.520+0800 I NETWORK [initandlisten] shutdown: going to close listening sockets...
2019-05-29T23:01:17.520+0800 I NETWORK [initandlisten] removing socket file: /tmp/mongodb-20000.sock
2019-05-29T23:01:17.520+0800 I NETWORK [initandlisten] shutdown: going to flush diaglog...
2019-05-29T23:01:17.520+0800 I CONTROL [initandlisten] now exiting
2019-05-29T23:01:17.520+0800 I CONTROL [initandlisten] shutting down with code:100
最后啟動一直顯示這個錯誤
2019-05-30T10:29:23.550+0800 F CONTROL [main] Failed global initialization: BadValue: shardsvr is not allowed when configsvr is specified
uj5u.com熱心網友回復:
集群模式是 副本集+分片13服務器備 14 主 15服務器是仲裁
14和15服務啟動正常
13服務器啟動 配置服務器報錯:
Failed global initialization: BadValue: shardsvr is not allowed when configsvr is specified
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/59331.html
標籤:MongoDB
