Backup of VM 102 failed - command 'lvcreate --size 1024M --snapshot --name ... code 5

edwards

New Member
Oct 29, 2010
13
0
1
Atlanta-US, Ulm-DE
Hi,

After I add my backup dir via web interface, I receive this error when the snapshot suppose to run:
Code:
Nov 13 02:00:02 INFO: Starting Backup of VM 102 (qemu)
Nov 13 02:00:02 INFO: running
Nov 13 02:00:02 INFO: status = running
Nov 13 02:00:03 INFO: backup mode: snapshot
Nov 13 02:00:03 INFO: ionice priority: 7
Nov 13 02:00:03 INFO:   Insufficient free extents (0) in volume group xxl: 256 required
Nov 13 02:00:03 ERROR: Backup of VM 102 failed - command 'lvcreate --size 1024M --snapshot --name 'vzsnap-V2-0' '/dev/xxl/local2'' failed with exit code 5

Code:
 pvesm list
Backup    dir 0 1  195974524     191948  0%
local     dir 0 1  819632848    9724480  1%
Code:
 cat /etc/pve/storage.cfg
dir: local
        path /var/lib/vz
        content images,iso,vztmpl,rootdir

dir: Backup
        path /mnt/localoriginal
        content backup
Permissions are fine because the logs are there:

Code:
V2:/mnt/localoriginal# ls -la
total 24
drwxr-xr-x 2 root root 4096 Nov 13 06:35 .
drwxr-xr-x 6 root root 4096 Nov 12 02:00 ..
-rw-r--r-- 1 root root  591 Nov 13 02:00 vzdump-openvz-103-2010_11_13-02_00_02.log
-rw-r--r-- 1 root root  452 Nov 12 02:00 vzdump-qemu-101-2010_11_12-02_00_02.log
-rw-r--r-- 1 root root  452 Nov 13 02:00 vzdump-qemu-101-2010_11_13-02_00_02.log
-rw-r--r-- 1 root root  452 Nov 13 02:00 vzdump-qemu-102-2010_11_13-02_00_02.log
Code:
df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mapper/pve-root  71732584    818024  67270760   2% /
tmpfs                  8196612         0   8196612   0% /lib/init/rw
udev                     10240       584      9656   6% /dev
tmpfs                  8196612         0   8196612   0% /dev/shm
/dev/mapper/xxl-local2
                     863495888   9724480 809908368   2% /var/lib/vz
/dev/mapper/pve-data 195974524    191948 195782576   1% /mnt/localoriginal
/dev/sda1               516040     31588    458240   7% /boot
 
Last edited:
Re: Backup of VM 102 failed - command 'lvcreate --size 1024M --snapshot --name ... co

seems you do not have enough free space in you volume group. how did you configure your LVM?

post the output of:
Code:
pvdisplay
 
Re: Backup of VM 102 failed - command 'lvcreate --size 1024M --snapshot --name ... co

seems you do not have enough free space in you volume group. how did you configure your LVM?

post the output of:
Code:
pvdisplay

Hi,

sorry for my late answer, but I moved the config/fstab back to the original install. Now everything is fine... I just dont have much space on /var/lib/vz...


Code:
 pvdisplay
  --- Physical volume ---
  PV Name               /dev/sdb
  VG Name               xxl
  PV Size               836.62 GB / not usable 4.00 MB
  Allocatable           yes (but full)
  PE Size (KByte)       4096
  Total PE              214175
  Free PE               0
  Allocated PE          214175
  PV UUID               9x4dIj-KGv2-g6EH-WXeg-gWFs-rJ3q-66isoy

  --- Physical volume ---
  PV Name               /dev/sda2
  VG Name               pve
  PV Size               278.37 GB / not usable 1.62 MB
  Allocatable           yes
  PE Size (KByte)       4096
  Total PE              71262
  Free PE               1022
  Allocated PE          70240
  PV UUID               VsM62R-Wi9V-WBFW-6IIg-y4cJ-6acU-yRGGyU

Is anyway for me to use my LVM //dev/sdb mounted on /mnt/xxl for OpenVZ storage? I can use mine only for KVMs, backups and ISOs.. Below is my storage.cfg:

Code:
cat /etc/pve/storage.cfg
dir: local
        path /var/lib/vz
        content images,iso,vztmpl,rootdir

dir: Backup
        path /mnt/xxl/backup
        content backup

dir: KVM-Storage
        path /mnt/xxl/storage
        content images

dir: ISOs
        path /mnt/xxl/iso
        content iso
 
Last edited:
Re: Backup of VM 102 failed - command 'lvcreate --size 1024M --snapshot --name ... co

OpenVZ does not support multiple storages, therefore you can only use storage under /var/lib/vz.

As we have LVM here, you can think of adding more physical devices to the LVM group, then extend the filesystem mounted on /var/lib/vz. but you should not mix different hardware, so think twice before you start.

why do you need more space for OpenVZ? maybe bind mount are an option for you, see http://wiki.openvz.org/Bind_mounts
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!