Error during backup OpenVZ (exit code 5)

andrea68

Renowned Member
Jun 30, 2010
158
2
83
Hi,

I have 2 VM (1 KVM, 1 OpenVZ) on a single host.
I doin' daily backup and KVM seems fine but Open VZ report this error:

Code:
[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: starting new backup job: vzdump 100 --remove 0 --mode snapshot --compress lzo --storage BKG --node pmx1[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: Starting Backup of VM 100 (openvz)[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: CTID 100 exist mounted running[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: status = running[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: backup mode: snapshot[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: ionice priority: 7[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: creating lvm snapshot of /dev/mapper/pmx1-root ('/dev/pmx1/vzsnap-pmx1-0')[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO:   Volume group "pmx1" has insufficient free space (0 extents): 256 required.[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]ERROR: Backup of VM 100 failed - command 'lvcreate --size 1024M --snapshot --name vzsnap-pmx1-0 /dev/pmx1/root' failed: exit code 5[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: Backup job finished with errors[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]TASK ERROR: job errors

Looking back in the forum archive it seems a space problem on my storage...???
Can you help troubleshooting this?

Thanks in advance.
 
Hi, i think,
your backup volume have no free space: look:
Volume group "pmx1" has insufficient free space (0 extents): 256 required.

regards
 
Hi, i think,
your backup volume have no free space: look:
Volume group "pmx1" has insufficient free space (0 extents): 256 required.

regards

I'ts weird: backup scripts will do a backup on a NAS with 4 TB of free space...

It failed during snapshot...
Also it seems I have some space for doing snapshot:

Code:
root@pmx1:~# df -hFile system              Dim. Usati Dispon. Uso% Montato su
udev                      10M     0     10M   0% /dev
tmpfs                    798M  368K    798M   1% /run
/dev/mapper/pmx1-root    792G  4,3G    747G   1% /
tmpfs                    5,0M     0    5,0M   0% /run/lock
tmpfs                    1,6G   47M    1,6G   3% /run/shm
/dev/cciss/c0d0p1        228M   24M    192M  12% /boot
/dev/fuse                 30M   16K     30M   1% /etc/pve
192.168.198.21:/ISO       19T  8,5T     11T  45% /mnt/pve/Iso
192.168.198.21:/Backup    19T  8,5T     11T  45% /mnt/pve/BKG
/var/lib/vz/private/102  160G  1,2G    159G   1% /var/lib/vz/root/102
none                     1,0G  4,0K    1,0G   1% /var/lib/vz/root/102/dev
none                     1,0G     0    1,0G   0% /var/lib/vz/root/102/dev/shm
192.168.198.21:/Backup    19T  8,5T     11T  45% /var/lib/vz/root/102/mnt/BACKUP
/var/lib/vz/private/100  160G  2,0G    159G   2% /var/lib/vz/root/100
none                     1,0G  4,0K    1,0G   1% /var/lib/vz/root/100/dev
none                     1,0G     0    1,0G   0% /var/lib/vz/root/100/dev/shm
/var/lib/vz/private/100  160G  2,0G    159G   2% /var/lib/vz/root/100/var/named/chroot/etc/named
/var/lib/vz/private/100  160G  2,0G    159G   2% /var/lib/vz/root/100/var/named/chroot/var/named
/var/lib/vz/private/100  160G  2,0G    159G   2% /var/lib/vz/root/100/var/named/chroot/etc/named.rfc1912.zones
/var/lib/vz/private/100  160G  2,0G    159G   2% /var/lib/vz/root/100/var/named/chroot/etc/rndc.key
/var/lib/vz/private/100  160G  2,0G    159G   2% /var/lib/vz/root/100/var/named/chroot/usr/lib64/bind
/var/lib/vz/private/100  160G  2,0G    159G   2% /var/lib/vz/root/100/var/named/chroot/etc/named.iscdlv.key
/var/lib/vz/private/100  160G  2,0G    159G   2% /var/lib/vz/root/100/var/named/chroot/etc/named.root.key

I don't understand...
 
You need free space on the LVM volume group in order to make snapshots.

Hi Dietmar, this is the LVM status---

root@pmx1:~# lvdisplay
--- Logical volume ---
LV Path /dev/pmx1/root
LV Name root
VG Name pmx1
LV UUID uPemKr-UfYy-fVNt-u5lh-IVU3-gmDP-DagOqv
LV Write Access read/write
LV Creation host, time pmx1, 2013-12-16 10:54:34 +0100
LV Status available
# open 1
LV Size 803,97 GiB
Current LE 205816
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0
 
Last edited:
It is more relevant to show output of this: vgdisplay pmx1

root@pmx1:~# vgdisplay pmx1
--- Volume group ---
VG Name pmx1
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 819,96 GiB
PE Size 4,00 MiB
Total PE 209911
Alloc PE / Size 209911 / 819,96 GiB
Free PE / Size 0 / 0
VG UUID WQEfon-EQH7-eYTY-6ZqI-37y6-E0We-orjD31
 
Free PE ==> 0

I see.
Just don't understand how it is possible...
I have 800GB local storage and 3 VM (1KVM and 2 Openvz):

1 - Kvm Raw disk = 200GB
2 - OpenVZ = 160GB
3 - OpenVZ = 160GB

Total occupied space will be 520GB... :-(
 

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!