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] Re: export single partitions to xen 3.1.2 domU

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Re: export single partitions to xen 3.1.2 domU
From: Steven Timm <timm@xxxxxxxx>
Date: Wed, 22 Apr 2009 03:39:20 -0500 (CDT)
Delivery-date: Wed, 22 Apr 2009 01:40:02 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <Pine.LNX.4.64.0904212309340.26285@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>
References: <Pine.LNX.4.64.0904212309340.26285@xxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Just as a clarification, as I read the various manuals,
it seems that the key difference is that
the enterprise linux 5.2/xen 3.1.2 (labeled 3.0.3 as it comes from Redhat) is running libvirt, and my previous setup that I'm trying to
upgrade to that was not.

So does anyone know how to export a single partition to a
libvirt-enabled xen domU that's otherwise installed already, or
how to take a non-libvirt domU with 3 such partitions and turn it
into one that is\

Steve


On Tue, 21 Apr 2009, Steven Timm wrote:

I have some old xen instances which were installed under
Xen 3.1.0 with the following Disk configuration

disk = [ 'phy:LG0/LV11,sda1,w', 'phy:LG0/LV12,sda2,w','phy:LG0/LV13,sda3,w' ]

Each one of these is a single partition, with a single file system.

I am now trying to run redhat/centos/scientific linux 5.2 and convert
these old domU's over.

I run a lot of stuff on redhat/centos/scientific linux but
I have used the virt-manager to install all of them, and they are
all set up using the xvda type file system in which each exported
partition has got a partition table.
disk = [ "phy:/dev/LG0/LV0,xvda,w", "phy:/dev/LG0/LV16,xvdb,w" ]


Is there any way to mountt single partitions
under the new software, if so, how?

I tried to export the three partitions above as xvda,xvdb, xvdc
and change the fstab and the grub information in domU accordingly,
no luck

I also tried to just do things as before with sda1,sda2,sda3,
also no luck.

In all cases  I get this error

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!

---

I suppose I could move all existing file systems to new ones
of the new format but would really like to avoid that if I can.

Steve Timm


------------------------------------------------------------------
Steven C. Timm, Ph.D  (630) 840-8525
timm@xxxxxxxx  http://home.fnal.gov/~timm/
Fermilab Computing Division, Scientific Computing Facilities,
Grid Facilities Department, FermiGrid Services Group, Assistant Group Leader.


--
------------------------------------------------------------------
Steven C. Timm, Ph.D  (630) 840-8525
timm@xxxxxxxx  http://home.fnal.gov/~timm/
Fermilab Computing Division, Scientific Computing Facilities,
Grid Facilities Department, FermiGrid Services Group, Assistant Group Leader.

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