Backups fail

dan

New Member
Jan 16, 2009
21
0
1
Snapshot backups will fail if volume group has no free space

Hi,

when I try to make backups of my VMs I'll always get this error:

Code:
INFO: starting new backup job: vzdump 102 --remove 0 --mode snapshot --compress gzip --storage backup --node host
INFO: Starting Backup of VM 102 (openvz)
INFO: CTID 102 exist mounted running
INFO: status = running
INFO: backup mode: snapshot
INFO: ionice priority: 7
INFO: creating lvm snapshot of /dev/mapper/vg0-vms ('/dev/vg0/vzsnap-host-0')
INFO:   Volume group "vg0" has insufficient free space (0 extents): 256 required.
ERROR: Backup of VM 102 failed - command 'lvcreate --size 1024M --snapshot --name vzsnap-host-0 /dev/vg0/vms' failed: exit code 5
INFO: Backup job finished with errors
TASK ERROR: job errors

/backup is a partition on the hdd and has 500GB free space:

Code:
df -hFilesystem            Size  Used Avail Use% Mounted on
/dev/mapper/vg0-root   80G  1.2G   75G   2% /
tmpfs                  12G     0   12G   0% /lib/init/rw
udev                   12G  264K   12G   1% /dev
tmpfs                  12G   22M   12G   1% /dev/shm
/dev/md0              247M   49M  186M  21% /boot
/dev/mapper/vg0-backup
                      497G  198M  471G   1% /backup
/dev/mapper/vg0-vms   752G   40G  674G   6% /var/lib/vz
/dev/fuse              30M   16K   30M   1% /etc/pve

Code:
pveversion -vpve-manager: 2.1-1 (pve-manager/2.1/f9b0f63a)
running kernel: 2.6.32-11-pve
proxmox-ve-2.6.32: 2.0-66
pve-kernel-2.6.32-11-pve: 2.6.32-66
lvm2: 2.02.95-1pve2
clvm: 2.02.95-1pve2
corosync-pve: 1.4.3-1
openais-pve: 1.1.4-2
libqb: 0.10.1-2
redhat-cluster-pve: 3.1.8-3
resource-agents-pve: 3.9.2-3
fence-agents-pve: 3.1.7-2
pve-cluster: 1.0-26
qemu-server: 2.0-39
pve-firmware: 1.0-15
libpve-common-perl: 1.0-27
libpve-access-control: 1.0-21
libpve-storage-perl: 2.0-18
vncterm: 1.0-2
vzctl: 3.0.30-2pve5
vzprocps: not correctly installed
vzquota: 3.0.12-3
pve-qemu-kvm: 1.0-9
ksm-control-daemon: not correctly installed
 
Last edited:
Hi e100,

thanks for your reply.

Code:
pvscan  PV /dev/md1   VG vg0   lvm2 [1.36 TiB / 0    free]
  Total: 1 [1.36 TiB] / in use: 1 [1.36 TiB] / in no VG: 0 [0   ]

Why does the volume group vg0 needs free space? Why isn't Proxmox using the /backup partition?
 
Why does the volume group vg0 needs free space? Why isn't Proxmox using the /backup partition?
From what I understand Proxmox creates a temporary LV for backup which means the volume group containing
/var/lib/vz needs some unused space for backup. In your case it needs 256 free extends in VG0 for doing the backup.
 
Re: Backup fail

Thanks so much for your replies. With this great tutorial I've managed to reduce the size of my backup partition to make some room for the snapshots. So I guess the free space must be at least the size of your biggest VM?
 
No, most time we suggest 16 Gb. Only the changes of your VM disk during backup process are stored here.
 

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!