
Offline Files Sync Issue in Windows 7 with Samba…
As SAMBA is used for file sharing on various unix systems including the NAS and SAN storage servers there are sometimes offline files sync issues seen when using Windows vista or 7. following will resolve these problems:
# Verify that the server / device is running Samba 3.0.22 or later. Earlier versions cannot work correctly with Vista Offline Files due to implementation bugs.
# Enable oplocks by adding the following to the Samba configuration file:
* o oplocks = yes
* o level2 oplocks = yes
* o (for level 2 oplocks) kernel oplocks = no
# Enable hidden/system/archive attributes for files by adding the following to the Samba configuration file:
* create mask = 777
* map archive = yes
* map system = yes
* map hidden = yes
Note: Even with these changes, the hidden/system/archive attributes will not work for directories.
If this still doesn’t resolve the issue:
# Create a DWORD value named RoundUpWriteTimeOnSync under the HKLM\Software\Microsoft\Windows\CurrentVersion\NetCache key (create the key if it does not exist) and set it to 1.
If this issue is seen between Windows vista/7 and Windows file servers, do the following
On the windows server ADD this reg entry and set it to 0:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\MRXSmb\Parameters\
OplocksDisabled REG_DWORD 0 or 1
Default: 0 (not disabled)
And then Changed this entry to 1:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters
EnableOplocks REG_DWORD 0 or 1
Default: 1 (enabled)