[linux-lvm] Snapshots and mmaped files.

Dan Stromberg strombrg at dcs.nac.uci.edu
Wed Apr 20 21:36:19 UTC 2005


If lvm2 snapshots are like most snapshots, then they aren't a panacea -
they only decrease the window during which your database must be
quiescent.

EG, with snapshotting:

1) Shut down database
2) bifurcate off a snapshot
3) Start up database
4) Do backup against snapshot
5) Eliminate snapshot


EG without snapshotting:

1) Shut down database
2) Do backup
3) Start up database


The first case has more steps, but it also has a lot shorter time during
which your database is inactive.

On Tue, 2005-04-19 at 10:08 -0700, David Brown wrote:
> I'm using lvm2 snapshots to do backups of several machines.  (lvm2  
> 2.00.33, device-mapper 1.01.00,
> ftp://sources.redhat.com/pub/dm/patches/2.6-unstable/2.6.9/2.6.9-udm1.tar.bz2  
> minus patch 13)  (I've tried some newer patches, without success, but  
> that'll be a separate mail).
> 
> The problem shows up with files that contains Berkeley databases.  These  
> files seem to be modified on both the original and the snapshot.  They  
> show up in my 'var' partition with imapd, and exim, and anything else that  
> has a berkeley database opened, and modifies the file after the snapshot  
> is taken.
> 
> The mtime of the file is not modified, only the contents.  I suspect that  
> if one side grew, then the size change would not be affected.
> 
> Thanks,
> David Brown
> 
> _______________________________________________
> linux-lvm mailing list
> linux-lvm at redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/linux-lvm/attachments/20050420/aa646a0a/attachment.sig>


More information about the linux-lvm mailing list