Snapshot-Backup … failed with exit code 5

rethus

Active Member
Feb 13, 2010
49
0
26
I have a fresh new installation of Proxmox.

I have create a new VM, and try to Backup this VM.
This are my settings:

Config while installation-Process:

Code:
PART  /boot  ext3    4G
PART  lvm    vg0   595G
PART  lvm    vg1   all

LV  vg0  root     /        ext3  165G
LV  vg0  swap     swap     swap   24G
LV  vg0  backup   /backup  ext3  400G
LV  vg1  vz  /var/lib/vz   ext3  all

Here vgdisplay
Code:
   --- Volume group ---                                                                                                                                                                                                                                                         
  VG Name               vg1                                                                                                                                                                                                                                                    
  System ID                                                                                                                                                                                                                                                                    
  Format                lvm2                                                                                                                                                                                                                                                   
  Metadata Areas        1                                                                                                                                                                                                                                                      
  Metadata Sequence No  2                                                                                                                                                                                                                                                      
  VG Access             read/write                                                                                                                                                                                                                                             
  VG Status             resizable                                                                                                                                                                                                                                              
  MAX LV                0                                                                                                                                                                                                                                                      
  Cur LV                1                                                                                                                                                                                                                                                      
  Open LV               1                                                                                                                                                                                                                                                      
  Max PV                0                                                                                                                                                                                                                                                      
  Cur PV                1                                                                                                                                                                                                                                                      
  Act PV                1                                                                                                                                                                                                                                                      
  VG Size               798.26 GiB                                                                                                                                                                                                                                             
  PE Size               4.00 MiB                                                                                                                                                                                                                                               
  Total PE              204355                                                                                                                                                                                                                                                 
  Alloc PE / Size       204355 / 798.26 GiB                                                                                                                                                                                                                                    
  Free  PE / Size       0 / 0                                                                                                                                                                                                                                                  
  VG UUID               NRZ2ep-sZrO-b0at-TSag-Rs7n-4sEY-f3Ymnq                                                                                                                                                                                                                 
                                                                                                                                                                                                                                                                               
  --- Volume group ---                                                                                                                                                                                                                                                         
  VG Name               vg0                                                                                                                                                                                                                                                    
  System ID                                                                                                                                                                                                                                                                    
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  4
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                3
  Open LV               3
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               595.00 GiB
  PE Size               4.00 MiB
  Total PE              152319
  Alloc PE / Size       150784 / 589.00 GiB
  Free  PE / Size       1535 / 6.00 GiB
  VG UUID               sdqnMC-QA1u-tgFj-QtDA-i4R5-fcMy-QJawlv

Backup-Storage-Config:
Auswahl_039.png


Message, if i try to do a "Snapshot-Backup"
INFO: starting new backup job: vzdump 105 --remove 0 --mode snapshot --compress gzip --storage backup_01 --node titanium
INFO: Starting Backup of VM 105 (openvz)
INFO: CTID 105 exist mounted running
INFO: status = running
INFO: backup mode: snapshot
INFO: ionice priority: 7
INFO: creating lvm snapshot of /dev/mapper/vg1-vz ('/dev/vg1/vzsnap-titanium-0')
INFO: Volume group "vg1" has insufficient free space (0 extents): 256 required.
ERROR: Backup of VM 105 failed - command 'lvcreate --size 1024M --snapshot --name vzsnap-titanium-0 /dev/vg1/vz' failed: exit code 5
INFO: Backup job finished with errors
TASK ERROR: job errors

Realy Strange for me... why the lvcreate-command use /dev/vg1/vz, instead of /backup?

If i do a Backup with Option "Stop", the Backup will be created and stored in /backup.
 
Last edited:
--- Volume group ---
VG Name vg1
..
Free PE / Size 0 / 0

...

you do not have free space in your vg1.

our ISO installer configure automatically up to 16 GB free space in the default VG (pve). as you installed manually, you forget about this and used all space.
 
Exactly. Solve this with help of #proxmox IRC and peetaur's help.
Workarround was to shrink the main LV on vg01 and leave some unassigned space on the vg1.
Than edit /etc/vzdump.conf and set size to size:8192 (means 8GB).
 

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!