Questions tagged [mongo-repair]
25 questions
8
votes
1 answer
How to match a WiredTiger index file to its corresponding collection
I have a mongodb database with about 2 billion records, shared between 20 or so collections. Each of these collections has an index on it, based on a single key (other than _id).
I have an index file (named index-1-5374774422504609475.wt) that I'd…
JonLuca
- 237
- 3
- 10
7
votes
1 answer
Restore mongoDB by --repair and WiredTiger
We accidentally deleted the directory rm -rf /data/db
which was our MongoDB path, and thanks to
extundelete, we recovered it and got the directory /data/db.
Here are our files in the directory, and the files was generated under MongoDB version…
国贵棠
- 71
- 1
- 1
- 4
3
votes
2 answers
How much free space do I need for mongoDB? and how to reclaim lost space?
I ran out of disk space on my mongo database. I saw it and dropped some collections (120 out of 1700 i had). And ran db.compact(...) thinking it would release free space. well, that was a stupid idea.
Anyway, the database is around 800GB, and I dont…
xcorat
- 133
- 1
- 5
3
votes
1 answer
cleaning up failed repair db: path: /var/lib/docker/wesfgr/repair/_tmp_repairDatabase_0
We run MongoDB 3.0.6 with MMAP in Docker container (single node). The filesystem was full and I did a repair with other path.
2016-10-03T08:58:51.186+0200 I INDEX [initandlisten] building index using bulk…
Sybil
- 2,578
- 6
- 34
- 61
2
votes
6 answers
Mongodb exception: connect failed
Here's the environment:
Linux(x64): 16.04
MongoDB: 3.2.15
Error:
root@system-test:~# mongo
MongoDB shell version: 3.2.15
connecting to: test
2017-07-25T07:31:28.528+0000 W NETWORK [thread1] Failed to connect to 127.0.0.1:27017, in(checking socket…
Siddhartha Chowdhury
- 131
- 1
- 1
- 5
2
votes
0 answers
mongod crashes with “Invariant failure getExtent( a )->xprev.isNull()” message
I am trying to start a mongodb server with the database, that is located on portable drive. I know barely nothing about the internals of this particular database.
There are 647 database.N files, 2G each, and database.ns of size 16M.
I mounted the…
Aleksei Matiushkin
- 71
- 4
2
votes
0 answers
how to convert mongodb(2.4.10) startup2 to primary
I have standalone bitnami mongodb(2.4.10). The output of rs.status() command is below :
rs.status()
{
"set" : "test",
"date" : ISODate("2015-11-13T08:07:41Z"),
"myState" : 5,
"members" : [
{
"_id" : 0,
…
singh
- 21
- 1
2
votes
1 answer
Mongo Storage Engine from mmap to wiredTiger
We have a mongo(v3.0.3) database->collections which is in mmap storage engine.
We are trying to change it to wiredtiger
we tried the process below.But we still see the same old storage…
user3392695
- 21
- 2
1
vote
1 answer
Mongo repair database "ERROR: error: exception cloning object in local.system.replset "
I'm trying to repair a mongo database and am running into the following error early on:
Wed Jul 24 16:55:21 [initandlisten] ERROR: error: exception cloning object in local.system.replset
E11000 duplicate key error index: local.system.replset.$_id_ …
atxdba
- 5,293
- 5
- 41
- 62
1
vote
1 answer
How to repair mongodb collection when index is corrupt?
Mongo version: 2.6 I think one or more of my MongoDB index is corrupt which is not letting me delete the corrupt collection or make a backup with mongodump
Below is the error i get when i try to execute drop
>db.notifications.drop()
"$err" : "no…
sherpaurgen
- 155
- 1
- 8
1
vote
1 answer
Could we recover Mongo records from the data files only without namespace files?
I am missing a namespace file from the Mongo db path. I only have data files with number extensions (e.g. report.4,report.5). Is there any way to recover the mongodb dump from the data files?
Bimal Tamang
- 11
- 1
1
vote
1 answer
mongodb compact does nothing - no entry in mongodb.log and nothing in db.currentOp()
We have space problems. The actual data size is only 5 GB, but disk size is 15 GB because of deleted documents. MongoDB (3.0.6) runs in docker container where we can't extend volume.
# tail -f mongod.log
2016-04-26T14:43:59.631+0000 I STORAGE …
Sybil
- 2,578
- 6
- 34
- 61
1
vote
2 answers
MongoDB document delete and fragmentation
I've a MongoDB collection that works like a queue: new documents are insert and old documents (after 60days) are removed. I can see a rapid grown of the datafile size, too rapid. I can be reasonable because we remove old data after 60 days, but I…
Andrea Girardi
- 143
- 1
- 7
1
vote
1 answer
Why does MongoDB extend FileSize if it is already 5x larger than DataSize
I recently had to assign more diskspace to my MongoDB 2.4.8 instance.
This instance continually receives transactions, makes some updates and then deletes them after 3 months. I would therefore expect that the disk usage was relatively constant.
The…
Karl Ivar Dahl
- 121
- 3
0
votes
1 answer
Mongo repairDatabase procedure
I need to run a repairDatabase in mongo in order to reclaim some os disk space. Can anyone provide feedback on the following procedure: let me know if its correct, if I'm missing anything, if the steps are in order, etc.
The setup is a…
user2694306
- 121
- 1
- 9