Solve the "internal problem resolution" method for 135 of the way that MongoDB is too large to drive space

Source: Internet
Author: User

The data cannot be deleted because the hard drive cannot be added. So the method of using mount to another machine (137) space. As follows:

1, 137 on Vim/etc/exports

Added:/mnt/data/mongodb 192.168.10.135 (Rw,no_root_squash)

Then: EXPORTFS-RV

2, Mount 137 of the space to the local,

Mount-t nfs-o RW 192.168.10.155:/mnt/data/mongodb/data/mongodb

3, Stop 135 MongoDB, Kill-2 PID

4, the original starting mode: Toolbox/services/toolbox-mongodb/bin/mongod--dbpath=/data/toolbox-mongodb/db/--fork--logpath=/data/ Toolbox-mongodb/mongo27017.log

Change to: Toolbox/services/toolbox-mongodb/bin/mongod--dbpath=/data/mongodb/db/--fork--logpath=/data/mongodb/db/ Mongo27018.log


In this way, the write data space for MongoDB has been transferred to 137.

5. End


Solve the "internal problem resolution" method for 135 of the way that MongoDB is too large to drive space

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.