- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- tar problem
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-22-2001 06:42 AM
03-22-2001 06:42 AM
tar problem
i'm trying to copy a user's area from one ws to another. The area is about 3 GB.
Usually i use the following command (it always works, also with greater areas):
tar cf - directorytocopy | remsh new-ws '(cd /local_user ; tar xvf - )'
The copy begins and after a few minutes it stops and i'm having the following error message on the ws where i do the tar command:
connection reset by a peer. connection closed.
What does it mean? No other root is killing or closing my tranfer. Could it be a network problem?? What should i do?
Thanks & regard
- Tags:
- tar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2001 06:58 AM
03-22-2001 06:58 AM
Re: tar problem
rcp for remote copy. Just set up an .rhosts file on the remote system and you can then do the remote copy
rcp -p -r /dir/all_dir&files_here remote_host:/thisdir/
Just a thought,
/rcw
-p maintains file permissions/ownership
-r copy all files and directories
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2001 07:06 AM
03-22-2001 07:06 AM
Re: tar problem
Does the are have a file over 2Gb in size? if so tar has a problem.
If you do have a 2Gb + file will it zip below 2Gb?
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2001 07:25 AM
03-22-2001 07:25 AM
Re: tar problem
Info on Tar and file size:-
http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0xe29d0559ff7cd4118fef0090279cd0f9,00.html
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2001 07:29 AM
03-22-2001 07:29 AM
Re: tar problem
A possible fix to to NFS export from the source machine and them mount it on the target machine.
then cd to mounted dir
find .|cpio -pudvm /
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2001 07:30 AM
03-22-2001 07:30 AM
Re: tar problem
there aren't files greater that 2 gb....because as filesystem i didn't set the largefiles option..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2001 07:34 AM
03-22-2001 07:34 AM
Re: tar problem
Can you telnet to the destination workstation? and does it stay up?
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2001 07:49 AM
03-22-2001 07:49 AM
Re: tar problem
the 2 ws has different O.S. One is 10.20 and the other in 11.00.
I saw your description to mount nfs and then do cpio...does it maintain links?? i never used cpio, can you make me an example please...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2001 08:00 AM
03-22-2001 08:00 AM
Re: tar problem
As one has 10.20 and the other 11.00 there is a difference in nfs and the connection is very weak/slow.
Suggestions:-
Tar the files up locally and then ftp the tar file to the target machine. This will work providing you have the space on the source machine.
Thanks for the points that gave me my wizards hat ;-)
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2001 08:13 AM
03-22-2001 08:13 AM
Re: tar problem
the only way is to do the tar on a tape, right?? In this mode, i have to go to the place where ws is, mount the DAT, do the tar, go to the other ws and so forth..it will be very long and boring...there isn't another way??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2001 08:23 AM
03-22-2001 08:23 AM
Re: tar problem
You can use "ar" to create portable archives (it's similar to the old "arj" in MS-DOS).
good luck.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2001 08:51 AM
03-22-2001 08:51 AM
Re: tar problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2001 01:15 AM
03-27-2001 01:15 AM
Re: tar problem
I'm try to do this:
tar cf - file | remsh ws '(cd / ; tar xvf -)'
but i'm having that strange error..connection closed by a peer..
this command works on all ws, unless on this. do i have to configure something because it works??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2001 01:49 AM
03-27-2001 01:49 AM
Re: tar problem
Bye, Thomas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2001 01:54 AM
03-27-2001 01:54 AM
Re: tar problem
Other possible solution is to
tar cvf - mydir | gzip -9 -c mydir.tar.gz
HTH
-rob-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2001 02:15 AM
03-27-2001 02:15 AM
Re: tar problem
I've just had a look again at the thread and thought I should explain myself better. If you only have to do this for one user, mounting the tape, doing the tar and restoring on one system would probably have taken less time than you've spent on the problem so far. If you have lots of users, this is not a good way to go.
Using tar cvf - mydir | gzip -9 -c > mydir.tar.gz will not create a large intermediary file on current disk. I believe /tmp will be used by gzip
But getting back to the original problem of "connection reset...", my own experience of HP's NFS has not been great. I run nightly builds using NFS mounted disks and HP build takes 3-4 times longer that Solaris build. I know the machines are different, but have tried builds to local disks in other jobs and seen similar performance from HP NFS.
regards
-Robert-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2001 02:16 AM
03-27-2001 02:16 AM
Re: tar problem
mount from the new ws the directory i want to copy...so then i will do a local copy and not a remote one...
that will be possible..i will try..
I know it is possible to do tar on tape, but it is longer..i'm working remotely...if i have to use tape, i have to go to the ws, mount the tape, do the tar, go to the new ws and so....
it will be very long...here is a big place..i don't have ws in the same place..they are in different buildings...
however if nfs doesn't work...i will use tape...
thanks all again
regards
tarek
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2001 02:28 AM
03-27-2001 02:28 AM
Re: tar problem
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2001 03:25 AM
03-27-2001 03:25 AM
Re: tar problem
Some questions which may help:
Have you compared /etc/inetd.conf files on your workstations? Are there any differences for remshd?
Are you using the same shell on each workstation?
Bye, Thomas