1832754 Members
2858 Online
110045 Solutions
New Discussion

tar copy

 
Allanm
Super Advisor

tar copy


I am am copying stuff over from a NAS to my unix server through a samba mount but it has so far copied 12 GB since Friday. I checked up on the network interface on my server and it is fine - 100mbps full duplex. How do I troubleshoot further.

Thanks.
Allan
7 REPLIES 7
Allanm
Super Advisor

Re: tar copy

I am using the following command to copy stuff over :

tar -cf - logs|(cd /dir1;tar -xpf -)
Allanm
Super Advisor

Re: tar copy


I need to copy something around 500GB of data.
John Poff
Honored Contributor

Re: tar copy

Hmmmm. 12 Gb in 4 days works out to be 3 Gb per day. 500 Gb divided by 3 Gb per day works out to be about 166 days. At this rate, your copy should be done by the end of June. :)

I'm not sure, but I think you might need a faster connection between your Unix box and the NAS. Do you have some kind of tape backup available to the NAS, so that you could backup the files to tape and them restore them to your Unix box?

JP
A. Clay Stephenson
Acclaimed Contributor

Re: tar copy

>> I checked up on the network interface on my server and it is fine - 100mbps full duplex


Well, maybe. All you have done (or at least that's all you have said that you have done) is checked on the network interface on your server. Have you checked the settings on the other end of the connection (ie, the corresponding ethernet switch port)? If one end of a connection is hard-set to, say, 100FD the other end of the same connection must also be hard-set to 100FD.

A duplex mismatch (which is all but guaranteed if one end is hard-set and the other end is set to auto-negotiate) would easily explain your performance. Moreover, the mismatch would not even be noticible during a telnet or rlogin session because the bandwidth requirements are so low but would be terrible in an FTP or NFS session.

It should be noted that you need to check both ends of all the hosts involved in this transfer.
If it ain't broke, I can fix that.
Tim Nelson
Honored Contributor

Re: tar copy

Try cp. Not that there is anything wrong with you using the pipe between tars but .. If one thing does not work try something else.

TwoProc
Honored Contributor

Re: tar copy

I'm thinking you've got a mismatch on one end or the other. Is your server connection set up at your main switch to be 100MBS full duplex as well? Or, is it set to auto? I've found that it's important to have both switch and server set the same, and to not ever rely on an auto setting. Not following this rule, can easily generate the very issue you're seeing.

Another issue: Can't you hook up that NAS mount point directly to your server as an NFS mount point? I've not used NAS before, but I've always understood NAS to be NFS equivalent/compatible.
We are the people our parents warned us about --Jimmy Buffett
V. Nyga
Honored Contributor

Re: tar copy

Hi,

start 'landiag' - 'lan', then
'display = Display LAN Interface status and statistics registers'
There you can see 'FCS Errors = ??'
if ?? isn't zero and it's growing then you've a network problem (i.e. a speed msmatch).

HTH
Volkmar
*** Say 'Thanks' with Kudos ***