You are not logged in.
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
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
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
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
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
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