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

Re: [Xen-users] XEN LVM LIVE- BACKUP



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


 


Rackspace

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