Thiago Camargo Martins Cordeiro
2008-Sep-16 22:14 UTC
[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@lists.xensource.com http://lists.xensource.com/xen-users
Németh Tamás
2008-Sep-16 23:17 UTC
Re: [Xen-users] Howto made LVM2 snapshots of my whole HVM domU disk, not per partition.
2008. 09. 16, kedd keltezéssel 20.00-kor Thiago Camargo Martins Cordeiro ezt írta:> This Windows GPL PV drivers are still beta, they works with new > Xen-3.3.0 ?I think that version is beta, but you may find a newer version. I don''t know if it works on xen 3.3.0> I''m allways do a safe Windows shutdown via Windows menus before taking > a snapshot, just to be clearified... :) > > But even with Windows guest down, my steps don''t work when I try to > restore on another hypervisor... > > I will try Ghost to move my Windows... If I can''t do it with > lvm/snapshots and dd. > > If you have a better idea, I hear you!I really have no idea why it doesn'' work after a clean shutdown. cheers Tamas _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Thiago Camargo Martins Cordeiro
2008-Sep-17 05:24 UTC
Re: [Xen-users] Howto made LVM2 snapshots of my whole HVM domU disk, not per partition.
Hi, After start from zero, dd works 100% and I move my virtualized Windows to another Hypervisor! Thank you! Best regards, Thiago 2008/9/16 Németh Tamás <nice@titanic.nyme.hu>> 2008. 09. 16, kedd keltezéssel 20.00-kor Thiago Camargo Martins Cordeiro > ezt írta: > > This Windows GPL PV drivers are still beta, they works with new > > Xen-3.3.0 ? > > I think that version is beta, but you may find a newer version. I don''t > know if it works on xen 3.3.0 > > > I''m allways do a safe Windows shutdown via Windows menus before taking > > a snapshot, just to be clearified... :) > > > > But even with Windows guest down, my steps don''t work when I try to > > restore on another hypervisor... > > > > I will try Ghost to move my Windows... If I can''t do it with > > lvm/snapshots and dd. > > > > If you have a better idea, I hear you! > > I really have no idea why it doesn'' work after a clean shutdown. > > cheers > > Tamas > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Nathan Eisenberg
2008-Sep-17 08:50 UTC
RE: [Xen-users] Howto made LVM2 snapshots of my whole HVM domU disk, not per partition.
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@lists.xensource.com [mailto:xen-users-bounces@lists.xensource.com] 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@lists.xensource.com http://lists.xensource.com/xen-users
Javier Guerra
2008-Sep-17 13:59 UTC
Re: [Xen-users] Howto made LVM2 snapshots of my whole HVM domU disk, not per partition.
On Wed, Sep 17, 2008 at 3:50 AM, Nathan Eisenberg <nathan@atlasnetworks.us> wrote:> I'm curious, though. Why pause the guest domain before creating a > snapshot? This doesn't make the snapshot any more consistent…if there are more than one block device, you have to pause to get them all at the same 'instant' -- Javier _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users