Linux - SoftwareThis 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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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
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!
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 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..
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.