title: LVM snapshot of mounted filesystem
body: <p>I'd like to programmatically make a snapshot of a live filesystem in Linux, preferably using LVM. I'd like not to unmount it because I've got lots of files opened (my most common scenario is that I've got a busy desktop with lots of programs).</p>
  
  <p>I understand that because of kernel buffers and general filesystem activity, data on disk might be in some more-or-less undefined state.</p>
  
  <p>Is there any way to "atomically" unmount an FS, make an LVM snapshot and mount it back? It will be ok if the OS will block all activity for few seconds to do this task. Or maybe some kind of atomic "sync+snapshot"? Kernel call?</p>
  
  <p>I don't know if it is even possible...</p>