mongorestore size

52 views
Skip to first unread message

Martinus Martinus

unread,
Oct 29, 2012, 3:44:20 AM10/29/12
to mongod...@googlegroups.com
Hi,

I tried to restore my backup from mongodump into my new clusters using mongorestore. When I do show dbs from the mongos I got the size is not the same :

From original clusters :
admin (empty)
config (empty)
animal (empty)
animal2 (empty)
animal3 3.9521484384313226GB
animal4 0.203125GB
animal5 0.203125GB
animal6 0.203125GB
animal7 0.203125GB
test (empty)
animal8 19.8984375GB
animal9 0.203125GB

From new restore clusters :
config 0.046875GB
animal3 0.953125GB
animal4 0.078125GB
animal5 0.078125GB
animal6 0.078125GB
animal7 0.078125GB
animal8 2.90625GB
animal9 0.203125GB

Is this supposed to be normal?

Thanks.

Jenna deBoisblanc

unread,
Nov 1, 2012, 10:45:25 AM11/1/12
to mongodb-user
Hello Martinus,

Mongorestore inserts documents one at a time into new extents, so you
are essentially de-fragmenting your data files. It is not surprising
that the dbs on the restored cluster are smaller than the original
databases.

Martinus Martinus

unread,
Nov 1, 2012, 10:35:50 PM11/1/12
to mongod...@googlegroups.com
Hi Jenna,

Thank you for your explanations.

Best regards,

Martinus.

--
You received this message because you are subscribed to the Google
Groups "mongodb-user" group.
To post to this group, send email to mongod...@googlegroups.com
To unsubscribe from this group, send email to
mongodb-user...@googlegroups.com
See also the IRC channel -- freenode.net#mongodb

Reply all
Reply to author
Forward
0 new messages