- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- scp issue
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2008 08:07 AM
03-11-2008 08:07 AM
scp issue
I have a user that is trying to scp a file that is over 4GB, and it is failing. Here is what happens below:
file 0% 0 0.0KB/s --:-- ETA
lost connection
They say that files under 4GB are no problem. is there a 4GB limit for scp?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2008 08:34 AM
03-11-2008 08:34 AM
Re: scp issue
they say files under 4GB are no problem, did they check files above 2GB? Are largefiles enabled on the filesystem?
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2008 08:39 AM
03-11-2008 08:39 AM
Re: scp issue
Have you tried dd, split or cat yet?
What about something like this?
$ ssh remlogin@remhost cat \> /mount/with/plenty/space/hugefile < /local/path/to/hugefile.src
You could similarly try with dd or pre split and cat the file on remote host,
or even copy separate splitted chunks via scp to remote host.
If your hosts have sufficient free cpu you could also try the -C option to compress prior to transferring over the wire.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2008 08:40 AM
03-11-2008 08:40 AM
Re: scp issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2008 08:52 AM
03-11-2008 08:52 AM
Re: scp issue
But I think dd on sending and receiving end should work.
e.g.
$ dd if=/local/copy/of/file | ssh rlogin@rhost dd of=/remote/copy/of/file
You might want to increase the block size?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2008 09:00 AM
03-11-2008 09:00 AM
Re: scp issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2008 10:10 AM
03-11-2008 10:10 AM
Re: scp issue
systems are, their OS versions, their SCP/SSH
versions, or how they're connected, I'd
probably try something radical, like using
scp to copy files of various sizes from one
system to itself, to see if a size-related
problem is observed.
Then, if that works, repeat the procedure on
the other system.
Also of potential interest: How long did it
take for the (undisclosed) scp command to
fail?
scp has a "-v" (or similar) option, doesn't
it? ("scp -h".) Does it add any useful
info? (It couldn't subtract much, because
you haven't supplied much to begin with.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2008 10:37 AM
03-11-2008 10:37 AM
Re: scp issue
and
OpenSSH_4.3p2-hpn, OpenSSL 0.9.7i 14 Oct 2005
HP-UX Secure Shell-A.04.30.007, HP-UX Secure Shell version
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2008 12:45 PM
03-12-2008 12:45 PM
Re: scp issue
Well, I suppose that that's some info.
I don't see a problem fetching a large file
to an older system:
dy # uname -a
HP-UX dy B.11.11 U 9000/785 2012616114 unlimited-user license
dy # ssh -V
OpenSSH_4.3p2-hpn, OpenSSL 0.9.7i 14 Oct 2005
HP-UX Secure Shell-A.04.30.006, HP-UX Secure Shell version
from a newer one:
dyi # uname -a
HP-UX dyi B.11.31 U ia64 4235313755 unlimited-user license
dyi # ssh -V
OpenSSH_4.4p1-hpn12v11, OpenSSL 0.9.7l 28 Sep 2006
HP-UX Secure Shell-A.04.40.005, HP-UX Secure Shell version
dy # scp dyi:/usr/test/VMS732X8.IMG .
VMS732X8.IMG 100% 4959MB 6.7MB/s 12:18
dy # ls -l
total 10156240
-rw-r--r-- 1 root sys 5199986688 Mar 12 14:40 VMS732X8.IMG
Now, the other way it's a little different:
dyi # scp dy:/usr/test2/VMS732X8.IMG .
VMS732X8.IMG 100% 863MB 7.9MB/s 01:49
protocol error: expected control record
dyi # ls -l
total 1767616
-rw-r--r-- 1 root sys 905019392 Mar 12 03:12 VMS732X8.IMG
Note that 905019392 looks suspiciously like
the actual file size less 4GB, which makes it
look as if the older server is
misinterpreting/misreporting the file size.
With a file in the 2GB-4GB range, it's all
similar when it works:
dy # scp dyi:/usr/test/VMS732X4.IMG .
VMS732X4.IMG 100% 2480MB 5.8MB/s 07:05
dy # ls -l
total 5110512
-rw-r--r-- 1 root sys 2599993344 Mar 12 15:31 VMS732X4.IMG
But the failure is different here, where a
32-bit signed size value would go negative:
dyi # scp dy:/usr/test/VMS732X4.IMG .
protocol error: size not delimited
> [...] is there a 4GB limit for scp?
Apparently for some values of "scp", yes.
So, how did _your_ tests go?