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.