Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 3rd April 2009, 19:26
jlain jlain is offline
Junior Member
 
Join Date: Apr 2009
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Default Installing Xen 3.3 on Ubuntu 8.10-failure to create LVM image

After diligently following the instructions for installing Xen 3.3 on a fresh Ubuntu 8.10 server, I am unable to create an LVM-based image using xen-create-image.

I suspect that I blew it while setting up LVM during the Ubuntu install. I'm prepared to start over if I must...but I would like to understand where/how I went wrong.

This is the logfile output of xen-create-image:
--------------------
General Information
--------------------
Hostname : xen1.landcapital.local
Distribution : lenny
Partitions : swap 256Mb (swap)
/ 4Gb (ext3)
Image type : full
Memory size : 256Mb
Kernel path : /boot/vmlinuz-2.6.27-11-server
Initrd path : /boot/initrd.img-2.6.27-11-server

Networking Information
----------------------
IP Address 1 : 192.168.101.100 [MAC: 00:16:3E:64:99:35]
Netmask : 255.255.255.0
Broadcast : 192.168.101.255
Gateway : 192.168.101.1
Insufficient free extents (0) in volume group xen0: 64 required
The LVM partition image creation failed to create /dev/xen0/xen1.landcapital.local-swap.
aborting

===========================
Here is the output of vgdisplay and lvdisplay:
-----------------------------------

root@xen0:~# vgdisplay
--- Volume group ---
VG Name xen0
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 3
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 2
Max PV 0
Cur PV 1
Act PV 1
VG Size 93.13 GB
PE Size 4.00 MB
Total PE 23842
Alloc PE / Size 23842 / 93.13 GB
Free PE / Size 0 / 0
VG UUID lyuc1v-Oet8-f8it-Uzy3-EsIr-J1eG-EdzfvV

------------------------
root@xen0:~# lvdisplay
--- Logical volume ---
LV Name /dev/xen0/root
VG Name xen0
LV UUID tNpKry-aKuo-cmdp-r0x9-vMPp-jQrp-g6Q9Pd
LV Write Access read/write
LV Status available
# open 1
LV Size 89.30 GB
Current LE 22861
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:0

--- Logical volume ---
LV Name /dev/xen0/swap_1
VG Name xen0
LV UUID JbBcGR-1jyk-UcMZ-1QR4-gGEd-ht5W-PmhDWd
LV Write Access read/write
LV Status available
# open 1
LV Size 3.83 GB
Current LE 981
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:1

==========================
Reply With Quote
Sponsored Links
  #2  
Old 4th April 2009, 13:36
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: LŁneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

There's no space left in your volume group xen0 because the volumes root and swap_1 are using all space. Set the system up again, but this time make root smaller (10GB should be enough), so that there's free space in the xen0 VG.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
jlain (6th April 2009)
  #3  
Old 6th April 2009, 17:39
jlain jlain is offline
Junior Member
 
Join Date: Apr 2009
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
 
Default

Thank you, Falko! In my newbness I had been confused about using LVM for both dom0 and domU. I found that the easiest path to succeeding was to set up LVM on one physical disk for the Xen host during the initial Ubuntu install, then separately configure a second physical disk for the Xen guests afterwards.
Reply With Quote
Reply

Bookmarks

Tags
xen 3.3 ubuntu intrepid

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows Server 2003 on Ubuntu 8.10 + LVM + KVM gezley HOWTO-Related Questions 5 16th January 2012 03:42
Unbale to login to Postfix from webmail wasimriz HOWTO-Related Questions 5 6th April 2009 13:49
Ubuntu 8.04 LTS - RAID 1 + LVM + XEN atjensen11 HOWTO-Related Questions 1 20th January 2009 20:35
ubuntu 8.10 encrypted lvm blocker Installation/Configuration 0 7th November 2008 09:38
Installing Xen On An Ubuntu Feisty Fawn Server From The Ubuntu Repositories: On 7.10 Kai HOWTO-Related Questions 2 2nd January 2008 21:09


All times are GMT +2. The time now is 16:01.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.