PDA

View Full Version : Linux Samba / Mount to NTFS slow (NFS)



thetransporter
08-09-2018, 11:14 PM
I moved my NTFS drive to a Centos machine.

I was able to mount i and share it no problem. When it was shared with Windows it was super fast.

the mount commands I tried

mount -o big_writes /dev/sdb1 /mnt/ntsfdrive
mount /dev/sdb1 /mnt/ntsfdrive

it becomes sluggish , espically when using uTorrent.

Samba Info:
Samba version 3.6.23-51.el6


smb.conf entry related to share #=private iinfo

[global]
netbios name = ###
load printers = yes
cups options = raw
writeable = yes
server string = ####%v
socket options = TCP_NODELAY
write list = ######r,@###
workgroup = ######
os level = 20
valid users = #####
admin users = ####
security = user
passdb backend = tdbsam

follow symlinks = yes
wide links = yes
unix extensions = no
kernel oplocks = yes
create mask = 0777
directory mask = 0777
socket options = TCP_NODELAY

[win]
path = /mnt/ntfsdrive


any suggestions would be appreciated. thank you in advance
i did try dozens of different solutions, started with https://forums.freenas.org/index.php?threads/slow-performance-nfs-on-windows-and-cifs-smb-on-linux.50686/

Zhariak
08-10-2018, 07:24 AM
Did you manually modify the Samba conf file, or are you running defaults?

When the system booted, or when you mounted the NTFS volume, did you see any errors or warnings in the kernel logs? Can do a "dmesg | grep sdb" and see if there's anything funky or odd... If you have time just do a dmesg, and go through it looking for anomalies.

Test reading and writing from the linux box itself to rule out SMB and see if it's the drive.

I see your posted on FreeNAS forums... If you're running FreeNAS, is there an easy way you can tell if there's CPU wait on IO? If so it'll mean it's an issue on the drive, or Linux side (and not Samba).

thetransporter
08-12-2018, 12:01 AM
Hi Zhariak how are you thanks for the reply.

I did try it with the defaults to no avail, next time I boot with the system I will see any errors and post them

the FreeNAS post was not me but they had similar issues.

I was reading that upgrading to SMB v4 will fix a lot, but thats a lot of work to upgrade. it wont work on yum and a rpm install got me nowhere.