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 DomU guest backup and restore

To: KC LO <kclo2000@xxxxxxxxx>
Subject: Re: [Xen-users] xen DomU guest backup and restore
From: Rubén Marrero <ruben@xxxxxxxx>
Date: Wed, 28 Apr 2010 15:07:00 -0400 (EDT)
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 28 Apr 2010 12:07:48 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1256884951.622.1272481544989.JavaMail.root@xxxxxxxxxxxxxxx>
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



From: "KC LO" <kclo2000@xxxxxxxxx>
To: xen-users@xxxxxxxxxxxxxxxxxxx
Sent: Wednesday, April 28, 2010 1:40:38 PM
Subject: [Xen-users] xen DomU guest backup and restore

Hi all,
 
I want to perform a schedule backup of my DomU guest VM. In case of the physical hardware failure, I want to restore the guest VM into another server with same config and DOM0 OS version.
 
My Dom0 OS is centOS 5.4 with Xen 3.4.2
I create my guest VM as par-virtualized and using LVM for storage like
/dev/VolGroup00/vm1 for VM1
/dev/VolGroup00/vm2 for VM2
 
From Guest, I create 3 partition under /dev/VolGroup00/vm1 like
/dev/sda1 /boot
/dev/sda2 /
/dev/sda3 swap
 
I use snapshot LVM to mount the partition /dev/VolGroup00/vm1 through kpartx with two tar files : boot.tar and root.tar
 
I copied these two files to another server and extract the tar file under the same OS and LVM size and use xen create to start the new guest OS.  However, it can not boot up at the error prompt that it can't mount the root filssystem
 
Mounting root filesystem.
mount: could not find filesystem '/dev/root'
Setting up other filesystems.
Setting up new root fs
setuproot: moving /dev failed: No such file or directory
no fstab.sys, mounting internal defaults
setuproot: error mounting /proc: No such file or directory
setuproot: error mounting /sys: No such file or directory
Switching to new root and running init.
unmounting old /dev
unmounting old /proc
unmounting old /sys
switchroot: mount failed: No such file or directory
Kernel panic - not syncing: Attempted to kill init!
Any idea?
 
What is the best practice for doing this schedule backup?

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





Try to check that the xen config files , in the "disk" section are the same. 

In particular, both copies shoudl have the save kind of device (xvd / sd). Also check the xend.log 

Hope it helps,
Rubén
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>