02-27-2015
Reliable read-behind-write on NFS? That's not going to happen because NFS is stateless. And yes, what you're trying to do is called "read-behind-write":
https://www.google.com/search?q=%22read+behind+write%22
If you have a requirement to monitor those logs, you need to monitor them another way. Reading them over NFS is not going to work.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hi....
how i can configurator a log file on real time....on unix solaris....
thanks a lot....
Best Regards... (3 Replies)
Discussion started by: chanfle
3 Replies
2. Shell Programming and Scripting
Hi all,
i would like to write the shell script program, it can monitor the access_log "real time"
when the access_log writing the line contain "abcdef" the program will be "COPY" this line into a file named "abcdef.txt", do the same thing if the contain "123456" "COPY" it into a file named... (3 Replies)
Discussion started by: eric_wong_ch
3 Replies
3. Shell Programming and Scripting
Hello,
I have a Apache webserver running on RedHat. Its primary function is a proxy server for users accessing the internet. I have a transaction log that logs every transactions of every users. For users trying to access certain sites/content the transactions goes into a 302 redirect loop and... (2 Replies)
Discussion started by: bruno406
2 Replies
4. Programming
Hi,
I'm trying to figure out the best solution to the following problem, and I'm not
yet that much experienced like you. :-)
Basically I have to read a fairly large file, composed of "messages" , in order
to display all of them through an user interface (made with QT).
The messages that... (3 Replies)
Discussion started by: emitrax
3 Replies
5. Filesystems, Disks and Memory
I analysed disk performance with blktrace and get some data:
read:
8,3 4 2141 2.882115217 3342 Q R 195732187 + 32
8,3 4 2142 2.882116411 3342 G R 195732187 + 32
8,3 4 2144 2.882117647 3342 I R 195732187 + 32
8,3 4 2145 ... (1 Reply)
Discussion started by: W.C.C
1 Replies
6. Shell Programming and Scripting
The following is a piece of code to rename LOG_FILE_NEW to LOG_FILE once you get a result (either RUNNING or SHUTDOWN)
RESULT=""
sleep 30
while ; do
sleep 10
RESULT=`sed -n '/RUNNING/'p ${LOG_FILE_NEW}`
if ; then
RESULT=`sed -n '/SHUTTING_DOWN/'p ${LOG_FILE_NEW}`
fi
done
mv... (3 Replies)
Discussion started by: sonorous
3 Replies
7. HP-UX
Hey all, I have a problem I was hoping to get some help on. So I have my two auditfiles, audfile1 and audfile2 that can be written to, I want to have the text version of them write to an NFS mount that I have set up. So i already know that i can do .secure/etc/audsp audfile1 > //nfsmount/folder/... (5 Replies)
Discussion started by: CleverRiver6
5 Replies
8. Shell Programming and Scripting
Hi people
I have a bash script with a line like this:
python example.py >> log &
But i can't see anything in the log file while python program is running only if the program ends seems to write the log file.
"$ cat log" for example don't show anything until the program ends.
Is there... (4 Replies)
Discussion started by: Tieso
4 Replies
9. Shell Programming and Scripting
Hi,
I have a log file that gets updated every second. Currently the size has grown to 20+ GB. I need to have a command/script, that will try to get the actual size of the file and will remove 50% of the data that are in the log file. I don't mind removing the data as the size has grown to huge... (8 Replies)
Discussion started by: Souvik Patra
8 Replies
10. Shell Programming and Scripting
Below is my script to log all the command input by any user to /var/log/messages. But I cant achieve the desired output that i want. PLease see below.
function log2syslog
{
declare COMMAND
COMMAND=$(fc -ln -0)
logger -p local1.notice -t bash -i -- "$USER:$COMMAND"
}
trap... (12 Replies)
Discussion started by: invinzin21
12 Replies
LEARN ABOUT CENTOS
tapset::nfsd
tapset::nfsd(3stap) tapset::nfsd(3stap)
NAME
tapset::nfsd - systemtap nfsd tapset
DESCRIPTION
nfsd.dispatch
NFS server receives an operation from client
See probe::nfsd.dispatch(3stap)
for details.
nfsd.proc.lookup
NFS server opening or searching for a file for client
See probe::nfsd.proc.lookup(3stap)
for details.
nfsd.proc.read
NFS server reading file for client
See probe::nfsd.proc.read(3stap)
for details.
nfsd.proc.write
NFS server writing data to file for client
See probe::nfsd.proc.write(3stap)
for details.
nfsd.proc.commit
NFS server performing a commit operation for client
See probe::nfsd.proc.commit(3stap)
for details.
nfsd.proc.create
NFS server creating a file for client
See probe::nfsd.proc.create(3stap)
for details.
nfsd.proc.remove
NFS server removing a file for client
See probe::nfsd.proc.remove(3stap)
for details.
nfsd.proc.rename
NFS Server renaming a file for client
See probe::nfsd.proc.rename(3stap)
for details.
nfsd.open
NFS server opening a file for client
See probe::nfsd.open(3stap)
for details.
nfsd.close
NFS server closing a file for client
See probe::nfsd.close(3stap)
for details.
nfsd.read
NFS server reading data from a file for client
See probe::nfsd.read(3stap)
for details.
nfsd.write
NFS server writing data to a file for client
See probe::nfsd.write(3stap)
for details.
nfsd.commit
NFS server committing all pending writes to stable storage
See probe::nfsd.commit(3stap)
for details.
nfsd.lookup
NFS server opening or searching file for a file for client
See probe::nfsd.lookup(3stap)
for details.
nfsd.create
NFS server creating a file(regular,dir,device,fifo) for client
See probe::nfsd.create(3stap)
for details.
nfsd.createv3
NFS server creating a regular file or set file attributes for client
See probe::nfsd.createv3(3stap)
for details.
nfsd.unlink
NFS server removing a file or a directory for client
See probe::nfsd.unlink(3stap)
for details.
SEE ALSO
probe::nfsd.dispatch(3stap), probe::nfsd.proc.lookup(3stap), probe::nfsd.proc.read(3stap), probe::nfsd.proc.write(3stap),
probe::nfsd.proc.commit(3stap), probe::nfsd.proc.create(3stap), probe::nfsd.proc.remove(3stap), probe::nfsd.proc.rename(3stap),
probe::nfsd.open(3stap), probe::nfsd.close(3stap), probe::nfsd.read(3stap), probe::nfsd.write(3stap), probe::nfsd.commit(3stap),
probe::nfsd.lookup(3stap), probe::nfsd.create(3stap), probe::nfsd.createv3(3stap), probe::nfsd.unlink(3stap),
probe::nfsd.rename(3stap), stap(1), stapprobes(3stap)
IBM
--- tapset::nfsd(3stap)