Is it safe to delete oplog local.
* files from a MongoDB snapshot ? Does the fsyncLock()
commit oplog entries in DB files ?
I currently do a fsyncLock()
+ LVM snapshot of Mongo data. Then i mount the snapshot, and remove the oplog local.
* files before archiving the files to S3 or FTP (with Duplicity). I do that to reduce the size of archives to transfer to S3.
When i restore on a node on an empty replicaset, oplog files are recreated, and other nodes full resync from this new primary. But i am not sure if there could be missing data in the restore, due to it being in the previously deleted oplog and not written in DB files.