数据类型 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
数据库数据恢复达100%。
来源:oschina
链接:https://my.oschina.net/u/4329339/blog/3960852