Solved

Problem in creating and reading files in CIFS mount in linux

Posted on 2014-04-29
2
523 Views
Last Modified: 2014-05-02
Hello Experts,

I have directory which is mounted to cifs share via /etc/fstab file, the directory has  permission has shown below when it is mounted.

# ll
total 11509
drwxrwxrwx 1 applmgr dba    4096 Apr 29 01:26 HFM_BPC_TRIGGER_FILES

i have user name oracle who is part of dba group.
id oracle
uid=200(oracle) gid=511(oinstall) groups=511(oinstall),512(dba)

we have pl/sql script that is being invoked using oracle id, and that script writes output file to HFM_BPC_TRIGGER_FILES directory. The weird thing is that i can not see the output file when the directory is mounted to cifs share, and when i unmount it i can see the output file.

can someone shed light on why this behaviour ?

my fstab entry

//windows_server/Trigger_BPC/    /oracle/d1/oracle/xxvm/11.5.0/data/outlooksoft/HFM_BPC_TRIGGER_FILES cifs rw,credentials=/opt/int9/.pass,file_mode=0777,dir_mode=0777,uid=212,gid=512   0 0
0
Comment
Question by:sudhirgoogle
2 Comments
 
LVL 14

Accepted Solution

by:
ThomasMcA2 earned 250 total points
Comment Utility
When the mount is disconnected, where do you see the files?

In the Trigger_BPC folder?
Or in the /oracle/d1/oracle/xxvm/11.5.0/data/outlooksoft/HFM_BPC_TRIGGER_FILES folder?

Look in the server logs on the server (the one with fstab). Are there errors that mention HFM_BPC_TRIGGER_FILES?
0
 
LVL 13

Assisted Solution

by:Daniel Helgenberger
Daniel Helgenberger earned 250 total points
Comment Utility
Hello,

can you please explain this part in more detail:
The weird thing is that i can not see the output file when the directory is mounted to cifs share, and when i unmount it i can see the output file.

Where do you see the file and when exactly? Do you see it the local directory then the cifs share is unmounted?

Also, you may want to use lsof when the script is running; the following shows you all processes accessing your share at the moment:
lsof | grep HFM_BPC_TRIGGER_FILES

Open in new window


This way you see if your perl script has the file really open.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

5 Experts available now in Live!

Get 1:1 Help Now