1

We are trying to export 1.5TB database into mongodb. But its fail after 100gb and giving us below error. As we notice root mount point got 100% space. We are using below command:

mongodump -u admin -p xx_admin_db -d xx --host xx.xx.xx.xx --authenticationDatabase admin

2018年06月28日T12:20:30.687+0000 [........................] xx1.fact 14679565/468546715 (3.1%)
2018年06月28日T12:20:31.192+0000 [........................] xx1.fact 14680477/468546715 (3.1%)
2018年06月28日T12:20:31.195+0000 Failed: error writing to file: write dump/xx/xxx.bson: input/output error
asked Jun 29, 2018 at 8:21

1 Answer 1

0

Use the --out/-o parameter to indicate a directory on a filesystem where you have enough room.

answered Jun 29, 2018 at 8:28
6
  • relevant mount point have sufficient space but we dont know why our root mount points is going to 100% fill. Anything copying into "/" mount point from mongodump utility ??? Commented Jun 29, 2018 at 9:57
  • start the dump, while it is running, run "find / -xdev -mmin -5 -type f" (I hope mongodump does not create a file, and deletes it without closing). BTW, what do you consider the "relevant mount point"? What is $PWD when you run mongodump? Commented Jun 29, 2018 at 10:15
  • we moved into mount point with 2TB size and mongodump use this mount point but during backup why root "/" mount point filled 100% ?? Commented Jun 29, 2018 at 11:30
  • Maybe you're mistaken about the mount. You're not answering my questions. Can you add the output of "mount" to your question? If you execute the "find", you will have the answer to "why root mount point filled 100%". Commented Jun 29, 2018 at 11:36
  • Perhaps "dump" is a symbolic link to "/" ? Commented Jun 29, 2018 at 11:37

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.