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] Xen Backup Method

Hi Thomas,

I call a script from cron, that has the lines;

xm pause domUa
xm pause domUb
xm pause domUc
.....
.....
.....
xm unpause domUa
xm unpause domUb
xm unpause domUc

Nothing fancy as I'm not artistic.

xm pause takes 1 arg so I suppose one could create a var that reads all the files in /var/lib/images, strips out the .img and assumes the domUs are named consistently with there corresponding img files and rums the pause command for every instance of a file name w/o needing to name them individually in a script. This would automate things to the next level and be very cool in large envs.

My client is fine with what I set up (for now).

- Brian




On Apr 7, 2009, at 2:25 PM, Thomas Jensen wrote:

I have a similar script but it does not perform the first step (pausing DomU) before running. Do you care to share the syntax of that step in your script?


Tom Jensen | President
Digital Toolbox

Quoting Brian Krusic <brian@xxxxxxxxxx>:

Hi Umut,

I cron a script running once every early morning that does;

1 - pause the domUs * optional, but state will be accurate if paused.
2 - create/recreate a snapshot of the volume where my dom0/domUs live. 3 - mount a separate drive and dump/restore the snapshot onto a separate drive.
4 - unmount the drive.
5 - send mail when all is done.

- Brian




On Apr 7, 2009, at 2:01 PM, Umut Arus wrote:

Hello,

I want to properly backup on virtual servers. Has anyone tried lvm backup with scripts or scheduled commands everyday? Could you shared with me? And should be guests and Dom0 shutoff state before snapshot?

Another one, which directories should backup other than /var/lib/ xen/ images?

thanks,

Javier Guerra wrote:

On Tue, Apr 7, 2009 at 1:46 PM, Kevin Fox <Kevin.Fox@xxxxxxx> wrote:

Has anyone tried using 2.6.29 file system freezing with lvm snapshotting
yet? That should solve the possible corrupt filesystem problem.

sounds promising.  but:

1: its done from 'inside' the VM, so it might allow better network
backup systems but not replace them.

2: it does nothing about complex applications with their own caches
and file structures: IOW, databases. if you get an 'in VM' snapshot capability, you still have to flush caches and suspend operations for
the snapshot.



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





----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.


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