From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fcda7,158e7b37cc0f1a7d,start X-Google-Attributes: gidfcda7,public X-Google-Thread: fee84,158e7b37cc0f1a7d,start X-Google-Attributes: gidfee84,public From: weich@physik.tu-chemnitz.de (Frank Weich) Subject: strange NFS problem HP->DEC Date: 1995/07/18 Message-ID: <3ufufc$n63@otto.mb3.tu-chemnitz.de>#1/1 X-Deja-AN: 106427511 organization: University of Technology Chemnitz-Zwickau, FRG newsgroups: comp.sys.hp.hpux,comp.unix.osf.osf1 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 ^~^~^~^~^~