View unanswered posts | View active topics It is currently Wed May 22, 2013 3:52 pm



Reply to topic  [ 3 posts ] 
 SAMBA/NAS Hang workaround that works 
Author Message

Joined: Thu Jun 14, 2012 2:51 pm
Posts: 1
Post SAMBA/NAS Hang workaround that works
A lot of people have this problem, so did I.
When copying large files the PlayonHD samba server hangs.
Tried everything and then figured it out.

It is related to SMB 2.0 and security settings which are incompatible with SAMBA.
Not just the playon but more NAS devices have these similar problems.
The problem is client related. XP is fine but Vista and Windows 7 have these problems because of higher security settings.
This is fairly to change by lowering these settings in the local policies.

The workaround per client:
Start local policy editor: Start, Run, GPEDIT.MSC
Local Computer Policy, Computer Configuration, Windows Settings, Security Settings, Local Policies, Security options:
- Network security: LAN Manager authentication level = Send LM & NTLM responses
- Network security: Minimum session security for NTLM => Disable: Require 128-bit encryption

After that: NO SAMBA ISSUES.
Samba just cannot handle the new authentication and encryption protocols.
My readyNAS works smoother now too.


Last edited by wrobijns on Thu Jun 14, 2012 7:02 pm, edited 2 times in total.



Thu Jun 14, 2012 3:01 pm
Profile

Joined: Tue Oct 05, 2010 9:35 pm
Posts: 4299
Location: Netherlands
Post Re: SAMBA/NAS Hang workaround that works
Thank you. I moved your post to the How To section.

_________________
Evert

Playon!HD Mini Firmware 7317 modified [192.168.178.3]
PC Windows 7-64 SP1 [192.168.178.DHCP]
PC Windows 7-64 SP1 + Virtual XP SP3 [192.168.178.DHCP]
Fritz!Box 7390 [192.168.178.1]
Seagate BlackArmor 400 4 x 3TB in RAID-5 [192.168.178.2]


Thu Jun 14, 2012 3:18 pm
Profile

Joined: Fri Feb 11, 2011 9:12 pm
Posts: 4
Post Re: SAMBA/NAS Hang workaround that works
I have implemented these changes in Windows 7 Home Premium by editing the registry as shown below. However, I have not noticed any change in the Samba stability. In other words, the AC Ryan NAS drive still drops off my network after some time. I have only implemented the change for the past day and I haven't done extensive testing, but I have seen the same problem as before so far.

I'm not entirely sure this How To is meant to fix the Samba stability problem. I think if if truly did fix the problem, then all the dissatisfied PlayonHD owners would be happy now.

Here is how I edited the registry, which is information I found elsewhere on the web related to making these changes to improve Samba performance in Win7.

LM Authentication Level registry edit procedure and codes shown http://www.sevenforums.com/network-sharing/202099-secpol-msc-network-security-workaround.html and http://www.tannerwilliamson.com/2009/09/14/windows-7-seven-network-file-sharing-fix-samba-smb/(same fix, different blog)
Go into regedit and Navigate to:
HKLM|System|CurrentControlSet|Control|LSA
If the key LMCompatabilityLevel is present, set it's value to 1.
If not present, add a new DWORD (32 bit value), and set its value to 0x1 (Hexadecimal 1).
Reboot. And see how you go. Test your system to see if changing this setting impacted other clients or services.
If this does not work, I'd return the registry to the way it was before.
When LM Authentication level is not defined the keyword is generally not present in the registry.
The values are;
0 = Send LM & NTLM responses
1 = Use NTLMv2 responses if negotiated
2 = Send NTLM response only
3 = Send NTLMv2 response only
4 = Send NTLMv2 response only. Refuse LM
5 = Send NTLMv2 response only. Refuse LM & NTLM

Other Samba registry changes described http://www.sevenforums.com/network-sharing/3737-samba-network-share-issue-windows-7-a-3.html
Used the LM+NTLM security setting (from above), and also the settings in the registry (Windows7 - SambaWiki)
HKLM\System\CCS\Services\LanmanWorkstation\Parameters
DWORD DomainCompatibilityMode = 1
DWORD DNSNameResolutionRequired = 0


Tue Jul 17, 2012 12:21 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by: phpBB | Innitial forum Design by: STSoftware | Modified by: AC Ryan.