› Clovertech Forums › Read Only Archives › Cloverleaf › Cloverleaf › RedHat Samba Mount Issue
I have a standard fileset-Local thread that receives a batch of files on a samba mount (cifs to a windows share) at 1am. It does not appear to see these files at all until the process is bounced. Once it is bounced, it sees and processes the files right away.
Example ‘ls -al’ before the process is bounced last two days:
-- Max Drown (Infor)
sudo mount -t cifs -o username=user,password=’pass’ //bhcqsload/cold /mnt/bhcqsload/cold
-- Max Drown (Infor)
Since you observered the file isn’t seen until the process is cycled it might be worth looking at the time setting for the scan interval.
Russ Ross
RussRoss318@gmail.com
-- Max Drown (Infor)
OS: RedHat 5.1
Cloverleaf: 5.6
01) On the Windows machine: create a share on a Windows server. Add a user called “hci” with full permissions.
02) On the Cloverleaf server: sudo mkdir -p /mnt/pc4422/qstesting
03) On the Cloverleaf server: sudo mount -t cifs -o username=hci,password=’Boonehci’ //PC4422/QSTESTING /mnt/pc4422/qstesting
04) On the Cloverleaf server: ln -s /mnt/pc4422/qstesting /data/win/qs/coldfeed_in
06) In the thread: set ibdir for the fileset-local protocol to /data/win/qs/coldfeed_in
06) In the thread: add the attached script (tpsScanDir.tcl) to fileset-local protocol with no arguments (grab all files in ibdir).
We use tpsScanDir.tcl in many, many threads for many years. It is known to work well; however, the samba mount to a Windows share is a new wrinkle. When a batch of files is placed in the Windows share, I can see the files from RedHat by doing ‘ls -al /data/win/qs/coldfeed_in/’. From the command line I can delete them, rename them, etc. The Cloverleaf fileset-local process does not “see” these files until I bounce the process. At this point, I do not know if it is an issue with the OS, Cloverleaf, or the tps proc.
Current file list:
-bash-3.2$ ll /data/win/qs/coldfeed_in/
total 1276
drwxrwxrwx 1 root root
-- Max Drown (Infor)
Note: It does see a new batch of file if I drop them in immediately after the first batch has been processed by Cloverleaf.
-- Max Drown (Infor)
Bouncing the thread also forces Cloverleaf to see the files. I have temporarily setup a cron job that bounces the thread every day.
At this point, I believe this to be a bug in Cloverleaf.
-- Max Drown (Infor)
Support sent me a work-around for my fileset-local tps script that seems to be working good.
…
[code]…
-- Max Drown (Infor)
At what UPOC do you put this script. Does it go
Protocol > Properties > Start-up procedures .
or
Does it go in the Outbound Tab > TPS Outbound Data
Are you running into a similar problem? This post was originally made in 2006, so much has changed in Cloverleaf since then.
-- Max Drown (Infor)
1. Should I create a share on my PWIM box for the sending system to drop files to.
or Should I try and FTP them from the outside server using my inbound thread.
2. Then for the outbound to the cold feed in directory.
a. Should I use samba to mount a share to that directory or is there a different way to do this?
-- Max Drown (Infor)
Now when we try to do a failover we are not able to run the cluster scripts because samba will not let go of the file system so that Lucy can run the script.
The error alludes to Samba running on the integrator share, but we used to not get that error. Is there a way to run samba on a different share?
-- Max Drown (Infor)
In the meantime I am asking the Server Admin who set it up if he knows of way to get samba to run on another share beside the Integrator.
I’ll post the outcome of this issue.
Gene Millard
The Guthrie Clinic
Sayre, PA