Nfs – Proxmox – backup OpenVZ on NFS

nfsopenvzproxmox

I'm using Proxmox 3.2 with OpenVZ containers and I'm trying to setup a backup system for my 2 nodes cluster.

I created a NFS share on a Debian 7.5 server (not under Proxmox, and not inside the cluster).

/etc/exports:

/share/           node-1(rw,no_root_squash,subtree_check,sync)
/share/           node-2(rw,no_root_squash,subtree_check,sync)

I added it to the cluster:

enter image description here

Then I created the backup job:

enter image description here

When it's time to backup I only find these logs on the NFS share:

Aug 06 01:40:01 INFO: Starting Backup of VM 100 (openvz)
Aug 06 01:40:01 INFO: CTID 100 exist mounted running
Aug 06 01:40:01 INFO: status = running
Aug 06 01:40:01 INFO: backup mode: snapshot
Aug 06 01:40:01 INFO: ionice priority: 7
Aug 06 01:40:01 INFO: creating lvm snapshot of /dev/mapper/system-root ('/dev/system/vzsnap-node-1-0')
Aug 06 01:40:01 INFO:   Volume group "system" has insufficient free space (0 extents): 256 required.
Aug 06 01:40:01 ERROR: Backup of VM 100 failed - command 'lvcreate --size 1024M --snapshot --name vzsnap-node-1-0 /dev/system/root' failed: exit code 5

What is wrong with this configuration?

Best Answer

You have to free space on the LVM root volume. You'll have to reboot your server in rescue mode in order to do it (as it's the root volume)

Proxmox is trying to dump the LVM volume of the container and it has no free space on the LVM root volume to do it.