The disk space is not released after mongodb deletes the set.

Source: Internet
Author: User
After mongodb deletes a set, the disk space is not released. After mongodb deletes the set, the disk space is not released. It can be released only after db. repairDatabase () is used for restoration. However, if an abnormal mongodb instance fails during the restoration process and cannot be started upon restart, You must fix the issue first. mongod -- repair -- dbpat can be used.

After mongodb deletes a set, the disk space is not released. After mongodb deletes the set, the disk space is not released. It can be released only after db. repairDatabase () is used for restoration. However, if an abnormal mongodb instance fails during the restoration process and cannot be started upon restart, You must fix the issue first./mongod -- repair -- dbpat can be used.


The disk space is not released after mongodb deletes the set.

After mongodb deletes a set, the disk space is not released. It can be released only when db. repairDatabase () is used for restoration.

However, if abnormal mongodb crashes during the repair process,

It cannot be started when it is started again. It must be repaired first,

You can use./mongod -- repair -- dbpath =/data/mongo/www.2cto.com

If you place the database separately in a folder and specify dbpath

It can point to the database to be repaired. It may take a long time to fix it,

When using db. repairDatabase () for restoration, you must stop reading and writing,

Mongodb must have a backup server. Otherwise, never use it as needed.

Db. repairDatabase () to fix the database. Remember.

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.