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] snapshot - backup for xen vm's

To: Xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] snapshot - backup for xen vm's
From: "Fajar A. Nugraha" <fajar@xxxxxxxxxxxxx>
Date: Fri, 25 May 2007 09:19:47 +0700
Delivery-date: Thu, 24 May 2007 19:18:21 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <46561D8A.1010208@xxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <A5CDEDEDBFC9C14487B8EAE8BA0EF69FB616B9@xxxxxxxxxxxxxxxxxxxxxxxx> <465502AF.6030602@xxxxxxxxxxxxx> <46561D8A.1010208@xxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.0 (X11/20070326)
Nico Kadel-Garcia wrote:
> Fajar A. Nugraha wrote:
>> it-news (Josef Lahmer) wrote:
>>  
>>> is there a way to make a lvm-snapshot of an running xen-vm to
>>> implement a function like "snapshot-backup"?
>>>
[snip]
>>
>> If you :
>> - use an LV (NOT files) on dom0 as storage for domU's block device
>> - use partitions on domU (NOT LVM)
>>
>> Then both link are applicable right away
[snip]
> Unfortunately, that piece of over-hyped installatiion obscurity known
> as libvirt does not allow you options to do this, and mandates the use
> of pygrub. This means that you must have a /dev/xdva device, and grub
> itself only works if you have a disk, not if you only have partitions.
pygrub works perfectly with partition-only setup (at least on RHEL5).
You could take a virt-manager-based installation, copy the files to
partition-only-domU setup, modify grub.conf and fstab, and have a
working system.

I know this seems like an extra unnecessary step (install-copy-modify
instead of just install). Which is why my prefered method is to create a
template (in tar.gz, with some host-specific stuff like ssh host key
removed), so the next "installation" can simply be a tar xvfz.

>  It's also very, very helpful to have enough disk in the partiton to
> mirror the *whole* RedHat or Fedora installation directory. 
I'm not sure what you mean here. I'd prefer to have a local copy of yum
repository (including RH installation directory). It's on local network,
accessed via http, but it doesn't have to be on dom0. That way it scales
well if you have lots of dom0s.

Regards,

Fajar

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