*BSD News Article 73196


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!nntp.coast.net!news.kei.com!news.mathworks.com!fu-berlin.de!news.belwue.de!news.uni-hohenheim.de!news
From: ve@k96.kapitza.ras.ru (Vladimir Eltsov)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: NFS swap problem in diskless 2.1
Date: 9 Jul 1996 10:21:21 GMT
Organization: CC University of Hohenheim (not responsible for contents)
Lines: 31
Message-ID: <4rtbr1$1ef0@power5.rz.uni-hohenheim.de>
NNTP-Posting-Host: k96.kapitza.ras.ru
X-Newsreader: knews 0.9.6

Hello,

I set up diskless FreeBSD 2.1R with Solaris 2.3 box as booptp/tftp/NFS 
server according to handbook. Here is my /tftpboot/cfg.1.2.3.5 file:
	rootfs 1.2.3.4:/usr/myroot
	swapfs 1.2.3.4:/usr/myswap
	swapsize 30000
	rootopts rsize=8192 wsize=8192
	swapopts rsize=8192 wsize=8192
	hostname host.my.domain.name
(with real IPs and names of cause)
With rsize,wsize options the problem described later seems to appear
less frequently. The only problem during setup was that touch'ing 
/usr/myswap/swap.1.2.3.5 was not enough, I had to dd it to full size 
of 30000 1k blocks.

Now all work OK --- until first shutdown. After 'shutdown -h now' system
claims that root unmount failed -- file system busy (Is it normal for NFS 
root?). If then I boot FreeBSD again, everything works fine. However, if I 
boot DOS even with Reset button something goes wrong on NFS server and later 
FreeBSD behaves strange (for example: blank screen saver not installed -- not
in a.out format etc.) and dies at first swapping attempt. This could be fixed
with MAKEDEV all in /dev directory. After that all works again until DOS boot.

If local swap instead NFS is used everything works normally.
FreeBSD box has 3c509 ethernet card.

I would appreciate any help.

   Vladimir.