0
回答
mongodb异常关闭后怎样快速重启
注册华为云得mate10,2.9折抢先购!>>>   

mongodb在机器宕机之后就启动不起来,似乎启动之后一直阻塞在某一步
1. 宕机之前,启动mongodb时把journal设置为true,不过现在启动不了
2. 删掉mongodb.lock文件用repair选项启动也还是不行

麻烦各位帮忙看下,谢谢

mongodb版本 v3.2.8
数据库大小70GB

这是我的配置文件

dbpath=/data/mongodb/new_db
logpath=/data/mongodb/logs/mongodb.log
fork=true
httpinterface=true
rest=true
journal=true
wiredTigerCacheSizeGB=3



mongodb的启动log

2016-10-25T15:36:53.442+0800 I CONTROL  [initandlisten] db version v3.2.8
2016-10-25T15:36:53.442+0800 I CONTROL  [initandlisten] git version: ed70e33130c977bda0024c125b56d159573dbaf0
2016-10-25T15:36:53.442+0800 I CONTROL  [initandlisten] allocator: tcmalloc
2016-10-25T15:36:53.442+0800 I CONTROL  [initandlisten] modules: none
2016-10-25T15:36:53.442+0800 I CONTROL  [initandlisten] build environment:
2016-10-25T15:36:53.442+0800 I CONTROL  [initandlisten]     distarch: x86_64
2016-10-25T15:36:53.442+0800 I CONTROL  [initandlisten]     target_arch: x86_64
2016-10-25T15:36:53.442+0800 I CONTROL  [initandlisten] options: { config: "/usr/local/mongodb/conf/mongodb.conf", net: { http: { RESTInterfaceEnabled: true, enabled: true } }, processManagement: { fork: true }, storage: { dbPath: "/data/mongodb/new_db", journal: { enabled: true }, wiredTiger: { engineConfig: { cacheSizeGB: 3 } } }, systemLog: { destination: "file", path: "/data/mongodb/logs/mongodb.log" } }
2016-10-25T15:36:53.457+0800 I -        [initandlisten] Detected data files in /data/mongodb/new_db created by the 'wiredTiger' storage engine, so setting the active storage engine to 'wiredTiger'.
2016-10-25T15:36:53.457+0800 I STORAGE  [initandlisten] wiredtiger_open config: create,cache_size=3G,session_max=20000,eviction=(threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),checkpoint=(wait=60,log_size=2GB),statistics_log=(wait=0),

接下来就没日志了,看不出来mongodb在干嘛,但mongodb的CPU占用率一直在10%+


举报
leizhitong
发帖于1年前 0回/146阅
顶部