You are not logged in.

#1 2015-07-29 12:59:48

tuxflo
Member
Registered: 2015-07-29
Posts: 6

Server-side-copy on Arch Linux

Hey guys!

I'm looking for a way to use a networkprotocol that supports server-side-copy (and move) for using it in my home network with my NAS.
After some research I found out, that the Apple Protocol (AFP) supports that. But I couldn't find a answer if the linux clients support that too.

I also found this post about server-side-copy with samba, but I'm confused with the clients: is (or will) it availible in the cifs client or do I have to use smbclient and what does he mean with samba 4.3 because I thought that samba is just the server system and not the client?
There is also an article in the samba wiki that mentions a "SMB2 FSCTL_SRV_COPYCHUNK" request but I can not find some informations how to use such a request.

I also read that the NFSv4.2 standard will be able to deal with server-side-copy but my NAS system is still using NFSv3 so I would prefer a different solution.

(My main reason why I'm looking for that feature is, that I have so sort a lot of raw-images and copying/moving them via wifi/LAN is really slow)

Thanks a lot for helping!

Greetings from germany,
Flo

Offline

#2 2015-07-29 13:26:13

Soukyuu
Member
Registered: 2014-04-08
Posts: 854

Re: Server-side-copy on Arch Linux

Last time I tested, server-side-copy worked just fine via smb. Do keep in mind that it only works within a share, so copying from shareA/folderA to shareA/folderB will work server-side, but copying to shareB/folderB will not. This is the same behavior as you get in windows though, so seems like a protocol limitation. I have no idea how AFP handles that, though.

edit: sshfs is supposed to support server-side copy as well, but I just tested it with mine and it doesn't seem to, neither with cp nor dolphin.

Last edited by Soukyuu (2015-07-29 13:30:26)


[ Arch x86_64 | linux | Framework 13 | AMD Ryzen™ 5 7640U | 32GB RAM | KDE Plasma Wayland ]

Offline

#3 2015-07-29 13:38:55

tuxflo
Member
Registered: 2015-07-29
Posts: 6

Re: Server-side-copy on Arch Linux

Hey Soukyuu!

Thanks for the reply.
How did you mount the smb share? I tried gvfs, and cifs (I think that is what is used if I just enter mount //nas/shareA /mnt/shareA) and if I copy a file (512MB file created using dd) like

cd /mnt/shareA
cp ./test ./test2

all trafic is passed via network and the process takes a long time. I know that it is just possible on the same Host, but thats what I want to do, because all my data is stored on the NAS.

UPDATE:
I also tried to mount the share directly using Dolphin and the smb path smb://user@host/shareA and the traffic is still passed via network even if I copy & paste a file in the same folder.

Last edited by tuxflo (2015-07-29 13:47:29)

Offline

#4 2015-07-29 20:11:44

Soukyuu
Member
Registered: 2014-04-08
Posts: 854

Re: Server-side-copy on Arch Linux

What's your NAS samba version? According to samba wiki, you need to be running samba 4.1.0+ on both ends to be able to use it.
I myself am mounting my shares via fstab, so using the cifs module. Though at the moment, because dolphin refuses to parse .directory file for smb shares, I'm using sshfs.


[ Arch x86_64 | linux | Framework 13 | AMD Ryzen™ 5 7640U | 32GB RAM | KDE Plasma Wayland ]

Offline

#5 2015-07-29 20:56:17

tuxflo
Member
Registered: 2015-07-29
Posts: 6

Re: Server-side-copy on Arch Linux

Ok thats where the problem is...

smbd (samba daemon) Version 3.6.25
smbd (samba daemon) is running.
max protocol SMB 2.0 enabled.

3.6.26 != 4.1 I hope that the upcomming firmware update will fix that.
Thanks a lot for helping.

Just for interest: does somebody know if server-side-copy is supported using AFP? Just in case that the new firmware still sticks to samba version 3.x

Offline

#6 2015-07-29 21:40:34

Soukyuu
Member
Registered: 2014-04-08
Posts: 854

Re: Server-side-copy on Arch Linux

I think it might be faster to just configure a share with it and see for yourself tbh. Apparently netatalk is a linux AFP client to be used for that.

edit: whoops, looks like it's the server part, sorry. Try gvfs-afp instead.

Last edited by Soukyuu (2015-07-29 21:43:04)


[ Arch x86_64 | linux | Framework 13 | AMD Ryzen™ 5 7640U | 32GB RAM | KDE Plasma Wayland ]

Offline

Board footer

Powered by FluxBB