Backup problem version1.3

Petrus4

Member
Feb 18, 2009
249
0
16
I am having issues with both snapshot and stop backups on one openVZ container. All other machines are backing up correctly. Can anyone help me trouble shoot this?

Here are the logs for the "Stop" mode backup


Detailed backup logs:

vzdump --quiet --node 1 --stop --compress --dumpdir /var/lib/vz/backup --mailto user@domain.com 107

107: Nov 16 04:30:02 INFO: Starting Backup of VM 107 (openvz)
107: Nov 16 04:30:02 INFO: status = CTID 107 exist mounted running
107: Nov 16 04:30:02 INFO: starting first sync /var/lib/vz/private/107 to /var/tmp/vzdumptmp19809
107: Nov 16 05:00:21 INFO: rsync: writefd_unbuffered failed to write 4 bytes [sender]: Broken pipe (32)
107: Nov 16 05:00:21 INFO: rsync: connection unexpectedly closed (15403 bytes received so far) [sender]
107: Nov 16 05:00:21 INFO: rsync error: error in rsync protocol data stream (code 12) at io.c(635) [sender=3.0.3]
107: Nov 16 05:00:43 ERROR: Backup of VM 107 failed - command '/usr/bin/rsync --stats --numeric-ids --bwlimit=10240 -aH --delete --no-whole-file --inplace /var/lib/vz/private/107 /var/tmp/vzdumptmp19809' failed with exit code 12


These are the logs for "snapshot" mode backup


vzdump --quiet --node 1 --snapshot --compress --dumpdir /var/lib/vz/backup --mailto user@domain --all

107: Nov 15 02:14:57 INFO: Starting Backup of VM 107 (openvz)
107: Nov 15 02:14:57 INFO: status = CTID 107 exist mounted running
107: Nov 15 02:14:57 INFO: starting first sync /var/lib/vz/private/107 to /var/tmp/vzdumptmp1717
107: Nov 15 02:45:18 INFO: rsync: writefd_unbuffered failed to write 4 bytes [sender]: Broken pipe (32)
107: Nov 15 02:45:18 INFO: rsync: connection unexpectedly closed (15403 bytes received so far) [sender]
107: Nov 15 02:45:18 INFO: rsync error: error in rsync protocol data stream (code 12) at io.c(635) [sender=3.0.3]
107: Nov 15 02:45:41 ERROR: Backup of VM 107 failed - command '/usr/bin/rsync --stats --numeric-ids --bwlimit=10240 -aH --delete --no-whole-file --inplace /var/lib/vz/private/107 /var/tmp/vzdumptmp1717' failed with exit code 12
 
I updated the system:

Code:
aptitude update
aptitude upgrade

and it seems to have fixed the issue.
 
Hi,

we are facing the same issue, and also in only 1 vm. We would prefer to find a solution instead of having to upgrade. The system is in production and running very well so we do not want to upgrade just in case.

Any idea about the error stated at the beguining of this Thread?

Thanks
 
but the backup is done locally, and it happens only to one VM. Even if I stop the vm I get the same problem.

The the local write fails:

Code:
rsync: writefd_unbuffered failed to write 4

Maybe you run out of space on /var/tmp?
 
Hi,

we are facing the same issue, and also in only 1 vm. We would prefer to find a solution instead of having to upgrade. The system is in production and running very well so we do not want to upgrade just in case.

Any idea about the error stated at the beguining of this Thread?

Thanks

The upgrade I did is really a "safe-upgrade" so not a major upgrade. It upgrades any binaries that have been updated in the repositories inclduing the rsync binaries. I belief that fixed my issue. You could also just update the rsync binaries.