数据类型 mongodb 3.x
数据容量 140 GB
故障类型 服务器断电导致WiredTiger.wt文件损坏 启动报错 Detected data files in E:\DTLFolder\MongoDB\data created by the 'wiredTiger' storage engine, so setting the active storage engine to 'wiredTiger'.
2018-05-08T16:10:09.755+0800 I STORAGE [initandlisten] wiredtiger_open config: create,cache_size=18G,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),
2018-05-08T16:10:09.765+0800 E STORAGE [initandlisten] WiredTiger (0) [1525767009:765885][6772:140729286678224], file:WiredTiger.wt, connection: read checksum error for 4096B block at offset 24576: block header checksum of 3915078705 doesn't match expected checksum of 3915078719
修复结果 文件发来后 分析WiredTiger.wt与启动文件存储的校验值不匹配。手工分析错误信息。完成恢复。数据库直接启动OK
这也是断电导致的 数据库文件未及时关闭导致的损坏。切记不可非法关机 突然断电,要检查硬件。
![](http://www.sql110.com/pic/20180508161320.jpg)