Backup problem with snapshots

ellenverheyen

Member
Jun 3, 2009
55
0
6
Hello,

I'm having problems with my backups.

I receive this error message:
Code:
149: Nov 08 02:00:01 INFO: Starting Backup of VM 149 (openvz)
149: Nov 08 02:00:01 INFO: CTID 149 exist mounted running
149: Nov 08 02:00:01 INFO: status = CTID 149 exist mounted running
149: Nov 08 02:00:01 INFO: backup mode: snapshot
149: Nov 08 02:00:01 INFO: ionice priority: 7
149: Nov 08 02:00:01 INFO: creating lvm snapshot of /dev/mapper/vg1-vz ('/dev/vg1/vzsnap-eq10-0')
149: Nov 08 02:00:01 INFO:   Insufficient free extents (0) in volume group vg1: 256 required
149: Nov 08 02:00:01 ERROR: Backup of VM 149 failed - command 'lvcreate --size 1024M --snapshot --name vzsnap-eq10-0 /dev/vg1/vz' failed with exit code 5
How can I solve this?

vg1 is a separate lvm for the vz images, on a completly full vg....
I cant' simply shutdown all machines, unmount /var/lib/vz, and then resize the filesystem, resize the volume with lvreduce as the downtime would be too big.

Is it possible to have vzdump create the snapshot in vg0, as I can easily shrink my backup space there...

Kindly regards

Ellen
 
Can you detail the steps?

I suppose:

1. stopping the vm's
2. unmounting /var/lib/vz
3. e2fsck -f /dev/vg1/vz
4. resize2fs -p /dev/vg1/vz smallerziseG
5. - Check "PE Size":
# vgdisplay
6.
lvreduce -LsmallerziseG /dev/vg1/v
7. e2fsck -f /dev/vg1/vz
8. mount -a
9. restart all VM

Is that ok?

Ellen