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
Posts: 41,665
Thanks: 1,896
Thanked 2,592 Times in 2,443 Posts
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.
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.
Recent comments
1 day 20 hours ago
2 days 5 hours ago
2 days 8 hours ago
2 days 9 hours ago
2 days 11 hours ago
2 days 12 hours ago
2 days 14 hours ago
2 days 15 hours ago
3 days 7 hours ago
3 days 8 hours ago