I am a new Rockstor user. I have been running various versions of an Ubuntu server DIY NAS/container host, but I decided to give Rockstor a try this week, as it looked like it’d be more friendly to manage. I got a server set up very quickly, but then I found that my Samba write speeds were much slower than on my other server.
Samba read is great. Samba write is OK for large files, although even with them it will occasionally dip down to zero or near zero speeds. Even deleting folders can be quite slow. I fully understand that small files are not going to transfer as quickly, but the write will crawl and often drop down to zero.
My previous server (similar HW and network) will be at least many times faster for writing the same folders. As an example, a 1 GB (216 file) folder just took about 5 seconds to copy to my Ubuntu NAS, and it is only 1/2 done after 2:30 on my Rockstor. As you can see in the graph, it runs for a bit and then kind of craps out. Large files will do the same, but the speed will recover. With small files, it just stays slow for the rest of the transfer.
When I check the Samba log files, I see errors that I don’t see on my other server. Lots of these:
Allowed connection from 192.168.0.3 (192.168.0.3)
[2023/07/03 17:13:44.482209, 1] ../../source3/smbd/service.c:357(create_connection_session_info)
create_connection_session_info: **guest user** (from session setup) not permitted to access this share (seagate_test)
[2023/07/03 17:13:44.482231, 1] ../../source3/smbd/service.c:546(make_connection_snum)
create_connection_session_info failed: **NT_STATUS_ACCESS_DENIED**
However, I had commented out map to guest = Bad User, and I successfully logged into the share.
I tested my network between machines, and I get 950+ mbps in both directions. And copying files via SCP fly, so I believe that Samba is getting hung up on this guest user thing. I’ve tried many suggestions I’ve found in forums, and in fact I just installed Rockstor from scratch to make sure that I didn’t inadvertently mess something up earlier. Same experience.
I really want to make Rockstor work (and subscribe), as it’ll make my NAS life easier, but I can’t switch over if I can’t get this working. I keep hoping that I’m missing something dumb, but I’ve never had this problem with Samba before. The fact that others aren’t complaining about it gives me hope that it’s fixable. If anyone could help me fix this, I would be incredibly grateful.
Thanks!
Smb.conf:
[global]
log level = 3
# map to guest = Bad User
cups options = raw
log file = /var/log/samba/log.%m
printcap name = /dev/null
load printers = no
####BEGIN: Rockstor SAMBA GLOBAL CUSTOM####
workgroup = workgroup
####END: Rockstor SAMBA GLOBAL CUSTOM####
####BEGIN: Rockstor SAMBA CONFIG####
[seagate_test]
root preexec = "/opt/rockstor/.venv/bin/mnt-share seagate_test"
root preexec close = yes
comment = Samba-Export
path = /mnt2/seagate_test
browseable = yes
read only = no
guest ok = no
wide links = yes
follow symlinks = yes
####END: Rockstor SAMBA CONFIG####
Testparm:
Load smb config files from /etc/samba/smb.conf
Loaded services file OK.
Weak crypto is allowed
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
# Global parameters
[global]
load printers = No
log file = /var/log/samba/log.%m
printcap name = /dev/null
idmap config * : backend = tdb
cups options = raw
[seagate_test]
comment = Samba-Export
path = /mnt2/seagate_test
read only = No
root preexec = "/opt/rockstor/.venv/bin/mnt-share seagate_test"
root preexec close = Yes
wide links = Yes
Hardware:
Beelink Mins 12 Pro (N100) with gigabit LAN.
iperf shows gigabit speeds in both directions.
SCP copy to same share using same files is at normal, acceptable speeds.