tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: "Jay R. Wren" <jrwren@oakland.edu>
Subject: NFS file read as full of NULL
Date: Mon, 18 Nov 2002 16:57:11 -0500	[thread overview]
Message-ID: <B07CCE84-FB40-11D6-8857-000393912F5A@oakland.edu> (raw)

Hello Managers,
   We are having a very interesting issue with an NFS server of ours.

The Symptom:
   A user edits a file(from fs mounted via nfs) using the pico 
editor(from the pine package washington.edu).  The user saves changes.  
The user opens the file again and it looks empty.
   In fact it is not empty.  The file is full of nulls.  The length of 
nulls is the size of the file after the user edited it.  For Example, I 
open myfile.txt and save the 6000 byte file.  When I read the file it 
looks empty, but is actually still 6000 bytes.  I say it looks empty 
because most editors, vi, pico don't show nulls.  Even cat and more 
don't show nulls.  So far less, and maybe emacs, show nulls.

   This doesn't happen every time, which is what makes it so horrible.  
We are 99% sure it only happens with pico, but we are starting to see 
some other issues that cast doubt on that.

   Even more strange is the fact that these files full of null do not 
appear full of null if we look at them locally on the nfs file server.  
The file contents are all there, but if we look at them on any nfs 
client, the file is full of nulls.

The Environment:
   NFS Server is Tru64 5.1A exporting /home (an advfs filesystem) via 
NFS.  Clients include 4.0d, 4.0f, as well as Linux and Solaris.  Linux 
is the only NFS client which we could not replicate the bug on.  
Solaris and all Tru64 versions seem to write null files.

I could probably fill a couple more pages of things we have tried, tcp 
vs. udp mount points, mounting from different sides of the NAT(1 to 1) 
box.  Nearly all of the clients are on the different side of the NAT 
device, but it doesn't matter, moving the client to the side of the NAT 
which hosts the NFS Server does not fix the problem.  We have tried 
with and without automount.  We have tried a different NFS Server Tru64 
5.1a, and been unable to replicate the problem but changing to a 
different server is not practical nor should it be necessary.

Someone reported a very similar problem to the list a few months ago, 
but their problem was directly with ADVFS and PICO and was not an NFS 
issue, our problem seems slightly different, especially considering the 
fact that the original file without nulls can be viewed on the NFS 
Server.

Any insight is appreciated.

Thanks

--
Jay R. Wren
Systems Programmer
Oakland University
Rochester, Michigan



                 reply	other threads:[~2002-11-18 21:57 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
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