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] Howto made LVM2 snapshots of my whole HVM domU disk, not

To: "'xen-users' (xen-users@xxxxxxxxxxxxxxxxxxx)" <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-users] Howto made LVM2 snapshots of my whole HVM domU disk, not per partition.
From: Nathan Eisenberg <nathan@xxxxxxxxxxxxxxxx>
Date: Wed, 17 Sep 2008 01:50:00 -0700
Delivery-date: Wed, 17 Sep 2008 01:50:54 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <6b7f6eb0809161514x86c4367u44d0fb409cd44529@xxxxxxxxxxxxxx>
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>
Organization: Atlas Networks, LLC.
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx

Glad to hear you got this solved.

 

I’m curious, though.  Why pause the guest domain before creating a snapshot?  This doesn’t make the snapshot any more consistent…

 

Thank you,

Nathan Eisenberg

Sr. Systems Administrator

Atlas Networks, LLC.

 

From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx [mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Thiago Camargo Martins Cordeiro
Sent: Tuesday, September 16, 2008 3:15 PM
To: xen-users
Subject: [Xen-users] Howto made LVM2 snapshots of my whole HVM domU disk, not per partition.

 

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>