Operating System - Linux
1757782 Members
2775 Online
108863 Solutions
New Discussion

rcp from hp-ux to red hat 7.2

 
Jay Cantwell
Regular Advisor

rcp from hp-ux to red hat 7.2

I am trying to copy a 7GB file from a system using HP-UX 11.0 to a Red Hat 7.2 system.....

I am getting an error message the says "unable to truncate: invalid argument".... is the file size too large ?? if so what is the file limit on Red Hat and can it be changed (like the 'largefiles' option on HPUX)??

Please note that I am able to rcp any file including a 3GB file to the linux box....

thanks for any help ....

Jay
1 REPLY 1
Stuart Browne
Honored Contributor

Re: rcp from hp-ux to red hat 7.2

If you can copy a 3Gb file, but not a 7Gb file, I'd suggset that 'rcp' it's self is what's having the issue.

2.4.x kernels can theoretically handle up to 2Tb files, so a paltry 7Gb should be just fine.

As an experiment, try using 'tar' or 'cpio' to create a stream of data using 'rsh', and see if that transfers it across successfully.

ie.

tar cf - file.data | rsh RHMach "cd /whatever; tar xvf -"

That will rule out sustained network connections, and also file handling tools (such as rcp) as it is just passing data through pipes.
One long-haired git at your service...