修复MongoDB数据库,由于文件系统限制,因此请求的操作无法完成

本文记录了一次MongoDB启动时出现的错误日志详情,包括检测到由'wiredTiger'存储引擎创建的数据文件及详细的配置参数。此外,还提到了因文件系统限制导致的操作失败,并给出了相应的修复步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

错误日志:

2018-02-22T10:06:18.238+0800 I CONTROL  [initandlisten] options: { config: "D:\MongoDB\mongo.config", net: { bindIp: "0.0.0.0", port: 37017 }, security: { authorization: "enabled" }, service: true, storage: { dbPath: "D:\MongoDB\data\db" }, systemLog: { destination: "file", path: "D:\MongoDB\data\log\mongo.log" } }
2018-02-22T10:06:18.239+0800 I -        [initandlisten] Detected data files in D:\MongoDB\data\db created by the 'wiredTiger' storage engine, so setting the active storage engine to 'wiredTiger'.
2018-02-22T10:06:18.239+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-02-22T10:06:19.577+0800 E STORAGE  [initandlisten] WiredTiger (0) [1519265179:577663][44612:2000958368], file:collection-4-3828813183626914028.wt, WT_SESSION.open_cursor: D:\MongoDB\data\db\collection-4-3828813183626914028.wt: handle-truncate: SetEndOfFile: 由于文件系统限制,因此请求的操作无法完成

 

 

修复MongoDB

先删除D:\MongoDB\data\mongod.lock

在执行修复命令必须要指定dbpath

D:\MongoDB\Mongo\bin>mongod.exe --dbpath "d:\MongoDB\data\db" --repair

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值