Freisei
2009-Jan-24 11:06 UTC
rsync with --copy-devices patch and device-target with --write-batch doesnt work
Hi List!
I want to use rsync to create differential backups of my lvm-snapshots.
fullbackup-filename: /mnt/sdc1/snapshotvergleich/rootbackup1.img
current snapshot: /dev/vg0/rootbackup
note: compiled-in --copy-devices-patch
root@xp8main3:/usr/local/src/rsync# ./rsync --version
rsync version 3.1.0dev protocol version 31.PR5
Copyright (C) 1996-2009 by Andrew Tridgell, Wayne Davison, and others.
Web site: http://rsync.samba.org/
Capabilities:
64-bit files, 64-bit inums, 64-bit timestamps, 64-bit long ints,
socketpairs, hardlinks, symlinks, IPv6, batchfiles, inplace,
append, no ACLs, xattrs, iconv, symtimes
rsync comes with ABSOLUTELY NO WARRANTY. This is free software, and you
are welcome to redistribute it under certain conditions. See the GNU
General Public Licence for details.
root@xp8main3:/usr/local/src/rsync# ./rsync -v --progress
--write-batch=/mnt/testvol/diff1_2_usb_copydiff
/mnt/sdc1/snapshotvergleich/rootbackup1.img /dev/vg0/rootbackup
rootbackup1.img
53,116,928 0% 50.62MB/s 0:03:26
rsync error: error in file IO (code 11) at io.c(1565) [sender=3.1.0dev]
root@xp8main3:/usr/local/src/rsync#
proberly more informative:
root@xp8main3:/usr/local/src/rsync# ./rsync -vvv -debug --progress
--write-batch=/mnt/testvol/diff1_2_usb_copy diff
/mnt/sdc1/snapshotvergleich/rootbackup1.img /dev/vg0/rootbackup
server_recv(2) starting pid=13264
building file list ...
[sender] make_file(rootbackup1.img,*,0)
1 file to consider
send_file_list done
send_files starting
recv_file_name(rootbackup1.img)
received 1 names
recv_file_list done
get_local_name count=1 /dev/vg0/rootbackup
generator starting pid=13264
delta-transmission enabled
recv_generator(rootbackup,0)
recv_files(1) starting
send_files(0, /mnt/sdc1/snapshotvergleich/rootbackup1.img)
send_files mapped /mnt/sdc1/snapshotvergleich/rootbackup1.img of size
10737418240
calling match_sums /mnt/sdc1/snapshotvergleich/rootbackup1.img
rootbackup1.img
49,577,984 0% 47.25MB/s 0:03:40
rsync error: error in file IO (code 11) at io.c(1565) [sender=3.1.0dev]
_exit_cleanup(code=11, file=io.c, line=1565): about to call exit(11)
Matt McCutchen
2009-Jan-24 22:40 UTC
rsync with --copy-devices patch and device-target with --write-batch doesnt work
On Sat, 2009-01-24 at 11:32 +0100, Freisei wrote:> I want to use rsync to create differential backups of my lvm-snapshots. > > fullbackup-filename: /mnt/sdc1/snapshotvergleich/rootbackup1.img > current snapshot: /dev/vg0/rootbackup > > note: compiled-in --copy-devices-patch > > > root@xp8main3:/usr/local/src/rsync# ./rsync --version > rsync version 3.1.0dev protocol version 31.PR5 > Copyright (C) 1996-2009 by Andrew Tridgell, Wayne Davison, and others. > Web site: http://rsync.samba.org/ > Capabilities: > 64-bit files, 64-bit inums, 64-bit timestamps, 64-bit long ints, > socketpairs, hardlinks, symlinks, IPv6, batchfiles, inplace, > append, no ACLs, xattrs, iconv, symtimes > > rsync comes with ABSOLUTELY NO WARRANTY. This is free software, and you > are welcome to redistribute it under certain conditions. See the GNU > General Public Licence for details. > root@xp8main3:/usr/local/src/rsync# ./rsync -v --progress > --write-batch=/mnt/testvol/diff1_2_usb_copydiff > /mnt/sdc1/snapshotvergleich/rootbackup1.img /dev/vg0/rootbackup > rootbackup1.img > 53,116,928 0% 50.62MB/s 0:03:26 > rsync error: error in file IO (code 11) at io.c(1565) [sender=3.1.0dev] > root@xp8main3:/usr/local/src/rsync#That line number corresponds to a failure to write data to the batch file. Rsync ought to print an informative error message when this happens; I'll submit a patch for that when I get a chance. In the meantime, you can strace rsync to see how the write(2) call is failing. -- Matt
Matt McCutchen
2009-Jan-29 05:51 UTC
rsync with --copy-devices patch and device-target with --write-batch doesnt work
Freisei, please CC rsync@lists.samba.org so that others can help you and your messages are archived for others' future benefit. On Sun, 2009-01-25 at 12:08 +0100, Freisei wrote:> Matt McCutchen schrieb: > > In the > > meantime, you can strace rsync to see how the write(2) call is failing. > How can i do this? Or where can i get infos to learn how to do it?Run: strace -f -o rsync.strace ./rsync ... Then post the last 100 lines or so of the rsync.strace file, and I should be able to see what is happening. For more about the strace command, see its man page. Incidentally, see if you have enough disk space to hold the batch file. If not, that would explain the error you are getting. -- Matt
Apparently Analagous Threads
- [PATCH node] RESEND: split root file systems out of HostVG onto separate partitions
- [PATCH node] split root filesystems out of HostVG and onto their own partitions
- rw-devices patch for rsyncing block devices
- The patch write-devices.diff (rw-devices.diff) fix
- [PATCH node][RFC] Remove dependencies on /dev/disk/by-label entries