Panos Koutsoyannis
2004-Dec-11 21:16 UTC
[Samba] Copying between physical drives within samba mount - very slow.
I have a situation with a linux box that has several drives mounted under /master say /master/drive1 and /master/drive2 ..etc. I mount /master on my windows machine or os x machine using samba. when I move files from /master/drive1 to /master/drive2 the copy process is very slow. it seems samba actually sends the file over he network from the linux machine to the pc on which it is mounted and back to the linux machine. This only happens when there are different drives involved. however if i move files within the same drive it is fast as expected. why does samba send the whole file across the network and back? is there a way to avoid this? Here is my config red hat 9 samba 3.0.x system drive = / data drive 1= /master/drive1 data drive 2 = /master/drive2 mounted system on pc under /master so I see on my pc drive1 folder and drive2 folder. Dragging from drive1 to drive2 seems to pass the whole file across the network from drive1 to drive2. If I create folders ... say /master/folder1 and /master/folder2. these folders are not seperate drives. Then movign files between them is lightening fast as expected. Hope someone can help. panos
Mitch (WebCob)
2004-Dec-11 23:55 UTC
[Samba] Copying between physical drives within samba mount - veryslow.
> -----Original Message----- > From: samba-bounces+mitch=webcob.com@lists.samba.org [mailto:samba- > bounces+mitch=webcob.com@lists.samba.org] On Behalf Of Panos Koutsoyannis > Sent: December 11, 2004 1:11 PM > To: samba@lists.samba.org > Subject: [Samba] Copying between physical drives within samba mount - > veryslow. > > I have a situation with a linux box that has several drives mounted under > /master > say /master/drive1 and /master/drive2 ..etc. > I mount /master on my windows machine or os x machine using samba. > > when I move files from /master/drive1 to /master/drive2 the copy process > is very slow. > > it seems samba actually sends the file over he network from the linux > machine to the pc on which it is mounted and back to the linux machine. > > This only happens when there are different drives involved. however if i > move files within the same drive it is fast as expected. >[Mitch says:] This is similar to Linux itself - if you were moving within an NFS mount point, you would move... which I believe is commonly implemented as a hardlink to the second location OR a copy if on a different physical location, then an unlink from the old location... Windows / SMB has the same limitation in the protocol - There is no "rpc move" used (or even existing I think?) so it does what it has to do within the protocol - you will of course see much faster throughput by doing these major moves locally on the server box through a shell if that is an option for you. m/
panos
2004-Dec-12 00:07 UTC
[Samba] Copying between physical drives within samba mount - veryslow.
Thanks for the response. Yeah I saw the same behavior with NFS. It would be nice to have an rpc.move. However, if I use netatalk the does not copy across the wire. I have not looked into the detail of the protocol. However, it has its own limitations. Do you know of any movement in this area? Logging in directly is not an option for our clients. I have looked at netatalk, samba, nfs and webdav stuff. Panos -----Original Message----- From: Mitch (WebCob) [mailto:mitch@webcob.com] Sent: Saturday, December 11, 2004 3:56 PM To: panos@kamaradata.com; samba@lists.samba.org Subject: RE: [Samba] Copying between physical drives within samba mount - veryslow.> -----Original Message----- > From: samba-bounces+mitch=webcob.com@lists.samba.org [mailto:samba- > bounces+mitch=webcob.com@lists.samba.org] On Behalf Of PanosKoutsoyannis> Sent: December 11, 2004 1:11 PM > To: samba@lists.samba.org > Subject: [Samba] Copying between physical drives within samba mount - > veryslow. > > I have a situation with a linux box that has several drives mountedunder> /master > say /master/drive1 and /master/drive2 ..etc. > I mount /master on my windows machine or os x machine using samba. > > when I move files from /master/drive1 to /master/drive2 the copyprocess> is very slow. > > it seems samba actually sends the file over he network from the linux > machine to the pc on which it is mounted and back to the linuxmachine.> > This only happens when there are different drives involved. howeverif i> move files within the same drive it is fast as expected. >[Mitch says:] This is similar to Linux itself - if you were moving within an NFS mount point, you would move... which I believe is commonly implemented as a hardlink to the second location OR a copy if on a different physical location, then an unlink from the old location... Windows / SMB has the same limitation in the protocol - There is no "rpc move" used (or even existing I think?) so it does what it has to do within the protocol - you will of course see much faster throughput by doing these major moves locally on the server box through a shell if that is an option for you. m/
david rankin
2004-Dec-12 05:05 UTC
[Samba] Copying between physical drives within samba mount - veryslow.
> when I move files from /master/drive1 to /master/drive2 the copy process > is very slow. > > why does samba send the whole file across the network and back? is there > a way to avoid this?why not rsync from /master/drive1 to /master/drive2? -- David C. Rankin, J.D., P.E. RANKIN LAW FIRM, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 (936) 715-9333 (936) 715-9339 fax www.rankin-bertin.com -- ----- Original Message ----- From: "Panos Koutsoyannis" <panos@kamaradata.com> To: <samba@lists.samba.org> Sent: Saturday, December 11, 2004 3:10 PM Subject: [Samba] Copying between physical drives within samba mount - veryslow.> > > I have a situation with a linux box that has several drives mounted under > /master > say /master/drive1 and /master/drive2 ..etc. > I mount /master on my windows machine or os x machine using samba. > > > Here is my config > red hat 9 > samba 3.0.x > system drive = / > data drive 1= /master/drive1 > data drive 2 = /master/drive2 > mounted system on pc under /master so I see on my pc drive1 folder and > drive2 folder. > Dragging from drive1 to drive2 seems to pass the whole file across the > network from drive1 to drive2. > > If I create folders ... say /master/folder1 and /master/folder2. these > folders are not seperate drives. Then movign files between them is > lightening fast as expected. > > Hope someone can help. > > panos > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba >