From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Jay R. Wren" Newsgroups: gmane.os.tru64.managers Subject: NFS file read as full of NULL Date: Mon, 18 Nov 2002 16:57:11 -0500 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v548) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1037656538 13824 80.91.224.249 (18 Nov 2002 21:55:38 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 18 Nov 2002 21:55:38 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.20.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 18Dtrk-0003aj-00 for ; Mon, 18 Nov 2002 22:55:37 +0100 Original-Received: (qmail 7353 invoked by uid 5); 18 Nov 2002 21:57:17 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 7316 invoked by uid 49493); 18 Nov 2002 21:57:16 -0000 Original-Received: from jrwren@oakland.edu by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.51. spamassassin: 2.50-cvs. Clear:SA:0(0.6/5.0):. Processed in 0.471043 secs); 18 Nov 2002 21:57:16 -0000 Original-Received: from unknown (HELO emroute2.cind.ornl.gov) (128.219.159.41) by 0 with SMTP; 18 Nov 2002 21:57:16 -0000 Original-Received: from emroute2.cind.ornl.gov (LOCALHOST [127.0.0.1]) by emroute2.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H5S00LC5KZFM2@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 18 Nov 2002 16:57:16 -0500 (EST) Original-Received: from cliff.acs.oakland.edu (cliff.acs.oakland.edu [141.210.10.111]) by emroute2.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H5S00HP8KZDFB@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 18 Nov 2002 16:57:13 -0500 (EST) Original-Received: from oakland.edu ([141.210.173.49]) by cliff.acs.oakland.edu (8.12.2/8.12.2) with ESMTP id gAILvCta448716 for ; Mon, 18 Nov 2002 16:57:12 -0500 (EST) Original-To: tru64-unix-managers@ornl.gov X-Mailer: Apple Mail (2.548) Xref: main.gmane.org gmane.os.tru64.managers:2484 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:2484 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