Mongodb fills my hard disk....

368 views
Skip to first unread message

John gillow

unread,
Jun 25, 2011, 2:18:55 PM6/25/11
to mongod...@googlegroups.com
I have been using mongodb for a quite some time... But strange problem started today... I set up replica sets and the journal is set to true. The upon restarting the mongodb started feeling up mu hard disk with files in journal folder. It allocated files until my hard disk has only 4% of extra disk space... How to solve this??? It it a bug or my fault??

Dan Pasette

unread,
Jun 25, 2011, 3:16:55 PM6/25/11
to mongod...@googlegroups.com
Hi John,
If you set journal to true, mongod will pre-allocate files which it
uses to journal writes, but unless you have very high throughput there
shouldn't be more than 2 or 3 at a time and they're automatically
rotated out (deleted) after they
are no longer needed.  These files are 1GB each.  These files are
allocated in the /journal directory under your data directory
(/data/db) by default.  Check this directory to see how many files
have been allocated and the total size.

If you want to allocate smaller journal files, use the option --smallfiles.

See the doc for more details:
http://www.mongodb.org/display/DOCS/Journaling+Administration+Notes

On Sat, Jun 25, 2011 at 2:18 PM, John gillow <johng...@gmail.com> wrote:
>
> I have been using mongodb for a quite some time... But strange problem started today... I set up replica sets and the journal is set to true. The upon restarting the mongodb started feeling up mu hard disk with files in journal folder. It allocated files until my hard disk has only 4% of extra disk space... How to solve this??? It it a bug or my fault??
>

> --
> 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.
> For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.

John gillow

unread,
Jun 25, 2011, 3:25:08 PM6/25/11
to mongod...@googlegroups.com
There is no throughput on my database. I am in development phase right now so there are only about 100 read/write per day. There are 3 files in /journal directory. When I stop mongodb, the /journal suposed to become empty but it does not get empty... Is there any problem in my db??

John gillow

unread,
Jun 25, 2011, 3:26:31 PM6/25/11
to mongod...@googlegroups.com
ok read the documentation.. Those are prealloc files.... I need to expand my root partition..... Thanks anyway for link....
Reply all
Reply to author
Forward
0 new messages