File Corruption on File Share (dbf files)
I have a 2008 server setup for testing, we have a FoxPro database that is served off a server share on this box. It is simply files ( .dbf + index files ) that exist on a normal share, not DFS, just plain old share. This application was living on a 2003 server, but testing it on the 2008 server - we are getting corruption. The indexes will randomly corrupt about 10 times a day.I have RDC turned off, it really is just a plain jane server. What changed with plain old file servering between 2003 and 2008?The client PCs are either XP or Vista.
March 4th, 2008 3:43pm

Hi, <This application was living on a 2003 server, but testing it on the 2008 server - we are getting corruption.> Please contact this application provider to make sure this application is compatible with Windows Server 2008. If you test it on Windows server 2003, may I know if this issue still persists? Besides, could you please explain to me more about the file corruption? It's better to give an example and descript the symptom when corruption occurring. Is there any error messages in the Event viewer? <What changed with plain old file service between 2003 and 2008?> There some significant improvement about file service on Window server 2008, such as use SMB (Server Message Block)2.0 protocol, Transactional File IO etc. Prior to Vista, SMB has an architectural limitation in the form of a 64KB buffer size limit which cannot be overcome through the use of TCP window scaling. SMB 2.0 in Vista is a new and redesigned protocol which removes this limitation (Vista is also backwards-compatible with SMB1). About more improvement about file server on Windows server 2008, please take a look at the following resource: http://whitepapers.techrepublic.com.com/webcast.aspx?docid=336898 If anything is unclear, please post back. Morgan
Free Windows Admin Tool Kit Click here and download it now
March 12th, 2008 8:41am

We are the application provider, however it is just a Foxpro application. As I said before, the application was and has been working fine on Windows 2003, we are just in the process of evaluating 2008. This is an internal application we developed. In short, this is a multi user Foxpro application, 10 or so users, and the main corruption was in the index files that VFP creates. The user would simply be prompted after an hour or so that one of the indexes was corrupted. This would effect all users once this happened. What is strange is that this is just a file share with the database files on it. The server itself isnt doing anything but sharing the data. Can I force 2008 to use SMB 1.0 while the bugs are worked out?
March 12th, 2008 5:24pm

Hi, Please understand SMB 2.0 is also backwards-compatible with SMB1. So this issue should be unrelated with SMB protocol. To solidly resolved this kind of issue, I strongly recommend that you review the code to ensure it is fully compatible with Windows Server 2008. Also, for coding related issues, please post them in our MSDN forum for further assistance, where engineers specialize in develop relevant issues. I believe they will assist you with this more efficiently. MSDN Forum http://forums.microsoft.com/MSDN/default.aspx?SiteID=1 Morgan
Free Windows Admin Tool Kit Click here and download it now
March 17th, 2008 6:05am

I understand that SMB 2.0 should be backwards compatible, I would also like you to understand that I have used products like Vista and Outlook 2007 and have learned that things dont always work the first time, in fact they can be (and are) still brutal. It could easily just be an issue with SMB 2.0 as we do have Vista clients. There is NOTHING I can change in the code to fix this problem. Perhaps you can have someone familiar with Microsoft FoxPro help you out on this. I realize it is an older product, and I would love to be rid of it, however it is still in production use at my company. It isnt just "my" foxpro application, its ANYONES. Is Microsoft FoxPro incompatible with SMB 2.0? And again, is there a way I can shut it off, and just force the server to use 1.0?
March 17th, 2008 12:06pm

Hi Ryan,we are developingsoftware with vfp8 and have the same problems with corrupt index files when the tables are located on a windows 2008 server - as you described.Did you find out a solution for this problem?You can send a direct message to stefan.marschall@mks-ag.deThank you.
Free Windows Admin Tool Kit Click here and download it now
November 19th, 2008 7:50am

Hi there,I'm haviing the same problem with a DBase III + Clipper application. Anybody found a solution yet?Jeroen
December 11th, 2008 2:48am

Hi all,It is possible that you all found the solution for this. I'm working at a company that use xBase files a lot. From the international development we got a message about file corruption that are SMB2 related. Allthough I do not get in depth I thing this 'old' protocoll isn't suitable for SMB2.To disable SMB2 read this message:http://www.caseware.com/support/caseknowledge/file-corruption-when-using-windows-vista-windowsAls I found simmilar on:http://www.petri.co.il/how-to-disable-smb-2-on-windows-vista-or-server-2008.htmPerhaps this is what your looking for.Joost
Free Windows Admin Tool Kit Click here and download it now
March 31st, 2009 9:36am

Good Morning,I just finished install our brand NEW W2K 8 R2 server, and I'm planning to move some application from our W2K3 server (oplock disabled) to our new W2K8 server, I'm really disappointed to see that Microsoft didn't fixe the OPLOCK problem on W2K8 that made application using ISAM tables, unstable whit corruption issue !Is this fixed in W2K8 R2 or we will still have to disable SMB2 and the OPLOCK again !?Thank you,Sylvain
September 9th, 2009 11:36am

Hi I'm using AcuCobol and my client just did an upgrade from Windows 2003 to 2008 (with SP2). One server hosts the data file (Vision ISAM) locally and a Terminal Server accesses the files remotely using a mapped drive (share). It is pretty standard. We had file corrution issues and the above link on how to turn off oplocks was NOT a solution. We didn't try turning off SMB 2 if that is different and may be a solution. Basically, it seems to mean that out-of-the-box Windows 2008 is not industry compatible. Here is the list of products reported with the problem - Foxpro, Dataflex, vfp8, DbaseIII + Clipper, AcuCobol V5.2 and V8.0. It would seem any product that uses remote file sharing is in trouble. Surely it means that Microsoft has the problem. If turning off Oplocks or SMB 2 is a solution then they should be turned off on installation or fixed. One should not have to edit the registry to disable things to make it work. It is so serious that Windows 2008 server fails on industry standard and client critical applications. ISAM files are standard fare It may be a shock but Microsoft products (e.g. SQL server)are not the only ones that drive business critical applications. Now AcuCobol has an AcuServer product that runs on the server with the local files and this configuration would not give the problem as all files access becomes in effect local even from the remote server (or workstation). But it should not be necessary just to circumvent an OS that has a glitch. It's two days since I posted the above so here is an update. We disabled oplocks on the local server and the remote Terminal server (Win2008) as per Microsofts instructions (edit registry) and we still got file corruptions. It only happens when we are live as during testing we could not simulate the problem and there were no corruptions. There was one particular file that became corrupt only once per day at around 7:30am when this file is most busy. Today we have had a successful morning after changing to use a product called Acuserve. Basically it uses a port for the remote computer to 'talk' to the local computer and all file I-O occurs on the local computer. So the solution so far has been to just not use remote file sharing on Windows 2008. Regards Max
Free Windows Admin Tool Kit Click here and download it now
May 6th, 2010 3:11pm

Max, I am dealing with the same issues trying to migrate an Acucobol app from Windows 2000 - 2008 R2. Trying acuserver, but can not tell who has records locked. Do you know of a way to Tell who has Records locked ? I am Ready to go to WIndows 2003 Tony
March 17th, 2011 10:40pm

I think this article explains the problem: http://www.dataaccess.com/whitepapers/opportunlockingreadcaching.html Yes SMB2 is supposed to be backwards compatible with SMB but SMB2 must be turned off to allow you to turn off oplocks which corrupts ISAM type files.
Free Windows Admin Tool Kit Click here and download it now
April 20th, 2011 10:43am

After reading all that over there I have come to know that the indexes of your database file are corrupted. And after turning off remote desktop connection you find it just like a Plain Jane Server. Well all you need to do just repair the FoxPro database file. Repairing is one and only solution of your problem.................... Do it............!!!!!!
May 25th, 2012 5:41am

To repair your database you can use sysinfo tools' recovery program. I have read about it. It's very effective. The software is sysinfotools DBF recovery and you can get it from here: Get me. Thank you! Martina Meza!
Free Windows Admin Tool Kit Click here and download it now
May 25th, 2012 5:45am

You may restore .dbf file owing to tool below http://www.dbf.fixtoolbox.com software restores DBF files containing databases of FoxPro, Clipper, dBase
May 26th, 2012 2:41pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics