2

It seems the journal files still sotred at /var/lib/mongodb/journal even I pointed the location to /workspace/datastore

How could I save journal files in other places Because the root disk is almose full.

    ls
    prealloc.0  prealloc.1  prealloc.2
    pwd 
    /var/lib/mongodb/journal



systemLog:
    destination: file
    path: "/var/log/mongodb/mongodb.log"
    quiet: false
    logAppend: true
net:
    port: 27017
    bindIp: 0.0.0.0

storage:
    dbPath: /workspace/datastore
    engine: wiredTiger
user3675188
  • 7,271
  • 11
  • 40
  • 76
  • This belongs on [dba.stackexhange.com](http://dba.stackexchange.com) which is where you go when you want to ask questions about database configuration. Also says so in the tag summary [tag:mongo]. StackOverflow is for programming based questions only. – Blakes Seven Mar 22 '16 at 02:33

1 Answers1

1

Quoting here

You can create a symbolic link to point the journal directory at a different file-system / block device.

More details is Mongodb Journal.

Another option is limiting the size of Journal file, here is one discussion

Is it safe to delete the journal file of mongodb?

Community
  • 1
  • 1
zangw
  • 43,869
  • 19
  • 177
  • 214