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 LVM LIVE- BACKUP

To: W D <ditwal001@xxxxxxxxxxx>
Subject: Re: [Xen-users] XEN LVM LIVE- BACKUP
From: Thomas Halinka <lists@xxxxxxxxx>
Date: Mon, 25 Oct 2010 16:33:02 +0200
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 25 Oct 2010 07:36:15 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <COL120-W554F07884058193CBFF598FD410@xxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <COL120-W554F07884058193CBFF598FD410@xxxxxxx>
Reply-to: lists@xxxxxxxxx
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hi WD,

Am Montag, den 25.10.2010, 15:45 +0200 schrieb W D:
> hi folks,
>  
> can anyone tell me how to make a xen 4.0.1 backup (offline or live) to
> another host over the network? i use xen 4.0.1 on squeeze with lvm for
> guest systems.

1) netcat-Method 

On Target-Host:

lvcreate -L40G -n Clone-of-VM $YOURVG
nc -l -p 9000 | dd of=/dev/$YOURVG/Clone-of-VM

On Source-Host - Online Variant:
lvcreate -L 2G -s -n SNAPSHOT /dev/$YOURVG/VM
dd if=/dev/$YOURVG/VM | nc $TARGET-Host 9000

2) SSH-Method

On Target-Host:
lvcreate -L40G -n Clone-of-VM $YOURVG


On Source-Host - Online Variant:
lvcreate -L 2G -s -n SNAPSHOT /dev/$YOURVG/VM
dd if=/dev/$YOURVG/VM | ssh root@$TARGET-Host "dd
of=/dev/$YOURVG/Clone-of-VM"


Offline is the same just without snapshotting and shutting down your VM.
Offline should be the more secure method incase of Buffer-Caches,
Databases, etc... Think of the consistency of your FS...



>  
> thx a lot :-) 
> walter

have phun,

thomas

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



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

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