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

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

To: xen-users <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-users] Howto made LVM2 snapshots of my whole HVM domU disk, not per partition.
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
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=epqsS2GjBAtUTRjqM4/maNW6eIsXLP4gk2++Hecjm1o=; b=jp8u0zvU6yfoTyI6OKEb2om9RgbLIpYYE3BGHmvIdxxBYpUymkHTN+esT63NMbTW/F rCLxtpDPDXVYYPBenn4sqvSAnPBMI6JwMtYKkB5NvLCv/AVSYUkzl9imPNONcpsb8yG0 WvvTXb1784HGwdorvCthFkLr9KUTu2Cu1Xa14=
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=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
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
<Prev in Thread] Current Thread [Next in Thread>