vzdump backup failed with exit code 5

naja7host

Member
May 15, 2009
78
1
6
Hello,

i have added a new drive with nfs share for backup , when i the backup run , i get the email error


Code:
vzdump 132 --quiet 1 --mailto aaaaaa @ gmail.com --mode snapshot --compress lzo --storage backup-5  

132: Feb 19 02:00:02 INFO: Starting Backup of VM 
132 (openvz) 132: Feb 19 02:00:02 INFO: CTID 
132 exist mounted running 132: Feb 19 02:00:02 INFO: status = running 
132: Feb 19 02:00:02 INFO: backup mode: snapshot 
132: Feb 19 02:00:02 INFO: ionice priority: 7 
132: Feb 19 02:00:02 INFO: creating lvm snapshot of /dev/mapper/pve-lv1 ('/dev/pve/vzsnap-ns206240-0') 
132: Feb 19 02:00:02 INFO:   Volume group "pve" has insufficient free space (1 extents): 256 required. 
132: [COLOR=red]Feb 19 02:00:02 ERROR: Backup of VM 132 failed - command 'lvcreate --size 1024M --snapshot --name vzsnap-ns206240-0 /dev/pve/lv1' failed: exit code 5 [/COLOR]


when i have hecked the lvm groub i found


Code:
 vgdisplay
  --- Volume group ---
  VG Name               pve
  System ID
  Format                lvm2
  Metadata Areas        2
  Metadata Sequence No  6
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                1
  Open LV               1
  Max PV                0
  Cur PV                2
  Act PV                2
  VG Size               203.06 GiB
  PE Size               4.00 MiB
  Total PE              51984
  Alloc PE / Size       51983 / 203.06 GiB
  Free  PE / Size       1 / 4.00 MiB
  VG UUID               v28c73-49bq-kHz3-a6ZB-vw8o-i0Ah-Qu9Rj8

when i run the backup in the local storage , there is no probleme .

i think the probleme is the falloing

Free PE / Size 1 / 4.00 MiB


how i can resize it ?

.
 
Last edited:
I have fixed the probleme by reducing the Lv volume , here is a small howto , in my case i have HDD size 203Gb with the parition /dev/pve/lv1

#Stop all vm machine
/etc/init.d/vz stop

# unmout the partition vz
umount /var/lib/vz

#check the filesystem before reduce (required)

e2fsck -f /dev/pve/lv1

#resize te file system (in my case have 203Gb total disque , so i have used just 190Gb , 13 will be reduced )

resize2fs /dev/pve/lv1 190G

lvreduce -L -13G /dev/pve/lv1


#check the file system again
e2fsck -f /dev/pve/lv1

# mount hte vz partition again /var/lib/vz
mount /var/lib/vz

# check the size
df -h

now we can test the backup again

enjoy the life with proxmox :)