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
1 Answer 1
Use the --out/-o parameter to indicate a directory on a filesystem where you have enough room.
answered Jun 29, 2018 at 8:28
-
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 ???Irfi– Irfi2018年06月29日 09:57:35 +00:00Commented 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?Gerard H. Pille– Gerard H. Pille2018年06月29日 10:15:07 +00:00Commented 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% ??Irfi– Irfi2018年06月29日 11:30:23 +00:00Commented 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%".Gerard H. Pille– Gerard H. Pille2018年06月29日 11:36:06 +00:00Commented Jun 29, 2018 at 11:36
-
Perhaps "dump" is a symbolic link to "/" ?Gerard H. Pille– Gerard H. Pille2018年06月29日 11:37:40 +00:00Commented Jun 29, 2018 at 11:37
lang-sql