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@redhat.com 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@lists.xensource.com http://lists.xensource.com/xen-users
Have you changed the /etc/fstab on the DomU to mount the / at /dev/xvda1? -----Original Message----- From: xen-users-bounces@lists.xensource.com [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of Robin Ericsson Sent: Sunday, June 10, 2007 9:38 AM To: xen-users@lists.xensource.com 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@redhat.com 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@lists.xensource.com http://lists.xensource.com/xen-users _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On 6/10/07, Schober Walter <Walter.Schober@neotel.at> wrote:> Have you changed the /etc/fstab on the DomU to mount the / at > /dev/xvda1?Yes, I''ve already done that. The only thing I find in the xend logs is: [2007-06-10 11:07:14 xend 3831] DEBUG (blkif:24) exception looking up device number for xvda1: [Errno 2] No such file or directory: ''/dev/xvda1'' But I have no idea if that makes a difference or not. -- regards, Robin _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Robin Ericsson writes:> The only thing I find in the xend logs is: > [2007-06-10 11:07:14 xend 3831] DEBUG (blkif:24) exception looking up > device number for xvda1: [Errno 2] No such file or directory: > ''/dev/xvda1''I''m having the same problem. Do i have to use MAKEDEV to make this node? Steve -- Steven J. Backus Computer Specialist University of Utah E-Mail: steven.backus@utah.edu Biomedical Informatics Alternate: backus@math.utah.edu 391 Chipeta Way -- Suite D150 Office: 801.587.9308 Salt Lake City, UT 84108-1266 http://www.math.utah.edu/~backus _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On 6/10/07, Robin Ericsson <lobbin@gmail.com> wrote:> 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.Ok, problem solved. It seems CentOS is generating the initrd on the fly. I took a look at the initrc on dom0 and realized it was a lot bigger than the one from the working domU (which boots via pygrub).> kernel = "/boot/vmlinuz-2.6.18-8.1.4.el5xen" > ramdisk = "/boot/initrd-2.6.18-8.1.4.el5xen.img"Copying the domU initrd to dom0 and boot from that works like a charm. However, I''m getting other errors now which are probably the cause on how I do the copying. /sbin/hwclock: error while loading shared libraries: libaudit.so.0: cannot open shared object file: Permission denied /sbin/pam_console_apply: error while loading shared libraries: libpam.so.0: cannot open shared object file: Permission denied and a few more like that. Any ideas? -- regards, Robin _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On 6/10/07, Robin Ericsson <lobbin@gmail.com> wrote:> Copying the domU initrd to dom0 and boot from that works like a charm. > However, I''m getting other errors now which are probably the cause on > how I do the copying. > > /sbin/hwclock: error while loading shared libraries: libaudit.so.0: > cannot open shared object file: Permission denied > /sbin/pam_console_apply: error while loading shared libraries: > libpam.so.0: cannot open shared object file: Permission deniedOk, to keep solving my own problems :) this is related to selinux. Disabling selinux on boot gives me a working os without any problems. Now, let''s fix the selinux part as well. Any ideas? -- regards, Robin _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On 6/10/07, Robin Ericsson <lobbin@gmail.com> wrote:> Ok, to keep solving my own problems :) this is related to selinux. > Disabling selinux on boot gives me a working os without any problems. > Now, let''s fix the selinux part as well. > > Any ideas?To keep my monolog going :) Copying selinux-files with cp = bad Copying selinux-files with star = good. Everything works now, thanks for your help getting me on the right track Schober. -- regards, Robin _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users