VE 2 Snapshot Backup

Janko

Renowned Member
May 15, 2011
72
7
73
Hi all,

i want to make Backup with Snapshots but everytime:

Code:
INFO: starting new backup job: vzdump 102 --remove 0 --mode snapshot --compress lzo --storage Backup --node phi74100
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/vg1-vz ('/dev/vg1/vzsnap-phi74100-0')
INFO:   Volume group "vg1" has insufficient free space (0 extents): 256 required.
ERROR:  Backup of VM 102 failed - command 'lvcreate --size 1024M --snapshot  --name vzsnap-phi74100-0 /dev/vg1/vz' failed: exit code 5
INFO: Backup job finished with errors
TASK ERROR: job errors

vgdisplay
Code:
root@phi74100 ~ # vgdisplay
  --- 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               4.83 TiB
  PE Size               4.00 MiB
  Total PE              1266431
  Alloc PE / Size       1266431 / 4.83 TiB
  Free  PE / Size       0 / 0
  VG UUID               D6cFPs-cuGZ-4w8r-cYw6-XcVd-87bB-IvbmAy

  --- 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               640.00 GiB
  PE Size               4.00 MiB
  Total PE              163839
  Alloc PE / Size       161792 / 632.00 GiB
  Free  PE / Size       2047 / 8.00 GiB
  VG UUID               zmQv4n-u9Am-v2KD-DGXB-BqpL-ZFoY-B5BWC9

root@phi74100 ~ #

lvscan
Code:
root@phi74100 ~ # lvscan
  ACTIVE            '/dev/vg1/vz' [4.83 TiB] inherit
  ACTIVE            '/dev/vg0/root' [100.00 GiB] inherit
  ACTIVE            '/dev/vg0/swap' [32.00 GiB] inherit
  ACTIVE            '/dev/vg0/backup' [500.00 GiB] inherit
root@phi74100

Thanks for your help!
 
You do not have any free space in the VG (FREE PE = 0)

Hi Dietmar,

Code:
root@phi74100 ~ # df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/vg0-root  100G  1.7G   93G   2% /
tmpfs                  16G  4.0K   16G   1% /lib/init/rw
udev                   16G  216K   16G   1% /dev
tmpfs                  16G   13M   16G   1% /dev/shm
/dev/sda1            1016M  142M  824M  15% /boot
/dev/mapper/vg0-backup
                      497G  198M  471G   1% /backup
/dev/mapper/vg1-vz    4.8T  316G  4.3T   7% /var/lib/vz
/dev/fuse              30M   24K   30M   1% /etc/pve
root@phi74100 ~ #
 
You need free space one the LVM volume Group. Else it is not possible to create an LVM snapshot.
 

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!