Paravirtualization With Xen 4.0 On Debian Squeeze creating images get error

Discussion in 'HOWTO-Related Questions' started by jone, Mar 5, 2013.

  1. jone

    jone New Member

    Hi,

    I was following the following how to Paravirtualization With Xen 4.0 On Debian Squeeze and Creating LVM-Based Virtual Machines

    On the steps
    Code:
    xen-create-image --hostname=xen1.example.com 
    I get the following error message

    Code:
    Insufficient free extents (0) in volume group vg0: 64 required
    Running command 'lvcreate vg0 -L 256Mb -n new-swap 2>&1' failed with exit code 1280.
    Aborting

    My
    Code:
    vgdisplay
    looks like this

    Code:
      --- Volume group ---
      VG Name               vg0
      System ID             
      Format                lvm2
      Metadata Areas        1
      Metadata Sequence No  7
      VG Access             read/write
      VG Status             resizable
      MAX LV                0
      Cur LV                6
      Open LV               6
      Max PV                0
      Cur PV                1
      Act PV                1
      VG Size               232.59 GiB
      PE Size               4.00 MiB
      Total PE              59543
      Alloc PE / Size       59543 / 232.59 GiB
      Free  PE / Size       0 / 0   
      VG UUID               CcQLNS-eTfx-04D8-xZpT-9ZUN-nsk7-heLKvd

    And My
    Code:
    lvdisplay
    display took like this

    Code:
    --- Logical volume ---
      LV Name                /dev/vg0/root
      VG Name                vg0
      LV UUID                SZlkX3-WVsW-1lvD-eWvo-6JUd-25dT-J8vHPv
      LV Write Access        read/write
      LV Status              available
      # open                 1
      LV Size                332.00 MiB
      Current LE             83
      Segments               1
      Allocation             inherit
      Read ahead sectors     auto
      - currently set to     256
      Block device           254:0
       
      --- Logical volume ---
      LV Name                /dev/vg0/usr
      VG Name                vg0
      LV UUID                aIjVEG-b8ZG-HRko-MaNd-9TCE-b6xo-Dqmbq6
      LV Write Access        read/write
      LV Status              available
      # open                 1
      LV Size                8.38 GiB
      Current LE             2145
      Segments               1
      Allocation             inherit
      Read ahead sectors     auto
      - currently set to     256
      Block device           254:2
       
      --- Logical volume ---
      LV Name                /dev/vg0/var
      VG Name                vg0
      LV UUID                QKuKYr-2vBK-04cx-DajI-oC16-gsL3-jYIzn4
      LV Write Access        read/write
      LV Status              available
      # open                 1
      LV Size                2.79 GiB
      Current LE             715
      Segments               1
      Allocation             inherit
      Read ahead sectors     auto
      - currently set to     256
      Block device           254:3
       
      --- Logical volume ---
      LV Name                /dev/vg0/swap_1
      VG Name                vg0
      LV UUID                Tn7hdG-rks8-qS51-m9s2-3doO-gzA8-YE03ax
      LV Write Access        read/write
      LV Status              available
      # open                 1
      LV Size                3.74 GiB
      Current LE             957
      Segments               1
      Allocation             inherit
      Read ahead sectors     auto
      - currently set to     256
      Block device           254:1
       
      --- Logical volume ---
      LV Name                /dev/vg0/tmp
      VG Name                vg0
      LV UUID                YjOzyN-rCdr-Zg2r-AFI9-MgQ3-hfEL-kvqDWF
      LV Write Access        read/write
      LV Status              available
      # open                 1
      LV Size                380.00 MiB
      Current LE             95
      Segments               1
      Allocation             inherit
      Read ahead sectors     auto
      - currently set to     256
      Block device           254:4
       
      --- Logical volume ---
      LV Name                /dev/vg0/home
      VG Name                vg0
      LV UUID                zHJvcW-QQ93-CDSn-lSTU-Cp80-HvIy-hftGur
      LV Write Access        read/write
      LV Status              available
      # open                 1
      LV Size                216.98 GiB
      Current LE             55548
      Segments               1
      Allocation             inherit
      Read ahead sectors     auto
      - currently set to     256
      Block device           254:5
    

    What is the problem? I'm new to xen and your help is very appreciated.

    Thanks
     
    Last edited: Mar 5, 2013
  2. falko

    falko Super Moderator Howtoforge Staff

    You don't have any free space left in the volume group that you can allocate to a logical volume.
     

Share This Page