[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-API] How to do incremental VM backup in remote server?


  • To: xen-api <xen-api@xxxxxxxxxxxxx>
  • From: "Tianpeng Zhang" <yunshandev@xxxxxxxxx>
  • Date: Tue, 8 Jan 2013 18:24:48 +0800
  • Delivery-date: Tue, 08 Jan 2013 10:24:37 +0000
  • List-id: User and development list for XCP and XAPI <xen-api.lists.xen.org>

Hi All,
 
I'd like to backup VMs in active server to other backup server in case of the active server failure suddenly. Export the VM to a .xva file and import it backup server works, but it takes too much time when VDI is quite large. Following is the solution I am trying to do:
 
1. export VM's metadata file to backup server.
2. copy the related VHDs of the VM to backup server.
3. periodically do VM snapshot in active server and copy the snapshot to peer node. (snapshot file is much smaller, and easy for incremental backup)
4. when active server failure, restore the VM by metadata file and VHDs.
 
Without snapshot, we can import VM successfully by metadata and VHD from backup server(do some change in metadata file). But vm-import can't restore correctly if I copied snapshot VHDs to backup server.
 
[root@xcp102 ~]# xe vm-import filename=/root/centos1-snap.meta sr-uuid=54394f58-d649-9e4e-8f75-33d369804a0e 
The VM could not be imported.
msg: INTERNAL_ERROR: [ Tar.Header.End_of_stream ]
[root@xcp102 ~]# 
 
Can someone give some help on this? I am not sure if this is a proper way for incremental backup.
 
Thanks,
Tianpeng
 
_______________________________________________
Xen-api mailing list
Xen-api@xxxxxxxxxxxxx
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.