mongodb - ERROR: child process failed, exited with error number 100
淡淡烟草味
淡淡烟草味 2017-05-02 09:25:37
0
1
1140

1、mongoDB配置成副本集模式,并成功启动
2、向其中插入数据,master和slave2都正常,slave1异常宕掉
3、重启slave1报错如下

about to fork child process, waiting until server is ready for connections.
forked process: 756411
ERROR: child process failed, exited with error number 1

4、删除mongo.lock和mongodb.log后以repair模式启动报错如下

about to fork child process, waiting until server is ready for connections.
forked process: 756411
ERROR: child process failed, exited with error number 100

5、查看mongodb.log内容如下,报了一堆No space left on device

2017-02-28T15:22:10.933+0800 E STORAGE  [repl writer worker 3] WiredTiger (28) [1488266530:932986][21657:0x7f903153f700], WT_SESSION.commit_transaction: journal/WiredTigerLog.0000000003: ha
ndle-write: pwrite: failed to write 45952 bytes at offset 8572928: No space left on device
2017-02-28T15:22:10.933+0800 I -        [repl writer worker 3] Invariant failure: s->commit_transaction(s, NULL) resulted in status UnknownError: 28: No space left on device at src/mongo/db
/storage/wiredtiger/wiredtiger_recovery_unit.cpp 213
2017-02-28T15:22:10.933+0800 E STORAGE  [repl writer worker 0] WiredTiger (28) [1488266530:933845][21657:0x7f9032d42700], WT_SESSION.commit_transaction: journal/WiredTigerLog.0000000003: ha
ndle-write: pwrite: failed to write 129408 bytes at offset 8753152: No space left on device
2017-02-28T15:22:10.933+0800 I -        [repl writer worker 0] Invariant failure: s->commit_transaction(s, NULL) resulted in status UnknownError: 28: No space left on device at src/mongo/db
/storage/wiredtiger/wiredtiger_recovery_unit.cpp 213
2017-02-28T15:22:10.934+0800 E STORAGE  [repl writer worker 7] WiredTiger (28) [1488266530:934510][21657:0x7f902f53b700], WT_SESSION.commit_transaction: journal/WiredTigerLog.0000000003: ha
ndle-write: pwrite: failed to write 131840 bytes at offset 8882560: No space left on device
2017-02-28T15:22:10.934+0800 I -        [repl writer worker 7] Invariant failure: s->commit_transaction(s, NULL) resulted in status UnknownError: 28: No space left on device at src/mongo/db
/storage/wiredtiger/wiredtiger_recovery_unit.cpp 213
2017-02-28T15:22:10.935+0800 E STORAGE  [repl writer worker 1] WiredTiger (28) [1488266530:935197][21657:0x7f9032541700], WT_SESSION.commit_transaction: journal/WiredTigerLog.0000000003: ha
ndle-write: pwrite: failed to write 131840 bytes at offset 9014400: No space left on device
2017-02-28T15:22:10.935+0800 I -        [repl writer worker 1] Invariant failure: s->commit_transaction(s, NULL) resulted in status UnknownError: 28: No space left on device at src/mongo/db
/storage/wiredtiger/wiredtiger_recovery_unit.cpp 213
2017-02-28T15:22:10.936+0800 E STORAGE  [repl writer worker 9] WiredTiger (28) [1488266530:936508][21657:0x7f902e539700], WT_SESSION.commit_transaction: journal/

6、有人遇到过类似的问题吗?还望解答

淡淡烟草味
淡淡烟草味

全員に返信(1)
滿天的星座

你的磁盘空间不足了,导致提交日志失败,df -h查看一下磁盘空间,/mongo/db
/storage/wiredtiger/对应的磁盘是否满了,通常可以把mongo的日志文件删除来释放部分磁盘空间。

いいねを押す +0
人気のチュートリアル
詳細>
最新のダウンロード
詳細>
ウェブエフェクト
公式サイト
サイト素材
フロントエンドテンプレート
私たちについて 免責事項 Sitemap
PHP中国語ウェブサイト:福祉オンライン PHP トレーニング,PHP 学習者の迅速な成長を支援します!