2013-03-03 180 views
2

在对Windows Server 2008 R2上运行的MongoDB 2.2.3碎片进行插入操作期间,碎片中的其中一个复制与日志文件一起崩溃,如下所示。MongoDB复制崩溃并且不会再次启动

由于问题似乎源于缺少页面文件,我尝试将其大小从8GB扩大到15GB,但这并未改变我无法启动复制。

这是一个已知的错误吗?有解决方案吗?

如果需要其他信息,请发表评论。

崩溃期间登录

Wed Feb 27 09:02:03 [initandlisten] connection accepted from 192.168.159.29:53112 #16840 (14 connections now open) 
Wed Feb 27 09:02:21 [conn16839] end connection 192.168.159.26:63150 (13 connections now open) 
Wed Feb 27 09:02:21 [initandlisten] connection accepted from 192.168.159.26:63153 #16841 (14 connections now open) 
Wed Feb 27 09:02:28 [repl writer worker 1] VirtualProtect for E:/MongoDB/data/api.62 chunk 8245 failed with errno:1455 The paging file is too small for this operation to complete. (chunk size is 67108864, address is 80d4000000) in mongo::makeChunkWritable, terminating 
Wed Feb 27 09:02:28 [repl writer worker 1] api.commhistory Fatal Assertion 16362 
Wed Feb 27 09:02:33 [conn16840] end connection 192.168.159.29:53112 (13 connections now open) 
Wed Feb 27 09:02:33 [initandlisten] connection accepted from 192.168.159.29:62053 #16842 (14 connections now open) 

我试图再次启动它,但是,20秒后或因此它可以与以下日志

Wed Feb 27 09:22:35 [rsBackgroundSync] replSet syncing to: MASB-MGO-MGO01:27017 
Wed Feb 27 09:22:35 [rsSync] replSet still syncing, not yet to minValid optime 512dcba3:c 
Wed Feb 27 09:22:36 [rsSyncNotifier] replset setting oplog notifier to MASB-MGO-MGO01:27017 
Wed Feb 27 09:22:37 [rsHealthPoll] couldn't connect to MASB-MGO-RPL02:27017: couldn't connect to server MASB-MGO-RPL02:27017 
Wed Feb 27 09:22:41 [rsHealthPoll] couldn't connect to MASB-MGO-RPL02:27017: couldn't connect to server MASB-MGO-RPL02:27017 
Wed Feb 27 09:22:45 [rsHealthPoll] couldn't connect to MASB-MGO-RPL02:27017: couldn't connect to server MASB-MGO-RPL02:27017 
Wed Feb 27 09:22:46 [repl writer worker 1] VirtualProtect for E:/MongoDB/data/api.68 chunk 10164 failed with errno:1455 The paging file is too small for this operation to complete. (chunk size is 67108864, address is 9ed0000000) in mongo::makeChunkWritable, terminating 
Wed Feb 27 09:22:46 [repl writer worker 1] api.commhistory Fatal Assertion 16362 
Wed Feb 27 09:22:48 [repl writer worker 1] mongod.exe ...\src\mongo\util\stacktrace.cpp(182)       mongo::printStackTrace+0x3e 
Wed Feb 27 09:22:48 [repl writer worker 1] mongod.exe ...\src\mongo\util\assert_util.cpp(126)       mongo::fassertFailed+0x43 
Wed Feb 27 09:22:48 [repl writer worker 1] mongod.exe ...\src\mongo\util\mmap_win.cpp(264)        mongo::makeChunkWritable+0x342 
Wed Feb 27 09:22:48 [repl writer worker 1] mongod.exe ...\src\mongo\util\mmap.h(274)         mongo::MemoryMappedFile::makeWritable+0x56 
Wed Feb 27 09:22:48 [repl writer worker 1] mongod.exe ...\src\mongo\db\dur_commitjob.cpp(93)       mongo::dur::DurableImpl::declareWriteIntent+0x5f 
Wed Feb 27 09:22:48 [repl writer worker 1] mongod.exe ...\src\mongo\db\dur.cpp(239)         mongo::dur::DurableImpl::writingAtOffset+0x18 
Wed Feb 27 09:22:48 [repl writer worker 1] mongod.exe ...\src\mongo\db\btree.cpp(406)         mongo::BucketBasics<mongo::BtreeData_V1>::basicInsert+0xcd 
Wed Feb 27 09:22:48 [repl writer worker 1] mongod.exe ...\src\mongo\db\btree.cpp(1309)         mongo::BtreeBucket<mongo::BtreeData_V1>::insertHere+0xa0 
Wed Feb 27 09:22:48 [repl writer worker 1] mongod.exe ...\src\mongo\db\index_insertion_continuation.h(66)    mongo::IndexInsertionContinuationImpl<mongo::BtreeData_V1>::doIndexInsertionWrites+0xda 
Wed Feb 27 09:22:48 [repl writer worker 1] mongod.exe ...\src\mongo\db\index_update.cpp(146)       mongo::indexRecordUsingTwoSteps+0x77a 
Wed Feb 27 09:22:48 [repl writer worker 1] mongod.exe ...\src\mongo\db\pdfile.cpp(1546)        mongo::DataFileMgr::insert+0x845 
Wed Feb 27 09:22:48 [repl writer worker 1] mongod.exe ...\src\mongo\db\pdfile.cpp(1273)        mongo::DataFileMgr::insertWithObjMod+0x48 
Wed Feb 27 09:22:48 [repl writer worker 1] mongod.exe ...\src\mongo\db\ops\update.cpp(203)        mongo::_updateObjects+0x4c2 
Wed Feb 27 09:22:48 [repl writer worker 1] mongod.exe ...\src\mongo\db\oplog.cpp(780)         mongo::applyOperation_inlock+0x507 
Wed Feb 27 09:22:48 [repl writer worker 1] mongod.exe ...\src\mongo\db\repl\rs_sync.cpp(84)       mongo::replset::SyncTail::syncApply+0x245 
Wed Feb 27 09:22:48 [repl writer worker 1] mongod.exe ...\src\mongo\db\repl\rs_sync.cpp(121)       mongo::replset::multiSyncApply+0x65 
Wed Feb 27 09:22:48 [repl writer worker 1] mongod.exe ...\src\mongo\util\concurrency\thread_pool.cpp(66)    mongo::threadpool::Worker::loop+0x94 
Wed Feb 27 09:22:48 [repl writer worker 1] mongod.exe ...\src\third_party\boost\libs\thread\src\win32\thread.cpp(180) boost::`anonymous namespace'::thread_start_function+0x21 
Wed Feb 27 09:22:48 [repl writer worker 1] mongod.exe f:\dd\vctools\crt_bld\self_64_amd64\crt\src\threadex.c(314)  _callthreadstartex+0x17 
Wed Feb 27 09:22:48 [repl writer worker 1] mongod.exe f:\dd\vctools\crt_bld\self_64_amd64\crt\src\threadex.c(292)  _threadstartex+0x7f 
Wed Feb 27 09:22:48 [repl writer worker 1] 

***aborting after fassert() failure 


Wed Feb 27 09:23:44 [initandlisten] connection accepted from 192.168.159.26:64223 #17 (14 connections now open) 
Wed Feb 27 09:23:44 [conn3] end connection 192.168.159.24:5105 (13 connections now open) 
Wed Feb 27 09:23:44 [conn10] end connection 192.168.159.25:51584 (12 connections now open) 
Wed Feb 27 09:23:44 [conn11] end connection 192.168.159.22:50242 (11 connections now open) 
Wed Feb 27 09:23:44 [conn15] end connection 192.168.159.26:64205 (10 connections now open) 
Wed Feb 27 09:23:44 [initandlisten] connection accepted from 192.168.159.25:51595 #18 (11 connections now open) 
Wed Feb 27 09:23:44 [conn5] end connection 192.168.159.23:54657 (9 connections now open) 
Wed Feb 27 09:23:44 [initandlisten] connection accepted from 192.168.159.24:5118 #19 (11 connections now open) 
Wed Feb 27 09:23:44 [initandlisten] connection accepted from 192.168.159.23:54671 #20 (12 connections now open) 
Wed Feb 27 09:23:44 [initandlisten] connection accepted from 192.168.159.22:50255 #21 (13 connections now open) 
Wed Feb 27 09:23:44 [initandlisten] connection accepted from 192.168.159.26:64230 #22 (14 connections now open) 
Wed Feb 27 09:23:44 [initandlisten] connection accepted from 192.168.159.26:64237 #23 (15 connections now open) 
Wed Feb 27 09:23:44 [initandlisten] connection accepted from 192.168.159.25:51602 #24 (16 connections now open) 
Wed Feb 27 09:23:44 [rsHealthPoll] couldn't connect to MASB-MGO-RPL02:27017: couldn't connect to server MASB-MGO-RPL02:27017 

复制再次崩溃服务器信息

Operating System 
     Microsoft Windows Server 2008 R2 Standard 64-bit SP1 
    CPU 
     Intel Xeon E5 @ 2.60GHz 
     Sandy Bridge-EP/EX 32nm Technology 
     Intel Xeon E5 @ 2.60GHz 
     Sandy Bridge-EP/EX 32nm Technology 
     Intel Xeon E5 @ 2.60GHz 
     Sandy Bridge-EP/EX 32nm Technology 
     Intel Xeon E5 @ 2.60GHz 
     Sandy Bridge-EP/EX 32nm Technology 
    RAM 
     8.00 GB EDO (3-3-3-?) 
+0

有趣的部分是:“分页文件太小,无法完成此操作。”尽管Windows不应该有这个问题。 – Sammaye 2013-03-03 13:06:28

+0

您能否请示,当您启动您的mongod时,您使用了哪些参数? – user 2013-03-05 14:47:25

+0

@ConstantineNovykov:这里是'E:\ MongoDB \ mongod.exe --replSet rs0 --oplogSize 5000 --dbpath E:\ MongoDB \ data --logpath E:\ MongoDB \ mongo.log' – VitalyB 2013-03-10 13:44:08

回答

1

原来,它确实发生是由于页面文件太小。即使将其从8GB提高到15GB也没有帮助,但将它提高到30GB使得MongoDB正常备份。

MongoDB不会接受双倍虚拟内存大小的事实在我眼中仍然很奇怪。

所以...如果你有这种错误,只是尽量不断增加你的虚拟内存,这应该有所帮助。

+3

这实际上是一个MongoDB服务器的已知错误:https://jira.mongodb.org/browse/SERVER-10044希望它很快就会解决 – sfritter 2013-12-10 19:25:35