Sponsored Content
Operating Systems AIX SAMBA Refresh problem for AIX Post 302859087 by XRaheemX on Wednesday 2nd of October 2013 10:28:00 AM
Old 10-02-2013
Bug SAMBA Refresh problem for AIX

First I need to start off by saying I've been a tech for Windows environment for almost 20 years now. With that being said, I've never touched unix/linux/aix before so all of this is new to me. If you can bare with me, I'll gladly provide any configs/logs you may need to help me.
I'm having an issue with SAMBA where the file contents are not refreshed immediately after the server (aix) changes the file. I have a program in windows that is reading a file across a SAMBA share. When I make changes to the file from the server side, the next file read still contains the old stale data content. If I read the file about 30 seconds later, the new content is displayed. My question is, is there any way to force these data to update immediately?
I've read somewhere that adding "refresh = 1" to the config file would do the trick but that doesn't seem to be working and isn't recognized by "testparm" anyway. I've also read that adding "kernel oplocks = yes" would do the trick but no go on that either.
Here is everything I can think to include:

Code:
AIX version 6.1
smbclient -V = Version 3.6.9-cdc-4.5.5-222
smb.conf global section:
[global]
security = ADS
realm = PFSGROUP.LOCAL
workgroup = PFSGROUP
netbios name = pfs-cubs-aix
refresh = 1
kernel oplocks = yes
auth methods = guest, sam, winbind, ntdomain
machine password timeout = 0
passdb backend = tdbsam:/etc/samba/private/passdb.tdb
change notify timeout = 0

I need to add that this is a centrify modified version of SAMBA to allow direct integration into their product, but they're saying this isn't their problem because the portion they modify for this doesn't affect this issue.
If there is more information necessary, please let me know and I'll add it.

Moderator's Comments:
Mod Comment Please use code tags. You got a PM with an explanation.

Last edited by zaxxon; 10-03-2013 at 06:05 AM..
 

10 More Discussions You Might Find Interesting

1. AIX

Setting Up Samba for AIX

Hi all I want to know how do I create a print queue using samba on AIX enviroment to print to file. Setup step require. Anyone please help me on this. Vincent (2 Replies)
Discussion started by: vwong
2 Replies

2. AIX

AIX 5.3 monitor refresh rate

Hi All, Great forums, a wealth of knowledge. We have just replaced our server room screen with a nice 15" LCD. We run CDE as the gui at the console. I think the refresh rate is too high for the LCD as I get an out of range error message on the screen. Can anyone point me in the right... (1 Reply)
Discussion started by: dj.brown
1 Replies

3. AIX

Samba 3.0 and AIX 5.3

I'd like to make my AIX 5.3 box a member of my Windows 2003 AD. Is this possible? If so, what are the steps? What I'm really after is a way for my windows users to access files on my Samba shares with the exact same permissions, owner, etc. as they use when accessing files on a windows directory. (1 Reply)
Discussion started by: adamteam
1 Replies

4. UNIX for Dummies Questions & Answers

Refresh ls list on screen (auto-refresh)?

I am looking for a way to issue a command or string of commands to repeatedly display new files that are written to the directory. I usually use ls -ltr to see the newest files at the bottom of the screen. I would like to automate this command to refresh what is displayed every second or so. Can... (3 Replies)
Discussion started by: skidude
3 Replies

5. UNIX for Dummies Questions & Answers

Samba on AIX 5.3

I have never installed Samba before and am having trouble. I downloaded the opt-samba-base.tar and the opt-samba-3.0.26a-AIX5 file as well and while it appears they both installed okay but it never created the /etc/samba or /usr/local/samba directories - just the /opt/pware/samba directory. I... (2 Replies)
Discussion started by: capeme
2 Replies

6. AIX

Samba on AIX 4.3

I have 11 AIX (a mix of 4.3.3.0 and 4.3.2.0) on which I succesfully installed a Samba server. On two other systems, the smbd start command generates the following error message. Anybody ? itocroot@TAGEN010: /usr/local/samba/bin $ ./smbd start exec(): 0509-036 Cannot load program ./smbd because... (0 Replies)
Discussion started by: Frans Graux
0 Replies

7. AIX

Installing Samba on AIX 5.3

Hello, I need assistance installing Samba on AIX 5.3 TL06. Smitty Install produces the following error message: Command: failed stdout: yes stderr: no Before command completion, additional instructions may appear below. geninstall -I "a -cgNQqwXY -J" -Z -d... (5 Replies)
Discussion started by: tgray71
5 Replies

8. AIX

Using SAMBA in AIX 5.3

Please help, I'm wicked... :confused: I'm trying to get Samba to work on an IBM pseries machine (AIX 5.3) to provide access to the server for a user to retrieve reports from her WinXP desktop. I've made the proper entires in the smb.conf file and tried runing the smbpasswd command to add the user... (4 Replies)
Discussion started by: trandall
4 Replies

9. AIX

New to AIX need help Installing/Upgrading Samba on AIX 7.1?

Hello, I am trying to update Samba on my AIX 7.1 system as there is an issues with it, the smbd process coredumps and I have had no luck figuring it out why. My approach is to try to re-install a newer samba and I have found the latest 3.x package for samba in ppc.rpm format at perlz.org ... (6 Replies)
Discussion started by: c3rb3rus
6 Replies

10. AIX

Samba 3.6 on AIX 7.1 - Windows 10 Access to AIX file shares using Active Directory authentication

I am running AIX 7.1 and currently we have samba 3.6.25 installed on the server. As it stands some AIX folders are shared that can be accessed by certain Windows users. The problem is that since Windows 10 the guest feature no longer works so users have to manually type in their Windows login/pwd... (14 Replies)
Discussion started by: linuxsnake
14 Replies
Module::Refresh(3pm)					User Contributed Perl Documentation				      Module::Refresh(3pm)

NAME
Module::Refresh - Refresh %INC files when updated on disk SYNOPSIS
# During each request, call this once to refresh changed modules: Module::Refresh->refresh; # Each night at midnight, you automatically download the latest # Acme::Current from CPAN. Use this snippet to make your running # program pick it up off disk: $refresher->refresh_module('Acme/Current.pm'); DESCRIPTION
This module is a generalization of the functionality provided by Apache::StatINC and Apache::Reload. It's designed to make it easy to do simple iterative development when working in a persistent environment. It does not require mod_perl. new Initialize the module refresher. refresh Refresh all modules that have mtimes on disk newer than the newest ones we've got. Calls "new" to initialize the cache if it had not yet been called. Specifically, it will renew any module that was loaded before the previous call to "refresh" (or "new") and has changed on disk since then. If a module was both loaded for the first time and changed on disk between the previous call and this one, it will not be reloaded by this call (or any future one); you will need to update the modification time again (by using the Unix "touch" command or making a change to it) in order for it to be reloaded. refresh_module_if_modified $module If $module has been modified on disk, refresh it. Otherwise, do nothing refresh_module $module Refresh a module. It doesn't matter if it's already up to date. Just do it. Note that it only accepts module names like "Foo/Bar.pm", not "Foo::Bar". unload_module $module Remove a module from %INC, and remove all subroutines defined in it. mtime $file Get the last modified time of $file in seconds since the epoch; update_cache $file Updates the cached "last modified" time for $file. unload_subs $file Wipe out subs defined in $file. BUGS
When we walk the symbol table to whack reloaded subroutines, we don't have a good way to invalidate the symbol table properly, so we mess up on things like global variables that were previously set. SEE ALSO
Apache::StatINC, Module::Reload COPYRIGHT
Copyright 2004,2011 by Jesse Vincent <jesse@bestpractical.com>, Audrey Tang <audreyt@audreyt.org> This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See <http://www.perl.com/perl/misc/Artistic.html> perl v5.12.4 2011-10-26 Module::Refresh(3pm)
All times are GMT -4. The time now is 05:45 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy