Operating System - HP-UX
1828963 Members
2253 Online
109986 Solutions
New Discussion

rsync and large file support.

 
Aharon Chernin
Advisor

rsync and large file support.

I have been fooling around with this problem on and off for the past few months.

rsync 2.5.5 as well as the older versions support large files (>2 gigs)..

For the life of me I cant get large file support to work in rsync. Rsync reports that largefile support is compiled in, but yet wont copy files over 2 gigs.

Any ideas? I think I have recompiled rsync now atleast a 100 times trying different compiler options.. lol

rsync version 2.5.6cvs protocol version 26
Copyright (C) 1996-2002 by Andrew Tridgell and others
<>
Capabilities: 64-bit files, socketpairs, hard links, symlinks, batchfiles,
no IPv6, 32-bit system inums, 64-bit internal inums
Unix is user friendly, it's just picky about its friends.
7 REPLIES 7
harry d brown jr
Honored Contributor

Re: rsync and large file support.


What OS to what OS are you using? And if HPux, do you have largefiles turned on?

live free or die
harry
Live Free or Die
Aharon Chernin
Advisor

Re: rsync and large file support.

Sorry, I was vague :) Too busy pulling my hair out.. lol

HP/UX 11.0 ..
The filesystems I am copying too and from, have largefile support and are mounted with the -o largefiles options.

Is that what you mean by largefile support turned on?
Unix is user friendly, it's just picky about its friends.
harry d brown jr
Honored Contributor

Re: rsync and large file support.

Why not use this:

http://hpux.cs.utah.edu/hppd/hpux/Networking/Admin/rsync-2.5.5/

although not 2.5.6?


live free or die
harry
Live Free or Die
harry d brown jr
Honored Contributor

Re: rsync and large file support.

Yes to largefiles.

Try the precompiled version.

live free or die
harry
Live Free or Die
Aharon Chernin
Advisor

Re: rsync and large file support.

I just tried using the binary you posted up.. And to speed up the test of that binary version of rsync, I copied a 2.5 gig file from one place to another on the same box.

It failed just like my compiled versions have done. I have a ton of hp/ux 11.0 boxes and none of them seem to be able to do this properly :(

Here is a 2.5 gig file test with the rsync link you provided.. btw it's the same error 2.5.6cvs gives.

aurora:/premdordev/MP5.BCV # rsync --progress -arvv IN.PAST.HIST.COPY aurora.premdor.com:/premdordev/IN.PAST.HIST.COPY
opening connection using remsh aurora.premdor.com rsync --server -vvlogDtpr . /premdordev/IN.PAST.HIST.COPY
building file list ...
expand file_list to 4000 bytes, did move
1 file to consider
IN.PAST.HIST.COPY
rsync: error writing 32768 unbuffered bytes - exiting: Broken pipe
rsync error: error in rsync protocol data stream (code 12) at io.c(463
Unix is user friendly, it's just picky about its friends.
harry d brown jr
Honored Contributor

Re: rsync and large file support.


rsync: error writing 32768 unbuffered bytes - exiting: Broken pipe

It looks like it's keeping count of "blocks" with a 2 byte integer.

Up the SIZE of the blocks per second?

--bwlimit=KBPS


live free or die
harry
Live Free or Die
Matthew Carlson
New Member

Re: rsync and large file support.

Here is the fix for the HP-UX 11.00 and 11i (11.11) large files issue with rsync 2.5.5.

You just need to compile it 64bit. I just used the DA2.0w CFLAGS option.

export CLFAGS="-Ae +O4 +Onolimit +DS2.0 +DA2.0w"

That is it.