LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-29-2008, 02:58 AM   #1
51dunk
Member
 
Registered: Jan 2007
Distribution: Slackware 11, OpenSuse 10.2
Posts: 31

Rep: Reputation: 15
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
 
Old 06-29-2008, 03:07 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
Old 06-29-2008, 03:19 AM   #3
51dunk
Member
 
Registered: Jan 2007
Distribution: Slackware 11, OpenSuse 10.2
Posts: 31

Original Poster
Rep: Reputation: 15
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
 
Old 06-29-2008, 03:32 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Well that would certainly explain the behaviour a lot better, so I'd be looking much more on the Oracle side.
 
Old 06-29-2008, 03:40 AM   #5
51dunk
Member
 
Registered: Jan 2007
Distribution: Slackware 11, OpenSuse 10.2
Posts: 31

Original Poster
Rep: Reputation: 15
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
 
Old 06-29-2008, 10:25 PM   #6
51dunk
Member
 
Registered: Jan 2007
Distribution: Slackware 11, OpenSuse 10.2
Posts: 31

Original Poster
Rep: Reputation: 15
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
reading a Windows Write file newbiesforever Linux - Software 15 02-12-2008 03:59 PM
reading linux text file in windows - problem madhugp Linux - General 2 01-11-2007 12:47 AM
C++ ifstream: Problem reading a file BenScaplen Programming 26 02-01-2006 08:42 AM
problem reading windows-burned dvds on linux slinky2004 Linux - General 1 12-28-2005 12:52 AM
awk: fatal:cannot open file for reading (no such file or Directory) in Linux sangati vishwanath Linux - Software 4 07-06-2005 12:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration