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

[Xen-users] xen DomU guest backup and restore

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] xen DomU guest backup and restore
From: KC LO <kclo2000@xxxxxxxxx>
Date: Thu, 29 Apr 2010 02:40:38 +0800
Delivery-date: Wed, 28 Apr 2010 11:41:59 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=eEUXivKuZAJiU/SndoFDVrOTXa/8z0Dibrqki9HkD+c=; b=olJkCkMjreC6xoBVBtQQ9RoZogIr6lDN2J8ibvA9/qY1MvcgXb9KxxxAXNQJEMCRX6 IOiJ0tm/p9MkxrPZpQ4VD7MJkdyMHz9CFvejwCrbtMIvcDmpwwvqlxeiAvk7leATO+y0 wbRO3eDTL/yxHJ0X8n5NK3YOL4nOzjftg84I8=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=ov2mlcAb6C/8Z9b0ynJeYjiVwcaFc4dx86Vo6opJ7l7xApG8lRGMmOkSZ3rfIDUAJA 4K6Hr3kzAGDCGSAXrnjPsWaDv6aU/rRqLwN3DeRdTPlKMIxOlyGR0RGj4EooPXm9yZQb MHsmURwBt/DXjzVgGv6ENcNNUQqOQnfbVIhFE=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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
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
<Prev in Thread] Current Thread [Next in Thread>