李成石

导航

 

启动mongodb是failed,日志如下

1.解压wirdtiger包 

tar -vxf wiredtiger-3.1.0.tar.bz2 -C /home/wiredtiger/

2.安装snappy

3.安装libsnappy

DEB-基于: sudo apt-get install libsnappy-dev

基于RPM: sudo yum install libsnappy-devel

Brew: brew install snappy

3.执行./configure --enable-snappy后,make进行安装,完成后生成工具wt

4 数据移动到/var/backup

5。进行数据恢复

./wt -v -h /var/backup -C "extensions=[./ext/compressors/snappy/.libs/libwiredtiger_snappy.so]" -R dump -f ../caesar.data collection-0-8102798208027342319

5. 执行 ./wt -v -h /var/backup -C "extensions=[./ext/compressors/snappy/.libs/libwiredtiger_snappy.so]" -R load -f ../caesar.data -r collection-0-8102798208027342319.wt

 

posted on 2018-10-19 00:49  李成石  阅读(418)  评论(1编辑  收藏  举报