<div dir="ltr">I love this question.  I always thought the only way to guarantee a consistent snap of a block was to unmount it before taking the snap, mostly just cause of un-fsynced data in the page cache.  Any other answer would be very welcome.<div>
<br></div><div>-Clay</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Apr 25, 2013 at 5:14 AM, Tanstaafl <span dir="ltr"><<a href="mailto:tanstaafl@libertytrek.org" target="_blank">tanstaafl@libertytrek.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I'm totally new to LVM snapshots. I've have read the FAQ and docs and searched the list archives and can't find an answer to my question...<br>
<br>
I know that you have to quiesce SQL databases using their own native tools if you want to have a consistent snapshot of the raw db files, but what about other programs like postfix or dovecot that are constantly (on a busy server) writing to disk? Do you need to stop these, take the snapshot, then restart them? Or will the filesystem itself handle this (similar to how VSS works on windows)?<br>

<br>
I'm fairly certain the answer is no, I don't have to worry about these kinds of programs, only SQL databases.<br>
<br>
I engage a script that simply performs a native dump of my databases immediately preceding the snapshot (my db's are very small and the dumps only take a few seconds, and this just seems much simpler to me) and places these files into a sql_dumps directory on the filesystem that will be snapshotted so these will be included in my backups, so am not worried about them being in a consistent state.<br>

<br>
Thanks in advance...<br>
<br>
Charles<br>
<br>
______________________________<u></u>_________________<br>
linux-lvm mailing list<br>
<a href="mailto:linux-lvm@redhat.com" target="_blank">linux-lvm@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/linux-lvm" target="_blank">https://www.redhat.com/<u></u>mailman/listinfo/linux-lvm</a><br>
read the LVM HOW-TO at <a href="http://tldp.org/HOWTO/LVM-HOWTO/" target="_blank">http://tldp.org/HOWTO/LVM-<u></u>HOWTO/</a><br>
</blockquote></div><br></div>