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] Problem getting lvm to work

To: "Robin Ericsson" <lobbin@xxxxxxxxx>
Subject: RE: [Xen-users] Problem getting lvm to work
From: "Schober Walter" <Walter.Schober@xxxxxxxxx>
Date: Sun, 10 Jun 2007 09:41:20 +0200
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Sun, 10 Jun 2007 00:38:56 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcerMk8oT3V8Ga8kRYS9rDsfxp8AYQAAFeYw
Thread-topic: [Xen-users] Problem getting lvm to work
Have you changed the /etc/fstab on the DomU to mount the / at
/dev/xvda1? 

-----Original Message-----
From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
[mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Robin
Ericsson
Sent: Sunday, June 10, 2007 9:38 AM
To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Problem getting lvm to work

Hi,

I have problems getting lvm to work on my domU. The dom0 is a CentOS 5
installed on lvm. I've added two extra lv, one for root and one for
swap.

[root@surr log]# lvscan
  ACTIVE            '/dev/VolGroup00/dom0vol' [3.91 GB] inherit
  ACTIVE            '/dev/VolGroup00/dom0swap' [1.94 GB] inherit
  ACTIVE            '/dev/VolGroup00/masterroot' [8.00 GB] inherit
  ACTIVE            '/dev/VolGroup00/masterswap' [512.00 MB] inherit

Then I installed a domU CentOS on a diskimage, exported the masterroot
lv to the domU, copied the domU / into the masterroot lv.

I then try to boot a new domU using the but it just stops after
mounting the root filesystem.

My config looks like this:
root@surr log]# cat /etc/xen/master
kernel = "/boot/vmlinuz-2.6.18-8.1.4.el5xen"
ramdisk = "/boot/initrd-2.6.18-8.1.4.el5xen.img"
name = "master"
memory = "128"
disk = [ 'phy:VolGroup00/masterroot,xvda1,w',
'phy:VolGroup00/masterswap,xvda2,w' ]
root = "/dev/xvda1 ro"
vif = [ 'bridge=xenbr1, vifname=vif_master', ]
vcpus=1
on_reboot = 'destroy'
on_crash = 'destroy'

The last messages from the bootup is:
Loading dm-mod.ko module
device-mapper: ioctl: 4.11.0-ioctl (2006-09-14) initialised:
dm-devel@xxxxxxxxxx
Loading dm-mirror.ko module
Loading dm-zero.ko module
Loading dm-snapshot.ko module
Making device-mapper control node
device-mapper: table: 253:0: mirror: Device lookup failure
device-mapper: ioctl: error adding target to table
device-mapper: reload ioctl failed: No such device or address
Scanning logical volumes
  Reading all physical volumes.  This may take a while...
  No volume groups found
Activating logical volumes
  Volume group "VolGroup00" not found
Creating root device.
Mounting root filesystem.

and then it just stops.

I should probably add that I'm installed dom0 a software raid which is
mapped to 253:0. The VolGroup00 is mapped to start at 253:4 and
masterroot is 253:5 and swap 253:6.

-- 
        regards,
        Robin

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

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