HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   HOWTO-Related Questions (http://www.howtoforge.com/forums/forumdisplay.php?f=2)
-   -   Unable to Create LVM-Based VM in Xen on CentOS due to "Insufficient free extents" (http://www.howtoforge.com/forums/showthread.php?t=43319)

N9XCR 6th February 2010 18:40

Unable to Create LVM-Based VM in Xen on CentOS due to "Insufficient free extents"
 
I installed CentOS on a Dell PowerEdge 860 with two 1TB hard drives in RAID1. This is a bare minimum install. I then installed Xen according to "Paravirtualization With Xen On CentOS 5.4 (x86_64)". Here is the output from vgdisplay and lvdisplay:

Code:

[root@serenity ~]# vgdisplay
  /dev/hda: open failed: No medium found
  --- Volume group ---
  VG Name              VolGroup00
  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              931.22 GB
  PE Size              32.00 MB
  Total PE              29799
  Alloc PE / Size      29799 / 931.22 GB
  Free  PE / Size      0 / 0
  VG UUID              Pt8lYt-vBDe-BGHH-82ee-S1qI-Rc7q-ZfKw0y

[root@serenity ~]# lvdisplay
  /dev/hda: open failed: No medium found
  --- Logical volume ---
  LV Name                /dev/VolGroup00/LogVol00
  VG Name                VolGroup00
  LV UUID                dNRrkh-cgaZ-ak68-wcXY-wydS-xGIV-taAOJl
  LV Write Access        read/write
  LV Status              available
  # open                1
  LV Size                921.47 GB
  Current LE            29487
  Segments              1
  Allocation            inherit
  Read ahead sectors    auto
  - currently set to    256
  Block device          253:0

  --- Logical volume ---
  LV Name                /dev/VolGroup00/LogVol01
  VG Name                VolGroup00
  LV UUID                s6effT-hVcu-ICBP-NL18-2yoh-Dvba-76A5fA
  LV Write Access        read/write
  LV Status              available
  # open                1
  LV Size                9.75 GB
  Current LE            312
  Segments              1
  Allocation            inherit
  Read ahead sectors    auto
  - currently set to    256
  Block device          253:1

This is what happens when I try to create my first LVM-based VM.
Code:

[root@serenity ~]# lvcreate -L10G -n vm01 VolGroup00
  /dev/hda: open failed: No medium found
  Insufficient free extents (0) in volume group VolGroup00: 320 required

I know I did something wrong somewhere. Please point me in the right direction. :o

Thank you,
Chris

falko 7th February 2010 14:42

There'S no free space left in VolGroup00 because it is used up by the volumes LogVol00 and LogVol01. You can try to resize the volumes as described in this tutorial: http://www.howtoforge.com/linux_lvm


All times are GMT +2. The time now is 15:33.

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