LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Problem with reading windows file from linux (https://www.linuxquestions.org/questions/linux-networking-3/problem-with-reading-windows-file-from-linux-652366/)

51dunk 06-29-2008 02:58 AM

Problem with reading windows file from linux
 
Hi all.


I have a frustrating problem with shareing windows file to linux application.
The problem is:

Server: Windows 2000 Adervanced Server

Client: RHEL4 update 4

$mount -t smbfs //windir /dest


when my application in linux reading the windows shared file, the file content is not up-to-date. Sometimes it will update some later, but sometimes it won't forever.

I don't what's the problem is.


When I track the packet using tcpdump listening port 445, I can see a lot of "cksum incorrect" or "bad tcp cksum", I searched on google, guys says that was ok. And I also enable "netbios over TCP/IP" instead of previous "from DHCP", the problem still occurs.


Please help me to analyze this problem, and my english is bad, so if you doesn't understand my problem, I will try to explain it later.


Thanks all.



Black Thought

acid_kewpie 06-29-2008 03:07 AM

well it looks like it's caching some data, but i've not seen anythign cache like that to such an extent. smbfs is deprecated onw, try cifs instead, I assume rhel 4.4 has it, and that would behave differently to what you're seeing.

Checksum differences are fine as the hardware itself will have done some offloading of the data as it enters the machine, so the checksum no longer matches, but it would have done when it mattered in the nic itself.

51dunk 06-29-2008 03:19 AM

Hi kewpis.

I have two linux clients to test, FC8 using CIFS and RHEL4 using smbfs. Both have this problem.

One more thing, the shared file isn't a normal file, it is Oracle online redo log, Oracle write it without change file stat. I think it is a problem.


Black Thought

acid_kewpie 06-29-2008 03:32 AM

Well that would certainly explain the behaviour a lot better, so I'd be looking much more on the Oracle side.

51dunk 06-29-2008 03:40 AM

Yes, it's very frustrating, it works well using NFS share with Oracle in linux.
But if it is windows Oracle, the problem occurs.


Black Thought

51dunk 06-29-2008 10:25 PM

I wonder if this problem occurs because Oracle mandatory locks the file?

Is it possible update the file when windows lock the file?




Black Thought


All times are GMT -5. The time now is 12:31 AM.