Hello everyone, I''m getting my feet wet with Xen 3.0.1 and I''m having trouble creating a DomU which uses an LVM lv as the vbd. I''ve had no problems spinning up DomU''s based on file images and on actual partitions. I''m hoping I''m just missing something simple. I''m running XEN 3.0.1 -- Debian Stable/backports Error message for ''xm create -c ./centOS-4.2_vm1.cfg Using config file "centOS-4.2_vm1.cfg". Error: Device 2049 (vbd) could not be connected. Device /dev/VG1/vmvol1 is mounted in a guest domain, and so cannot be mounted now. ''xm list'' Name ID Mem(MiB) VCPUs State Time(s) Domain-0 0 512 1 r----- 457.6 CentOS_42_vm1 12 512 1 --p--- 0.0 Config file: ''cat centOS-4.2_vm1.cfg'' name = "CentOS_42_vm1" memory = 512 kernel = "/boot/vmlinuz-2.6.12.6-xenU" vif=[ '' '' ] dhcp = "dhcp" disk = [ ''phy:VG1/vmvol1,sda1,w'',''phy:VG1/vm_swap1,sda2,w'' ] root = "/dev/sda1 ro" I don''t have /dev/VG1/vmvol1 mounted anywhere results of ''df -h'' Filesystem Size Used Avail Use% Mounted on /dev/sda1 7.5G 2.9G 4.7G 39% / tmpfs 257M 0 257M 0% /dev/shm result of ''lvscan'' ACTIVE ''/dev/VG1/swap'' [4.00 GB] inherit ACTIVE ''/dev/VG1/vmvol1'' [8.00 GB] inherit ACTIVE ''/dev/VG1/vm_swap1'' [512.00 MB] inherit ACTIVE ''/dev/VG1/vm_images'' [9.77 GB] inherit ACTIVE ''/dev/VG1/space'' [9.77 GB] inherit --- Logical volume --- LV Name /dev/VG1/vmvol1 VG Name VG1 LV UUID E9ky1Q-1ErH-Dfdj-XXXX-qDsb-bbPa-XXXXX LV Write Access read/write LV Status available # open 0 LV Size 8.00 GB Current LE 2048 Segments 1 Allocation inherit Read ahead sectors 0 Block device 253:1 --- Logical volume --- LV Name /dev/VG1/vm_swap1 VG Name VG1 LV UUID RZL4zZ-seVf-Gi3u-0l3P-XXXX-6EIq-XXXXX LV Write Access read/write LV Status available # open 0 LV Size 512.00 MB Current LE 128 Segments 1 Allocation inherit Read ahead sectors 0 Block device 253:2 Any help would be appreciated. Thanks, Jim _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Am Mittwoch, 15. Februar 2006 19:22 schrieb James Miller:> Hello everyone, > > I''m getting my feet wet with Xen 3.0.1 and I''m having trouble > creating a DomU which uses an LVM lv as the vbd. I''ve had no > problems spinning up DomU''s based on file images and on actual > partitions. I''m hoping I''m just missing something simple.I''m having the same problem here with xen 3.0 on opensuse 10, it works just fine with drive image files but refuses to mount lvm volumes... and due to the hardware of the box where i want to run xen, lvm volumes are a must-have for me... bye, MH _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
James Miller
2006-Feb-15 20:49 UTC
RE: [Xen-users] can''t mount LVM based vbd for domU -- SOLVED I think
> -----Original Message----- > From: xen-users-bounces@lists.xensource.com > [mailto:xen-users-bounces@lists.xensource.com]On Behalf Of James Miller > Sent: Wednesday, February 15, 2006 12:22 PM > To: xen-users@lists.xensource.com > Subject: [Xen-users] can''t mount LVM based vbd for domU > > > Hello everyone, > > I''m getting my feet wet with Xen 3.0.1 and I''m having trouble creating a > DomU which uses an LVM lv as the vbd. I''ve had no problems spinning up > DomU''s based on file images and on actual partitions. I''m hoping I''m just > missing something simple. > > I''m running XEN 3.0.1 -- Debian Stable/backports > > Error message for ''xm create -c ./centOS-4.2_vm1.cfg > Using config file "centOS-4.2_vm1.cfg". > Error: Device 2049 (vbd) could not be connected. > Device /dev/VG1/vmvol1 is mounted in a guest domain, > and so cannot be mounted now. >A reboot seems to have taken care of the problem. Sorry for the spam --Jim _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Mathias Homann
2006-Feb-15 21:04 UTC
Re: [Xen-users] can''t mount LVM based vbd for domU -- SOLVED I think
Am Mittwoch, 15. Februar 2006 21:49 schrieb James Miller:> A reboot seems to have taken care of the problem. Sorry for the > spamwhat exactly did you reboot, I''ve been booting the box i''m having trouble with over and over, i almost feel like a windows ME user by now, to no effect... bye MH _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
BrĂ¡ulio Gergull
2006-Feb-15 22:15 UTC
Re: [Xen-users] can''t mount LVM based vbd for domU
Hi, On Feb 15, 2006 04:45 PM, Mathias Homann <admin@eregion.de> wrote:> > I''m having the same problem here with xen 3.0 on opensuse 10, it works > just fine with drive image files but refuses to mount lvm volumes... > and due to the hardware of the box where i want to run xen, lvm > volumes are a must-have for me... >Which kernel are you running? Remember that the kernel and xen-tools that shipped on the released version are buggy. I''m running SuSE10 as dom0 and have succesfully run debian sarge, fedora fc4, SuSE10 and SLES9 as domU, both with file and LVM backends. rgrds, Braulio Gergull _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Patrick Wolfe
2006-Feb-16 17:55 UTC
Re: [Xen-users] can''t mount LVM based vbd for domU -- SOLVED I think
On Wed, 2006-02-15 at 22:04 +0100, Mathias Homann wrote:> what exactly did you reboot, I''ve been booting the box i''m having > trouble with over and over, i almost feel like a windows ME user by > now, to no effect...Make sure the LV device name you are trying to use isn''t already being mounted by some other domU. The following script will list all block devices in use by xen virtual machines: #!/bin/sh # lsvbds - list all block devices in use by xen virtual machines TREE=/local/domain/0/backend/vbd for VM in `xenstore-list $TREE` ; do echo "VM `xenstore-read /local/domain/$VM/name` is using:" for VBD in `xenstore-list $TREE/$VM` ; do echo " device `xenstore-read $TREE/$VM/$VBD/params`" done done exit 0 -- Patrick Wolfe email: pwolfe@employease.com office: 404-325-7724 mobile: 404-213-1453 Yahoo!: xen2007 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users