NetBSD Problem Report #9502

Received: (qmail 23637 invoked from network); 28 Feb 2000 22:10:04 -0000
Message-Id: <200002282209.OAA27523@bishop.nas.nasa.gov>
Date: Mon, 28 Feb 2000 14:09:58 -0800 (PST)
From: Jason R Thorpe <thorpej@nas.nasa.gov>
Reply-To: thorpej@netbsd.org
To: gnats-bugs@gnats.netbsd.org
Subject: Interesting LFS problem
X-Send-Pr-Version: 3.95

>Number:         9502
>Category:       kern
>Synopsis:       Interesting LFS problem
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Feb 28 14:12:00 +0000 2000
>Closed-Date:    Thu Mar 08 23:06:31 +0000 2007
>Last-Modified:  Thu Mar 08 23:06:31 +0000 2007
>Originator:     Jason R. Thorpe
>Release:        20000228
>Organization:
Numerical Aerospace Simulation Facility - NASA Ames
>Environment:

System: NetBSD bishop 1.4T NetBSD 1.4T (BISHOP) #1010: Thu Feb 24 16:24:46 PST 2000 thorpej@bishop:/amd/dracul/u2/netbsd/src/sys/arch/alpha/compile/BISHOP alpha


>Description:
	I needed to scrub out my object tree and decided to try using
	LFS for it again.

	I created an LFS file system and made /usr/obj point to it.  This
	file system is NFS exported, and 5 or 6 other systems mount that
	file system for their /usr/obj as well.

	While the server was churning along on a "make build", one of
	the clients (an AlphaStation 500) was also doing a "make build".

	The client failed to finish building libc:

cc -O2 -DALL_STATE  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Werror   -D_LIBC -DNLS -DYP -DHESIOD -DLIBC_SCCS -DSYSLIBC_SCCS  -D_REENTRANT -I/amd/dracul/u2/netbsd/src/lib/libc/include -DINET6 -D__DBINTERFACE_PRIVATE -DRESOLVSORT -I. -DPOSIX_MISTAKE -DFLOATING_POINT -c /amd/dracul/u2/netbsd/src/lib/libc/net/res_query.c
ld: cannot open output file res_query.o: Input/output error
*** Error code 1

	Upon further investigation:

bishop:thorpej 103$ sudo touch obj.alpha/res_query.o                           
Password:
touch: obj.alpha/res_query.o: Input/output error
bishop:thorpej 104$ sudo touch obj.alpha/res_query.oaa
bishop:thorpej 105$ sudo rm obj.alpha/res_query.oaa
bishop:thorpej 106$ ls obj.alpha/res_query.*                                   
ls: obj.alpha/res_query.o: No such file or directory
16 obj.alpha/res_query.ln               10 obj.alpha/res_query.o.o

	The same problems happens on the server.  I'm guessing a directory
	entry is trashed.

	Note that this may not be specific to LFS via NFS, but it may
	be that it was easier to tickle this problem using this access
	method.

	fsck_lfs says:

dracul:thorpej 79$ fsck_lfs -n /dev/rsd3a
** /dev/rsd3a (NO WRITE)
** Last Mounted on /u3
** Phase 0 - Check Segment Summaries
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
UNALLOCATED  I=6643 
INO is NULL

REMOVE? no

** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
17011 files, 139303 used, 0 free 
dracul:thorpej 80$ 

>How-To-Repeat:
	Not sure... it "just happened".  I'll try and reproduce it again
	after I re newfs_lfs it.  (I can't remove that blasted file.)

	However, I'll keep this file system around in case Konrad
	as anything he wants me to try :-)

>Fix:
	Unknown.
>Release-Note:
>Audit-Trail:

From: matthew green <mrg@eterna.com.au>
To: thorpej@nas.nasa.gov
Cc: gnats-bugs@gnats.netbsd.org
Subject: re: kern/9502: Interesting LFS problem 
Date: Tue, 29 Feb 2000 21:50:20 +1100

 FWIW, when i used LFS over NFS i had no-end of trouble.  i was unable to
 successfully complete a "make build" on my shark with objects on the NFS
 mount LFS volume.  hangs, build lossage like yours, whatever it took to
 cause the build to fail...


 AFAICT, NFS & LFS is FUTA.
Responsible-Changed-From-To: kern-bug-people->perseant 
Responsible-Changed-By: perseant 
Responsible-Changed-When: Thu Jun 29 10:59:05 PDT 2000 
Responsible-Changed-Why:  
I am responsible for LFS problems right now. 
Responsible-Changed-From-To: perseant->kern-bug-people 
Responsible-Changed-By: perseant 
Responsible-Changed-When: Thu Nov 20 19:58:06 UTC 2003 
Responsible-Changed-Why:  
Trying to be realistic 
State-Changed-From-To: open->feedback
State-Changed-By: xtraeme@netbsd.org
State-Changed-When: Sat, 29 Apr 2006 08:13:49 +0000
State-Changed-Why:
Is the problem still there?


State-Changed-From-To: feedback->closed
State-Changed-By: dsl@netbsd.org
State-Changed-When: Thu, 08 Mar 2007 23:06:31 +0000
State-Changed-Why:
10 months in feedback, many LFS fixes since 2000


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.