Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
04-17-2011, 03:09 PM
|
#1
|
|
LQ Newbie
Registered: Sep 2009
Posts: 16
Rep:
|
Samba - Copying between shares
Hey Guys,
I recently replaced my windows fileserver with one running Ubuntu. One thing I've noticed (which is a annoying) is that when I copy files between two samba shares from my windows machine, it copies the file through my PC to the new destination. On windows shares it just did some sort of local copy (ie it took about 2 seconds) rather than 3-4 minutes. Is this the normal behaviour, is there any way around it on Linux?
Cheers
|
|
|
|
04-17-2011, 03:54 PM
|
#2
|
|
Senior Member
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,856
|
Hello reticent,
as far as I know the behavior in Windows is equal. If you copy files from one share to another (even if both shares are on the same computer) it will be copied over your PC.
If your new fileserver is to slow, I'd recommend to check the DNS-settings. Did you make sure that every client can resolve the server's name? is your router properly configured?
The most efficient method would be to connect via ssh to one of the computers with the shares and use the scp command to copy the files.
Markus
Last edited by markush; 04-17-2011 at 03:55 PM.
Reason: typo
|
|
|
1 members found this post helpful.
|
04-17-2011, 04:03 PM
|
#3
|
|
LQ Newbie
Registered: Sep 2009
Posts: 16
Original Poster
Rep:
|
In that case, perhaps I'm mistaken. I will test tomorrow at work to see if I can replicate the issue. I'm almost certain on windows I had a 'incoming' share, and then an 'apps' share and I could copy files between the two without it coming via my PC! I move a lot of big files (2-4GB) so it takes a little while on a 100mb link. I'm maxing out that link so the bottleneck is simply the network connect I have to the server.
Thanks for the suggestion re: SSH'ing to the server and copying it there. I guess I'm just a little lazy, it's easy to drag and drop!
Cheers
|
|
|
|
04-17-2011, 04:43 PM
|
#4
|
|
Moderator
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
That doesn't sound right. I think the use of rpc calls should cause the traffic to go between the two servers. What happens if you map both shares? Does copying between the two mapped shares in the cli take as long?
I would look at the samba logs for clues.
|
|
|
|
04-17-2011, 05:26 PM
|
#5
|
|
LQ Newbie
Registered: Sep 2009
Posts: 16
Original Poster
Rep:
|
I think you may have misunderstood what I was asking, which is probably my own fault. I am copying files between shares on the same server, ie I have a share on the same server /raid/apps and /raid/incoming. If I drag file, from windows, between those two shares the files come via the PC that did the drag and drop. I _thought_ on windows when doing the same thing it didn't do this..
|
|
|
|
04-17-2011, 05:30 PM
|
#6
|
|
Moderator
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
Thanks for the reply. Yes, I took it that you were copying a file from one server to another.
I tried a test myself. It seems that going through a graphical client, the data stream passes through the client so it can display the progress indicator.
I even used konqueror after sshing to a server, so the client was on the same machine. It might not be a samba issue but a GUI client issue. I realize I'm using a different client in this test, as I don't use Windows at all.
I'd suggest two experiments.
1) map the shares and copy the file in the terminal in the DOS terminal. E.G.
cp I:file J:file
2) ssh to the server and copy it, preceding the command with "time"
time cp dir1/file dir2/file
The time command will return the user and system time used executing the command.
The first test will still use Samba, but not a GUI client.
The second test won't use Samba.
Last edited by jschiwal; 04-17-2011 at 06:03 PM.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 03:53 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|