thread184-1792486
The thread I noted above has a reply from VFP superman Olaf where Olaf states that Oplocks cannot be disabled on Windows Server (newer versions) and that these registry settings are to be set on each client.
I have a very busy application running on a Server 2008 R2 server (50 users on a LAN and lots of data) where I have disabled Oplocks and disabled SMB2 and SMB3 on the server.
I also have the registry setting on the clients to not request a Oplock.
I am going to be moving to Server 2019 shortly and expected to take the same approach, but seeing Olaf's post, I need others to confirm what I am to do regarding the well-known issue with file corruption with VFP tables in a LAN environment with the data stored on a Windows Server server.
Olaf stated:
Nowadays oplocks can't be disabled. It's a really high risk to run an old enough Server where SMB can be configured about that, as RANSOMWARE exploits vulnerabilities in older SMB versions. So forget about learning whether that's turned on or off. You should assume it's always on and set these keys on each client within setup of your application:
CODE
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\LanmanWorkstation\Parameters]
"FileInfoCacheLifetime"=dword:00000000
"FileNotFoundCacheLifetime"=dword:00000000
"DirectoryCacheLifetime"=dword:00000000
1. Can others confirm if this is true - is this the approach necessary to avoid the VFP file corruption problem?
2. I have four servers and there are times where I have one of the servers access the VFP application running on another server (where a server (not the one hosting the VFP application) is a client). Do I put these same settings in the server's registry or will that cause problems?
3. If this is in fact the registry setting I should have on the client for newer server OSes, do you see any reason why I shouldn't add it to the existing clients and Server 2008 R2 setup I have running now?
Thanks everyone.
Bill
The thread I noted above has a reply from VFP superman Olaf where Olaf states that Oplocks cannot be disabled on Windows Server (newer versions) and that these registry settings are to be set on each client.
I have a very busy application running on a Server 2008 R2 server (50 users on a LAN and lots of data) where I have disabled Oplocks and disabled SMB2 and SMB3 on the server.
I also have the registry setting on the clients to not request a Oplock.
I am going to be moving to Server 2019 shortly and expected to take the same approach, but seeing Olaf's post, I need others to confirm what I am to do regarding the well-known issue with file corruption with VFP tables in a LAN environment with the data stored on a Windows Server server.
Olaf stated:
Nowadays oplocks can't be disabled. It's a really high risk to run an old enough Server where SMB can be configured about that, as RANSOMWARE exploits vulnerabilities in older SMB versions. So forget about learning whether that's turned on or off. You should assume it's always on and set these keys on each client within setup of your application:
CODE
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\LanmanWorkstation\Parameters]
"FileInfoCacheLifetime"=dword:00000000
"FileNotFoundCacheLifetime"=dword:00000000
"DirectoryCacheLifetime"=dword:00000000
1. Can others confirm if this is true - is this the approach necessary to avoid the VFP file corruption problem?
2. I have four servers and there are times where I have one of the servers access the VFP application running on another server (where a server (not the one hosting the VFP application) is a client). Do I put these same settings in the server's registry or will that cause problems?
3. If this is in fact the registry setting I should have on the client for newer server OSes, do you see any reason why I shouldn't add it to the existing clients and Server 2008 R2 setup I have running now?
Thanks everyone.
Bill