Wessam Aly
2003-Apr-17 03:55 UTC
Rsync bug in handling files larger than 2 GB *even with 64 bit compilation options*
Rsync bug in handling files larger than 2 GB *even with 64 bit compilation options* We use files in my environment at work that sometimes requires to transfer files with sizes like 2-10 GB each file. I get the following error from rsync after if copies p a part from the file: write failed on doc_all_030414.dmp.Z : Error 0 rsync error: error in file IO (code 11) at receiver.c(243) rsync: connection unexpectedly closed (91 bytes read so far) rsync error: error in rsync protocol data stream (code 12) at io.c(165) This error seems to be consistent across ALL filess that exceed 2 GB in size. Althought the description of the error might be misleading, it does happen only when large files are being copied (within the same server or across a 100 Mbit Ethernet switched network). The version of rsync I'm using is 2.5.6. Following is the what output: /usr/bin/rsync: $Revision: 92453-07 linker linker crt0.o B.11.30 011005 $ HP92453-02A.11.00 HP-UX SYMBOLIC DEBUGGER (END.O ILP32) $Revision: 75.02 $ Platform: HP PA-RISC HPUX 9000 servers running HPUX 11.00 and HPUX 11.11 (11i) Compilation options using configure: ./configure --enable-largefiles Please try to look at this and let me know if you need any further info. Thanks, Wessam Senior UNIX Admin
Steve Bonds
2003-Apr-17 04:40 UTC
Rsync bug in handling files larger than 2 GB *even with 64 bit compilation options*
On Wed, 16 Apr 2003, Wessam Aly WAly-at-Mobinil.com |Rsync List| wrote:> write failed on doc_all_030414.dmp.Z : Error 0 > rsync error: error in file IO (code 11) at receiver.c(243) > rsync: connection unexpectedly closed (91 bytes read so far) > rsync error: error in rsync protocol data stream (code 12) at io.c(165)This error suggests that the rsh utility you are using to send the data across the network does not handle 2GB file descriptors properly. Try transferring the same file to a new location on the same server using rsync to verify this. If it transfers fine locally, the problem isn't with rsync. Also, check that the filesystem you are sending to is mounted with the "largefiles" option. This has thrown me off more than once on an HP-UX system. You shouldn't need to use any special configuration directive for rsync. It builds versions with 64-bit offsets by default now. If you want to validate this, just use "rsync --version" and you should see: ----- rsync version 2.5.6 protocol version 26 Copyright (C) 1996-2002 by Andrew Tridgell and others <http://rsync.samba.org/> Capabilities: 64-bit files, socketpairs, hard links, symlinks, batchfiles, no IPv6, 32-bit system inums, 64-bit internal inums ----- -- Steve