- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Data transfer to remote host over pipe(|) fails
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
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
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
07-12-2011 02:08 AM - edited 07-12-2011 02:17 AM
07-12-2011 02:08 AM - edited 07-12-2011 02:17 AM
Data transfer to remote host over pipe(|) fails
Hi,
In a ksh script , following commands are executed ( The intension is to copy ZYX directory to remote host).
---------------
cd /tmp/XYZ
tar cpf - ZYX 2> /dev/null | compress -q | remsh <remote host> "cd /tmp/XYZ; uncompress -q | tar xpf - 2> /dev/null"
----------------
Note :
- ZYX is a directory under /tmp/XYZ on the local machine and that contains 2 data files of total size 1312 Kb.
- Operating System is 11.31 HPUX Itanium.
After the execution,
- sometimes the size of the 2 files differs on local host and remote host
- sometimes the size of the 2 files are same but the cksum are different.
Could you please let me know how to solve the issue to have the complete data transfer over the pipe(|) without any data loss.
Thanks,
Biswal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2011 06:53 AM
07-12-2011 06:53 AM
Re: Data transfer to remote host over pipe(|) fails
Are you sure that source files aren't changing?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2011 07:20 AM
07-12-2011 07:20 AM
Re: Data transfer to remote host over pipe(|) fails
I've seen this wkith remsh and other tools in this library.
If you try the same thing with ssh, the transfer will be slower, but may be more reliable. You do need to make sure the source files are not changing.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2011 05:04 PM
07-12-2011 05:04 PM
Re: Data transfer to remote host over pipe(|) fails
Does it fail without the compress/uncompress?
What compress(1) has the -q option?
>sometimes the size of the 2 files differs on local host and remote host
If these are text files, what does diff(1) show? If not, what does "cmp -l" show?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2011 11:41 PM - edited 07-12-2011 11:42 PM
07-12-2011 11:41 PM - edited 07-12-2011 11:42 PM
Re: Data transfer to remote host over pipe(|) fails
I d like to add something ,but first summarize things should be sorted out:
- Make sure source file not changing as Turgay stated ,especially in case of dynamic source fie data during transfer to destination.
- Need clue; what kind of error you as Dennis asked before; issue the diff command output if it is text file, otherwise use cmp
- Remsh; you probably need full-path instead of relative-path due to its nature from restricted shell area.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2011 04:20 AM - edited 07-13-2011 04:26 AM
07-13-2011 04:20 AM - edited 07-13-2011 04:26 AM
Re: Data transfer to remote host over pipe(|) fails
-q option is for "quite" mode. i.e. no message will be printed on console
I have tried to rerun the test several times, I see only difference in cksum, but not in size. But earlier I had seen the difference in size.
I use the transferred file as an input to some other tool and that fails. If I manually copy the file by using rcp/scp then tool which takes the transferred file as input does not fail and the cksum of the files are same on both local and remote host.
The files under the directory are data files. I executed "cmp -l" on both the files ( local and remote) , I can only see 0 in the third column which means files are identical. But the cksum are differnt.
Please note that complete path of remsh has been used.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2011 04:53 AM
07-13-2011 04:53 AM
Re: Data transfer to remote host over pipe(|) fails
>But the cksum are differnt.
how do you use chksum ?
both environment in HP-UX OR they are different OS ? they are both files OR source is on DVD ??
issue the command and output you saw difference here,
there is no detailed explanation to solve issue..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2011 04:54 AM
07-13-2011 04:54 AM
Re: Data transfer to remote host over pipe(|) fails
Also is it possible that some of your files are sparse files?
( du -k file , and ls -l file doesn't give the same size)
I often do the same with gzip, but never saw any type of error.
What are the size of those files?
if you do the same locally from /tmp/XYZ to /tmp/XYZ2 do you have the same problem?