|
|
|
|
|
|
|
|
|
|
xen-users
[Xen-users] Howto made LVM2 snapshots of my whole HVM domU disk, not per
Hi!
In my dom0, I have two logical volumes for my virtualized Windows 2003 Servers, each of with it's your own partitions, let's see:
I have this lvm volume "/dev/mapper/HyperVG01-windows01-disk1" is "phy:/dev/mapper/HyperVG01-windows01-disk1,hda,w" and
"/dev/mapper/HyperVG01-windows01-disk2" is "phy:/dev/mapper/HyperVG01-windows01-disk2,hdb,w" in my /etc/xen/windows01-dm.
So I have Windows working in a new HVM stubdomain. But how can I made a entire backup of my disks, including my Windows boot loader and move my Windows to another Hypervisor?
I have tried: 1) xm shutdown windows01; 2) dd if=/dev/mapper/HyperVG01-windows01-disk1 of=/var/backups/windows01-disk1.dd 2) dd if=/dev/mapper/HyperVG01-windows01-disk2 of=/var/backups/windows01-disk2.dd
3) move windows01-disk1.dd and windows01-disk2 to another Hypervisor and do inverse dd; 4) xm create windows01-stubdom on the new Hypervisor;
This sometimes works, sometimes not! Every time I do this, my Windows boot's ok but my hdb (windows01-disk2) always came corrupted... I don't know why one volume wokrs and other don't...
I have the same size for HyperVG01-windows01-diskX on both dom0s...
I do NOT want to use kpartx or ntfs-3g from my dom0 to read NTFS from Linux. I want a backup of whole disk.
Can I do this with snapshots:
1) "xm pause windows01" or "xm shutdown windows01"; 2) lvcreate -s windows01-disk1-snapshot /dev/mapper/HyperVG01-windows01-disk1 3) "xm unpause windows01" or "xm create /etc/xen/windows01-stubdom";
4) Made a backup using my snapshot. ?
Next time when I restore from snapshot Windows will work without erros?
Can I take a "disk" snapshot of running HVM (With Windows guest) while it's still alive?
Chears, Thiago
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
|
|
|
|
|