Solved

Problem in creating and reading files in CIFS mount in linux

Posted on 2014-04-29
2
533 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
ID: 40029353
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
ID: 40030439
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

895 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

13 Experts available now in Live!

Get 1:1 Help Now