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

[Xen-users] Re: 100% safe way to backup domU: (was Yet another backup)

On Thu, Jan 11, 2007 at 08:50:01PM +0000, Mark Williamson wrote:
> >  I forgot about the 'save' feature. If we have a consistent file system
> > that can be mounted and backed up, and if we add the ram separately, the we
> > have the entire state of the system. So I think the actual steps would be.
> >
> >  xm sync-and-save domU file
> >  take lvm snapshot
> >  xm restore file
> >  backup snapshot + file
> 
> Seems like it ought to work...
> 
> I don't think you actually need to sync in the guest if you're doing this, 
> though.  You'll have all the dirty buffers in the save image anyhow, so 
> flushing them to disk doesn't seem necessary.
> 
 
  If we don't sync, we won't be able to mount and backup. If we were backing up 
the entire image, then yes, it will work without syncing.

  xm save domU file
  backup entire image + file
  xm restore file

  But if we want to mount and take proper incremental backup, we need the 
filesystem to be consistent. Otherwise we will get very badly corrupted data.

  Thanks.



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