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

[Xen-users] Howto made LVM2 snapshots of my whole HVM domU disk, not per partition.


  • To: xen-users <xen-users@xxxxxxxxxxxxxxxxxxx>
  • From: "Thiago Camargo Martins Cordeiro" <thiagocmartinsc@xxxxxxxxx>
  • Date: Tue, 16 Sep 2008 19:14:55 -0300
  • Delivery-date: Tue, 16 Sep 2008 15:15:34 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=Fuw3eF9TBNIFMP7Nc7683ixz3vim0R3wsI5p+e2kid+Hm8fuk4/P1aCVXfmrD6RVWh jAOzFh0DT+Rh0zFuDFEHiAskjlnif+kvAAxJv9qYk3GxjvfWXvh9cXQl1oEEZemA+vT9 w0l2zuFDpWN2Grh9FJJvAiItO/gx8mdYNGb+U=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

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

 


Rackspace

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