Backup fails

Erwin123

Member
May 14, 2008
207
1
16
The backup of one of my containers keep failing.

What I tried to solve this:
I changed the backup dir from a usbdisk to /backup, and after that to the /var partitition, but it keeps giving 'No space left on device'.

I made a vzdump.conf with 'size: 2048'

Another container on the same node backups fine, but it is smaller.
The container that fails is 8GB, the space left on the var partition is 80GB.

This is the error I receive:
Detailed backup logs:

vzdump --quiet --node 3 --snapshot --dumpdir /var/lib/vz/backup --mailto support@mydomain.com 109
109: Aug 27 09:00:02 INFO: Starting Backup of VM 109 (openvz)
109: Aug 27 09:00:02 INFO: status = CTID 109 exist mounted running
109: Aug 27 09:00:02 ERROR: unable to dump into snapshot (use option --dumpdir), using 'suspend' mode
109: Aug 27 09:00:02 INFO: starting first sync /var/lib/vz/private/109 to /var/tmp/vzdumptmp23399
109: Aug 27 09:24:53 INFO: rsync: writefd_unbuffered failed to write 4 bytes [sender]: Broken pipe (32)
109: Aug 27 09:24:53 INFO: rsync: write failed on "/var/tmp/vzdumptmp23399/109/var/lib/psa/dumps/1/3/support.mydomain.com_2009.08.26_17-22-02": No space left on device (28)
109: Aug 27 09:24:53 INFO: rsync error: error in file IO (code 11) at receiver.c(298) [receiver=3.0.3]
109: Aug 27 09:24:53 INFO: rsync: connection unexpectedly closed (4741367 bytes received so far) [sender]
109: Aug 27 09:24:53 INFO: rsync error: error in rsync protocol data stream (code 12) at io.c(635) [sender=3.0.3]
109: Aug 27 09:27:14 ERROR: Backup of VM 109 failed - command '/usr/bin/rsync --stats --numeric-ids --bwlimit=10240 -aH --delete --no-whole-file --inplace /var/lib/vz/private/109 /var/tmp/vzdumptmp23399' failed with exit code 12

What is this sentence?
ERROR: unable to dump into snapshot (use option --dumpdir), using 'suspend' mode

It should just use snapshot mode as I entered in the backup configuration on the mainnode.
Any ideas?

Thanks!
 
Last edited:
the error is: No space left on device.

Please tell us what is the entire capacity of your disk?
 
120GB, 80GB free on the partition. The container to backup is 8GB...
 
I think your disk is partition in:

Swap (depending your RAM capacity) - 4-8GB
root (maybe 30 GB or less)
data (80 GB)

Now, the backup is made on root partition...an not on data partition. Check the size of /backup folder...to see the capacity value
 
What I tried to solve this:
I changed the backup dir from a usbdisk to /backup, and after that to the /var partitition, but it keeps giving 'No space left on device'.

suspend mode uses --tmpdir (default /var/tmp) - seems you do not have enough space there.

What is this sentence?
ERROR: unable to dump into snapshot (use option --dumpdir), using 'suspend' mode

You cant store the result inside the snapshot itself - that would be an endless loop.
 
Filesystem Size Used Avail Use% Mounted on
/dev/pve/root 38G 27G 8.9G 76% /
tmpfs 501M 0 501M 0% /lib/init/rw
udev 10M 44K 10M 1% /dev
tmpfs 501M 0 501M 0% /dev/shm
/dev/mapper/pve-data 105G 26G 80G 24% /var/lib/vz
/dev/sda1 496M 84M 387M 18% /boot

I used /var/lib/vz/backup

I probably don't understand what you mean, but as far as I can see there's space enough. The backup of a smaller container works with no errors.
 
I used /var/lib/vz/backup

I probably don't understand what you mean, but as far as I can see there's space enough. The backup of a smaller container works with no errors.

suspend mode stores data 2 times

first, all data is transfered to a temporary directory (--tmpdir) - this is /var/tmp by default,
then it moves the result to the final location (--dumpdir)

- Dietmar
 
still don't understand.
the container is 8GB, the free space 80GB....
 
Ah now I see what you mean:

node-ns:~# df -h /var/tmp
Filesystem Size Used Avail Use% Mounted on
/dev/pve/root 38G 27G 8.9G 76% /

can I just empty the dir /var/tmp?

node-ns:/var/tmp# ls
quotadump.102 quotadump.105 quotadump.109 quotadump.112 quotadump.121
quotadump.103 quotadump.107 quotadump.110 quotadump.115
 
Thanks, I found out what happened.
I first made the backups on a usbdrive mounted at /mnt/usbdrive
This drive broke down so I continued using /backup
When I look now at /mnt/usbdrive there are a bunch of backups that apparently exist on the / drive instead of the usbdrive. I must have done something weird :confused:
 

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!