Hi, i have a doubt about mongodb backup using lvm snapshot.
1.Create Snapshot
lvcreate --size 100M --snapshot --name mdb-snap01 /dev/vg0/mongodb
2.Archive Snapshots
umount /dev/vg0/mdb-snap01
dd if=/dev/vg0/mdb-snap01 | tar -czf mdb-snap01.tar.gz
3.Restore Snapshot
lvcreate --size 1G --name mdb-new vg0
tar -xzf mdb-snap01.tar.gz | dd of=/dev/vg0/mdb-new
mount /dev/vg0/mdb-new /srv/mongodb
4.Remote Backup Storage
umount /dev/vg0/mdb-snap01
lvcreate --size 1G --name mdb-new vg0
mount /dev/vg0/mdb-new /srv/mongodb
there is not lock fsync operations necessary.
but when taking lvm snapshot, everything are writen to the Journal log ,but the data is stealing in the file system buffer or the OS buffer is that ok for we to recover
our data to a consistent point .(especially when the sln No.s of Journal log and Filesystem snapshot are not consistent)
looking forward for your answer.
thank you very much .