All,
I have a SLES10 system with the following volume groups:
1) /dev/volgrplinux :
logvolroot (lv)
logvolswap (lv)
2) /dev/volgrpguest :
logvol1 (lv)
I want to use the logvol1 as a lvm - backed vbd.
$ xm create -c xmexample.lvm-vbd
....
......
xvda: Loading dm-mod
unknown partition table
device-mapper: 4.5.0-ioctl (2005-10-04) initialised: dm-devel@redhat.com
Loading dm-snapshot
Waiting for /dev/mapper/control to appear: ok
Loading jbd
Loading ext3
Unable to find volume group "logvolroot"
Waiting for device /dev/mapper/volgrplinux-logvolroot to appear: ........ not
found -- exiting to /bin/sh
$
Following is the configuration file:
---------start of config file------------------------------
# Kernel image file and (optional) ramdisk (initrd).
kernel = "/boot/vmlinuz-xenpae"
ramdisk = "/boot/initrd-xenpae"
# Initial memory allocation (in megabytes) for the new domain.
memory = 64
# A name for your domain. All domains must have different names.
name = "ExampleDomain1"
vif = [ '''' ]
disk = [ ''phy:volgrpguest/logvol1,volgrplinux/logvolroot,w'' ]
#dhcp="dhcp"
# Set netmask.
#netmask# Set default gateway.
#gateway# Set the hostname.
#hostname= "vm%d" % vmid
# Set root device.
#root = "/dev/hda1 ro"
root = "/dev/mapper/volgrplinux-logvolroot ro"
# Sets runlevel 4.
extra = "4"
----------------end of config file------------------------
$ ls -l /dev/mapper
lrwxrwxrwx 1 root root 16 nov 14 18:11 control -> ../device-mapper
brw------- 1 root root 253,2 nov 15 9:59 volgrpguest-logvol1
brw------- 1 root root 253,0 nov 14 18:11 volgrplinux-logvolroot
brw------- 1 root root 253,1 nov 14 18:11 volgrplinux-logvolswap
Is there something in the configuration that prevents the logvolroot from
being found?
Also, are there any additional modules that need to be modprobed (apart from
dm-mod and dm-snapshot) when a domU starts up?
Please suggest how to fix this.
Thanks,
Rajarshi
---------------------------------
Sponsored Link
Mortgage rates as low as 4.625% - $150,000 loan for $579 a month.
Intro-*Terms
_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users
Christopher G. Stach II
2006-Nov-15 07:58 UTC
Re: [Xen-users] Unable to mount LVM - backed VBD
rajarshi das wrote:> All, > > I have a SLES10 system with the following volume groups: > > 1) /dev/volgrplinux : > logvolroot (lv) > logvolswap (lv) > > 2) /dev/volgrpguest : > logvol1 (lv) > > I want to use the logvol1 as a lvm - backed vbd. > > $ xm create -c xmexample.lvm-vbd > .... > ...... > xvda: Loading dm-mod > unknown partition table > device-mapper: 4.5.0-ioctl (2005-10-04) initialised: dm-devel@redhat.com > <mailto:dm-devel@redhat.com> > Loading dm-snapshot > Waiting for /dev/mapper/control to appear: ok > Loading jbd > Loading ext3 > Unable to find volume group "logvolroot" > Waiting for device /dev/mapper/volgrplinux-logvolroot to appear: > ........ not found -- exiting to /bin/sh > $ > > > Following is the configuration file: > ---------start of config file------------------------------ > # Kernel image file and (optional) ramdisk (initrd). > kernel = "/boot/vmlinuz-xenpae" > ramdisk = "/boot/initrd-xenpae" > > # Initial memory allocation (in megabytes) for the new domain. > memory = 64 > > # A name for your domain. All domains must have different names. > name = "ExampleDomain1" > > vif = [ '''' ] > > disk = [ ''phy:volgrpguest/logvol1,volgrplinux/logvolroot,w'' ] > > #dhcp="dhcp" > # Set netmask. > #netmask> # Set default gateway. > #gateway> # Set the hostname. > #hostname= "vm%d" % vmid > > # Set root device. > #root = "/dev/hda1 ro" > root = "/dev/mapper/volgrplinux-logvolroot ro" > > # Sets runlevel 4. > extra = "4" > ----------------end of config file------------------------ > > $ ls -l /dev/mapper > > lrwxrwxrwx 1 root root 16 nov 14 18:11 control -> ../device-mapper > brw------- 1 root root 253,2 nov 15 9:59 volgrpguest-logvol1 > brw------- 1 root root 253,0 nov 14 18:11 volgrplinux-logvolroot > brw------- 1 root root 253,1 nov 14 18:11 volgrplinux-logvolswap > > > > > Is there something in the configuration that prevents the logvolroot > from being found? > > Also, are there any additional modules that need to be modprobed (apart > from dm-mod and dm-snapshot) when a domU starts up? > > Please suggest how to fix this. > > Thanks, > Rajarshi >Your disk and root lines are bad, to start with. -- Christopher G. Stach II _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
I commented the ''disk'' entry, and set the ''root'' entry to: root="/dev/mapper/volgrpguest-logvol1 ro" Now, I get the error ''Unable to find volume group logvol1''. why does xen think that the volume group is logvol1 (which is actually the logical volume inside the volume group volgrpguest)? Appreciate any suggestions. - Rajarshi "Christopher G. Stach II" <cgs@ldsys.net> wrote: rajarshi das wrote:> All, > > I have a SLES10 system with the following volume groups: > > 1) /dev/volgrplinux : > logvolroot (lv) > logvolswap (lv) > > 2) /dev/volgrpguest : > logvol1 (lv) > > I want to use the logvol1 as a lvm - backed vbd. > > $ xm create -c xmexample.lvm-vbd > .... > ...... > xvda: Loading dm-mod > unknown partition table > device-mapper: 4.5.0-ioctl (2005-10-04) initialised: dm-devel@redhat.com > > Loading dm-snapshot > Waiting for /dev/mapper/control to appear: ok > Loading jbd > Loading ext3 > Unable to find volume group "logvolroot" > Waiting for device /dev/mapper/volgrplinux-logvolroot to appear: > ........ not found -- exiting to /bin/sh > $ > > > Following is the configuration file: > ---------start of config file------------------------------ > # Kernel image file and (optional) ramdisk (initrd). > kernel = "/boot/vmlinuz-xenpae" > ramdisk = "/boot/initrd-xenpae" > > # Initial memory allocation (in megabytes) for the new domain. > memory = 64 > > # A name for your domain. All domains must have different names. > name = "ExampleDomain1" > > vif = [ '''' ] > > disk = [ ''phy:volgrpguest/logvol1,volgrplinux/logvolroot,w'' ] > > #dhcp="dhcp" > # Set netmask. > #netmask> # Set default gateway. > #gateway> # Set the hostname. > #hostname= "vm%d" % vmid > > # Set root device. > #root = "/dev/hda1 ro" > root = "/dev/mapper/volgrplinux-logvolroot ro" > > # Sets runlevel 4. > extra = "4" > ----------------end of config file------------------------ > > $ ls -l /dev/mapper > > lrwxrwxrwx 1 root root 16 nov 14 18:11 control -> ../device-mapper > brw------- 1 root root 253,2 nov 15 9:59 volgrpguest-logvol1 > brw------- 1 root root 253,0 nov 14 18:11 volgrplinux-logvolroot > brw------- 1 root root 253,1 nov 14 18:11 volgrplinux-logvolswap > > > > > Is there something in the configuration that prevents the logvolroot > from being found? > > Also, are there any additional modules that need to be modprobed (apart > from dm-mod and dm-snapshot) when a domU starts up? > > Please suggest how to fix this. > > Thanks, > Rajarshi >Your disk and root lines are bad, to start with. -- Christopher G. Stach II --------------------------------- Sponsored Link $420,000 Mortgage for $1,399/month - Think You Pay Too Much For Your Mortgage? Find Out! _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Christoph Purrucker
2006-Nov-15 14:23 UTC
Re: [Xen-users] Unable to mount LVM - backed VBD
Hi rajarshi,> I commented the ''disk'' entry, and set the ''root'' entry to: > root="/dev/mapper/volgrpguest-logvol1 ro" > > Now, I get the error ''Unable to find volume group logvol1''.I think, you want to use root="/dev/volgrpguest/logvol1 ro" which should be created withing lvm-init-script. cu cp -- Die Homepage meines Vertrauens: www.cpur.de _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users