Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Dec 1996 14:20:25 +1000 (EST)
From:      Clary Harridge <clary@elec.uq.edu.au>
To:        freebsd-questions@freebsd.org
Subject:   diskless problem accessing subdirectories with FreeBSD 2.2-961006-SNAP
Message-ID:  <199612060420.OAA19625@s5.elec.uq.edu.au>

next in thread | raw e-mail | index | archive | help
Hi
I am having trouble with a diskless system built from FreeBSD 2.2-961006-SNAP

There is a problem accessing subdirectories of NFS mounted systems.

If I boot the client single user and run

	# set -x
	HOME=/; export HOME
	PATH=/sbin:/bin:/usr/sbin:/usr/bin
	export PATH
	swapon -a
	mount -u -o rw /
	umount -a
	mount -a
	. /etc/sysconfig
	sh /etc/netstart

At this stage the network status seems OK

	# arp -a
	s5.elec.uq.edu.au (130.102.96.5) at 0:0:f8:2:3:d8
	# ifconfig -a
	ed0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
	        inet 130.102.96.70 netmask 0xffffff00 broadcast 130.102.96.255
	        ether 00:00:c0:9e:90:52 
	tun0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
	lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
	        inet 127.0.0.1 netmask 0xff000000 
	# netstat -r
	Routing tables
	
	Internet:
	Destination        Gateway            Flags     Refs     Use     Netif Expire
	default            s5                 UGc         0        0       ed0
	localhost          localhost          UH          0        0       lo0
	130.102.96/24      link#1             UC          0        0 
	s5                 0:0:f8:2:3:d8      UHLW        8     1409       ed0   1156
	
mount > /tmp/mount	# writes OK to a NFS mounted filesystem

	130.102.96.5:/export/clary on /
	s5:/export/share on /share
	s5:/usr on /usr
	s5:/usr/local on /usr/local
	procfs on /proc (local)

I can 
	ls / /share /usr /usr/local /proc

However any access of a subdirectory hangs the system.
For example,

	chmod 666 /dev/tty[pqrs]*
	ls /usr/bin

tcpdump at the server shows that it is hung trying to do a readdir

14:15:01.919675 s5.elec.uq.edu.au.nfs > clary.elec.uq.edu.au.79a0134b: \
                reply ok 1472 readdir [|nfs] (frag 23008:1480@0+)
14:15:01.919703 s5.elec.uq.edu.au > clary.elec.uq.edu.au: (frag 23008:1480@1480+)
14:15:01.919718 s5.elec.uq.edu.au > clary.elec.uq.edu.au: (frag 23008:1480@2960+)
14:15:01.919732 s5.elec.uq.edu.au > clary.elec.uq.edu.au: (frag 23008:1480@4440+)
14:15:01.919749 s5.elec.uq.edu.au > clary.elec.uq.edu.au: (frag 23008:1480@5920+)
14:15:01.919763 s5.elec.uq.edu.au > clary.elec.uq.edu.au: (frag 23008:392@7400)

Can anyone suggest what might be causing this hangup?

-- 
regards			Dept. of Electrical Engineering,
Clary Harridge		University of Queensland, QLD, Australia, 4072
			Phone: +61-7-3365-3636	Fax:   +61-7-3365-4999
			INTERNET: clary@elec.uq.edu.au



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199612060420.OAA19625>