NFS hangs on client

Andrew Sweger andrew at sweger.net
Tue Apr 23 17:48:20 CEST 2002


I'm just getting started with fai still; fighting the battle to get the
first client to boot cleanly.

One thing I came across is my client mounts /usr/local/share/fai from the
NFS server with nfsvers=3 by default for some reason. This appears to be
causing the client to lock up (can't soft-reset, switch VT's, etc.) when
accessing files in the configuration mount.

The nfs docs seem to suggest NFSv2 is the default. The client mounts
nfsroot as NFSv2. There's no mention of setting the mount options with
nfsvers=3 in the fai source that I can see.

My fix was to explicitly set nfsvers (not a very good, generic solution)
in scripts/rcS_fai:

@@ -32,7 +32,7 @@
 timeout=30 # bootpc timeout
 FAI_VERSION=FAIVERSIONSTRING
 stamp=/tmp/FAI_INSTALLATION_IN_PROGRESS
-romountopt="-o ro,rsize=8192"
+romountopt="-o ro,nfsvers=2,rsize=8192"
 fstab=fstab   # Solaris uses vfstab
 
 # default classes before calling task defvar. Will be overwritten by task defvar

-- 
Andrew B. Sweger -- The great thing about multitasking is that several
                                things can go wrong at once.




More information about the linux-fai mailing list