mongodb分片集群突然停电造成一些错误,分片无法启动(非正常关闭)
报错:[*] /data/mongodb2/log/mongo.log
2015-09-14T05:41:49.288-0400 ***** SERVER RESTARTED *****
2015-09-14T05:41:49.293-0400 MongoDB starting : pid=13693 port=27017 dbpath=/data/mongodb2/db 64-bit host=mongodb02.com
2015-09-14T05:41:49.293-0400
2015-09-14T05:41:49.293-0400 ** WARNING: You are running on a NUMA machine.
2015-09-14T05:41:49.293-0400 ** We suggest launching mongod like this to avoid performance problems:
2015-09-14T05:41:49.293-0400 ** numactl --interleave=all mongod
2015-09-14T05:41:49.565-0400
2015-09-14T05:41:49.565-0400 db version v2.6.4
2015-09-14T05:41:49.565-0400 git version: 3a830be0eb92d772aa855ebb711ac91d658ee910
2015-09-14T05:41:49.565-0400 build info: Linux build7.nj1.10gen.cc 2.6.32-431.3.1.el6.x86_64 #1 SMP Fri Jan 3 21:39:27 UTC 2014 x86_64 BOOST_LIB_VERSION=1_49
2015-09-14T05:41:49.565-0400 allocator: tcmalloc
2015-09-14T05:41:49.565-0400 options: { net: { http: { RESTInterfaceEnabled: true, enabled: true }, maxIncomingConnections: 8000, port: 27017 }, processManagement: { fork: true }, replication: { replSet: "rep1" }, security: { keyFile: "/data/mongodb2/keyfile/security" }, storage: { dbPath: "/data/mongodb2/db" }, systemLog: { destination: "file", logAppend: true, path: "/data/mongodb2/log/mongo.log" } }
2015-09-14T05:41:49.584-0400 journal dir=/data/mongodb2/db/journal
2015-09-14T05:41:49.585-0400 recover : no journal files present, no recovery needed
2015-09-14T05:41:49.914-0400 preallocateIsFaster=true 5.7
2015-09-14T05:41:50.258-0400 Assertion: 10334:BSONObj> 2015-09-14T05:41:50.266-0400 cache_common 0x11e6111 0x1187e49 0x116c9f6 0x116cf4c 0x77329b 0xefd3e8 0x8dd353 0x8b57e2 0x8c20d0 0x765f0e 0x76ab3f 0x76c62f 0x76cedb 0x76d475 0x76d699 0x7f14cf5ceaf5 0x764329
mongod(_ZN5mongo15printStackTraceERSo+0x21)
mongod(_ZN5mongo10logContextEPKc+0x159)
mongod(_ZN5mongo11msgassertedEiPKc+0xe6)
mongod()
mongod(_ZNK5mongo7BSONObj14_assertInvalidEv+0x41b)
mongod(_ZNK5mongo7DiskLoc3objEv+0x68)
mongod(_ZN5mongo12IndexCatalog4initEv+0x213)
mongod(_ZN5mongo10CollectionC1ERKNS_10StringDataEPNS_16NamespaceDetailsEPNS_8DatabaseE+0x2e2)
mongod(_ZN5mongo8Database13getCollectionERKNS_10StringDataE+0x150)
mongod(_ZN5mongo17checkForIdIndexesEPNS_8DatabaseE+0x19e)
mongod()
mongod(_ZN5mongo14_initAndListenEi+0x5df)
mongod(_ZN5mongo13initAndListenEi+0x1b)
mongod()
mongod(main+0x9)
/lib64/libc.so.6(__libc_start_main+0xf5)
mongod()
2015-09-14T05:41:50.267-0400 exception in initAndListen: 10334 BSONObj> 2015-09-14T05:41:50.267-0400 dbexit:
2015-09-14T05:41:50.267-0400 shutdown: going to close listening sockets...
2015-09-14T05:41:50.267-0400 shutdown: going to flush diaglog...
2015-09-14T05:41:50.267-0400 shutdown: going to close sockets...
2015-09-14T05:41:50.267-0400 shutdown: waiting for fs preallocator...
2015-09-14T05:41:50.267-0400 shutdown: lock for final commit...
2015-09-14T05:41:50.267-0400 shutdown: final commit...
2015-09-14T05:41:50.267-0400 shutdown: closing all files...
2015-09-14T05:41:50.268-0400 closeAllFiles() finished
2015-09-14T05:41:50.268-0400 journalCleanup...
2015-09-14T05:41:50.268-0400 removeJournalFiles
2015-09-14T05:41:50.269-0400 shutdown: removing fs lock...
2015-09-14T05:41:50.269-0400 dbexit: really exiting now
systemctl status mongodb.service
mongodb.service - mongodb
Loaded: loaded (/usr/lib/systemd/system/mongodb.service; enabled)
Active: failed (Result: exit-code) since Mon 2015-09-14 05:25:06 EDT; 1h 10min ago
Process: 13499 ExecStart=/usr/local/mongodb/bin/mongod --dbpath=/data/mongodb2/db --logpath=/data/mongodb2/log/mongo.log --fork --port 27017 --logappend --replSet rep1 --rest --httpinterface --maxConns=8000 --keyFile=/data/mongodb2/keyfile/security (code=exited, status=100)
Sep 14 05:25:05 mongodb02.com systemd: Starting mongodb...
Sep 14 05:25:05 mongodb02.com mongod: about to fork child process, waiting until server is ready for connections.
Sep 14 05:25:05 mongodb02.com mongod: forked process: 13501
Sep 14 05:25:06 mongodb02.com mongod: ERROR: child process failed, exited with error number 100
Sep 14 05:25:06 mongodb02.com systemd: mongodb.service: control process exited, code=exited status=100
Sep 14 05:25:06 mongodb02.com systemd: Failed to start mongodb.
Sep 14 05:25:06 mongodb02.com systemd: Unit mongodb.service entered failed state.
# /usr/local/mongodb/bin/mongod --dbpath=/data/mongoarb/arbiter --logpath=/data/mongoarb/log/arbiter.log --fork --port 27027 --logappend --replSet rep1 --keyFile=/data/mongoarb/keyfile/security --rest
2015-09-14T06:57:48.025-0400 ** WARNING: --rest is specified without --httpinterface,
2015-09-14T06:57:48.025-0400 ** enabling http interface
about to fork child process, waiting until server is ready for connections.
forked process: 14495
ERROR: child process failed, exited with error number 1
因为提示子进程失败
# /usr/local/mongodb/bin/mongod --dbpath=/data/mongodb2/db --logpath=/data/mongodb2/log/mongo.log --fork --port 27017 --logappend --replSet rep1 --rest --httpinterface --maxConns=8000 --keyFile=/data/mongodb2/keyfile/security
about to fork child process, waiting until server is ready for connections.
forked process: 14545
ERROR: child process failed, exited with error number 100
初始化,又是提示子进程启动失败。
页:
[1]