Unable to Create LVM-Based VM in Xen on CentOS due to "Insufficient free extents"

Discussion in 'HOWTO-Related Questions' started by N9XCR, Feb 6, 2010.

  1. N9XCR

    N9XCR New Member

    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. :eek:

    Thank you,
    Chris
     
  2. falko

    falko Super Moderator Howtoforge Staff

    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
     

Share This Page