Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: weich@physik.tu-chemnitz.de (Frank Weich)
Subject: strange NFS problem HP->DEC
Date: 1995/07/18	[thread overview]
Message-ID: <3ufufc$n63@otto.mb3.tu-chemnitz.de> (raw)

Hi all!

We have a very strange NFS-problem here, which couldn't be solved yet.
We are running a DEC 2100/4 alpha server with OSF1 V3.0 as NFS master
and several HP 9000/735 (HP-UX 9.05) as clients.
One of our molecular dynamics programs crashed from time to time
with a corrupted log-file. The problem could be reduced down to
a small code you find below. It should just produce a file called 
"cgrlog" having 200 lines at the end.
If I run the program on the HP in a NFS-mounted file system from the
DEC server, everything is fine until the HP clears its file buffer.
After that I find the file corrupted and the strangest is: other users
find several lines of "cgrlog" scattered to their files (sic!).
The problem is well reproducible with this combination (DEC server
and HP client), but does never occur on any other combination of
DEC, HP and PCs (running Linux).
I have installed the PHKL_5763 kernel and nfs megapatch and the 
PHSS_5650 fortran patch on the HP already and our HP call service 
doesn't know anything to do further.

My questions are:
* Does anyone know anything about NFS problems between DEC OSF1
  and HP-UX ?
* Does anyone know about a f77 problem when a file is often
  opened and closed ?
* Are there any DEC nfs patches known?

Any hint is welcome (and forwarded to our HP/DEC support centers).

For those of you who want to test the problem:
Compile this code and run it 200 times with the script below.
The file system buffer shouldn't be able to hold 200 files 
at once - some of the files should be corrupted.
This could be tested by "wc -l cgrlog.*|grep -v 200".
ATTENTION: Be sure that you don't have important data on the disk!
           Never run the code on the root file system!

---f77 code---
      DO I=1,200
      call LOGCGR(I,200-I)
      ENDDO
      end

       SUBROUTINE LOGCGR(ISTEP,ILINE)
        CHARACTER*23 LINE
        OPEN(45,FILE='cgrlog',FORM='FORMATTED',STATUS='UNKNOWN')
        DO I=1,100000
         READ(45,'(A23)',END=10) LINE
        END DO
   10   CONTINUE
        LINE="TEST"
        WRITE(45,100) ISTEP,ILINE,LINE
  100   FORMAT('Istep= ',I3,', Iline= ',I3,',  ',A23)
   20   CLOSE(45)
        RETURN
       END
---skript---
#!/bin/tcsh
set i=0
while ( $i < $1 )
	rm -f cgrlog
	./a.out
	mv -f cgrlog cgrlog.$i
	@ i++
end

--
Frank Weich Technische Universitaet Chemnitz        o__
snail-mail: Th. Physik III, 09107 Chemnitz         _,>/ _
     phone: 0371/531-3148                         (_) \(_)
    e-mail: weich@physik.tu-chemnitz.de          ^~^~^~^~^~



             reply	other threads:[~1995-07-18  4:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-07-18  4:00 Frank Weich [this message]
1995-07-21  4:00 ` strange NFS problem HP->DEC Jim Gleason
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox