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] Xen backups using LVM Snapshots

To: Javier Guerra Giraldez <javier@xxxxxxxxxxx>
Subject: Re: [Xen-users] Xen backups using LVM Snapshots
From: Lists <lists@xxxxxxxxxxxxx>
Date: Fri, 17 Oct 2008 09:13:56 +0000 (UTC)
Cc: Mike Lovell <mike@xxxxxxxxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 17 Oct 2008 02:14:28 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <6434695.501224232078401.JavaMail.root@xxxxxxxxxxxxxxxxxx>
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
> It should not be too hard to test and get a definite answer.  I don't
> have access to my box right now but all we need to do I suspect, is
> create a snapshot.  Stop the DomU.  Point the cfg file to the snapshot
> and start the DomU.  If we get FS warnings, Javier is right...
> 
> --
> eco
> 
> _______________________________________________

I ran a very quick test... here is my result

DomU # while [ 1 -ne 2 ]; do echo `date` >> /root/test; done &

Dom0 # lvcreate -L +1G -s -n s_web.test.com-disk /dev/vm/web.test.com-disk

DomU - stopped script and shutdown system.

Dom0 - Edit cfg file
  replace
disk        = [
                  'phy:/dev/vm/web.test.com-swap,sda1,w',
                  'phy:/dev/vm/web.test.com-disk,sda2,w',
              ]

  with
disk        = [
                  'phy:/dev/vm/web.test.com-swap,sda1,w',
                  'phy:/dev/vm/s_web.test.com-disk,sda2,w',
              ]

DomU - Boot
[...]
Begin: Running /scripts/local-premount ...
Done.
EXT3-fs: INFO: recovery required on readonly filesystem.
EXT3-fs: write access will be enabled during recovery.
kjournald starting.  Commit interval 5 seconds
EXT3-fs: recovery complete.
EXT3-fs: mounted filesystem with ordered data mode.
[...]

Javier is right!

--
eco

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users