[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] Problem getting lvm to work


  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • From: "Robin Ericsson" <lobbin@xxxxxxxxx>
  • Date: Sun, 10 Jun 2007 09:37:35 +0200
  • Delivery-date: Sun, 10 Jun 2007 00:35:48 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=GZbVzgcfY+/+XobFsnAH8lKJw0aV+aQ41gYyJqBerskisuzpK9zXtQt4qfjH/tCHw9ohrohMTPjQObVNksUPbslz9+0rRzVKdQGwy22Ww5z8r3OPPOO5v/0G7rmJvCxGIvNDqAIp4v/fTSEkE8TsAiIdY3qUv5GclpNPQhqaJIc=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.