Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-23-2009, 07:24 AM   #1
LQ Newbie
Registered: Mar 2009
Posts: 26

Rep: Reputation: 15
Migration of Xen


I'm having debian etch server,in which i'm running xen machines using LVM based.

Now i'm provided with debian Lenny server. what i need to do is, i want to migrate all xen domains from debian etch server to debian Lenny. Live migration is not needed,even i'm happy if it is possible to take the backup of the domain and start over there(Lenny server).

I dono how to backup the xen domain and how the images are, please help me in this migration operation.

Thanks in Advance!
Old 04-23-2009, 07:39 AM   #2
Senior Member
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
The images should be stored where you declared them to be stored. I use CentOS so might be some differences but the image configuration files should be stored at /etc/xen/ and in them you can find out where the images are stored by looking at the disk value, it won't be the only thing on the line but I assume you should be able to figure it out from what appears their.
Old 04-28-2009, 05:36 AM   #3
LQ Newbie
Registered: Mar 2009
Posts: 26

Original Poster
Rep: Reputation: 15
Thnaks for ur reply.

my /etc/xen/xenmachine.cfg file looks like this

# Disk device(s).
root = '/dev/xvda2 ro'
disk = [
my VM's are running under the LVM's.

Can u pl tell how to backup the machine and restore the same in different machine.

Thanks in Advance!
Old 04-29-2009, 04:25 AM   #4
Registered: Oct 2003
Location: UnitedKingdom
Distribution: Debian Lenny
Posts: 351

Rep: Reputation: 47
you are using lvm on local machine.
You can migrate the disks from the machine and put it in the new machine
do a vgchange -a y to get the LVM enabled and use the same config file.
The Xen is transparent to the underlying LVM partitions.

if you want to backup and restore ... you have to dump the whole of the LVM partition
using dd or similar command and create the partition again in a new machine (same size or more)
dump back the backup and do all extend operations - check validity of PVs VGs and LVs and
enable then by vgchange -> if this is what you meant by backup up and restore from one machine to


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
'connection reset by peer' on xen migration harsshal Linux - Software 0 04-13-2009 01:53 PM
XEN migration issue using GFS2 fft9qh Linux - Enterprise 0 11-07-2008 05:29 AM
SAN Setup for migration of Xen Domains dmpatra Red Hat 0 07-10-2007 04:45 PM
LXer: Managing Xen With Xen-Tools, Xen-Shell, And Argo LXer Syndicated Linux News 0 10-22-2006 12:33 AM
LXer: Live migration of Xen domains LXer Syndicated Linux News 0 07-25-2006 09:54 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:49 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration