WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] Backup solution

Artur Linhart wrote:
> OK, but - if You create the LVM snapshot volume and make the backup of it,
> You assume the OS running in VM has written everything correctly to the
> logical volume and the logical volume is in consistent state. 
>   
[snip]
> But this assumption seems to be dangerous for me, especially by Windows DomU
> - how can You be sure, the OS hdd driver has written everything to the
> logical volume before You create the snapshot volume?
>
>   

In general, you don't.

However, like I said earlier, for production system you'd generally
design a system that
MUST be able to survive a power failure/hard reboot anyway. Part of
doing this is ensuring that applications ALWAYS flush disk cache (with
fsync, etc.) on every write (to transaction logs, datafiles, etc).
Oracle AFAIK does this by default, MySQL can be setup to do so.

As for "the logical volume is in consistent state", when snapshots are
mounted there's an automated journal replay (if you use journaling
filesystem), meaning it should always be in consistent state.

I believe it basically comes down to this : if your domU can survive a
power failure/hard reboot, it should be able to use LVM snapshots for
backup.

As others have pointed, this is not the only available backup solution.
You should choose one that fits your need best.

Regards,

Fajar

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>