*BSD News Article 50386


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!swidir.switch.ch!swsbe6.switch.ch!scsing.switch.ch!news.belwue.de!fu-berlin.de!sirius.physik.fu-berlin.DE!not-for-mail
From: graichen@sirius.physik.fu-berlin.de (Thomas Graichen)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: diskless booting w/ 3c503 ethernet card fails?
Date: 1 Sep 1995 17:28:20 GMT
Organization: Freie Universitaet Berlin
Lines: 136
Message-ID: <427frk$dr8@fu-berlin.de>
References: <4272b5$n3k@hal.nt.tuwien.ac.at>
NNTP-Posting-Host: sirius.physik.fu-berlin.de (130.133.3.140)
X-Access: 16 17 18
X-Newsreader: TIN [version 1.2 PL2]

i set up a diskless FreeBSD box some day ago - with smc-ultra but i also had
problems with a hanging system at the moment it started to swap - my
question now is - how have you created your swap-file - touch like in the
FAQ ? - this way it hung for me - but if you create it using dd if=/dev/zero
of=swap.X.X.X.X bs=1k count=Y with X.X.X.X you know and Y the size you give
in the cfg.X.X.X.X file - this way it worked for me - also try to find an
old disk and swap locally - this should then also look - maybe this helps
you a bit

t

Martin Birgmeier (martin@hal.nt.tuwien.ac.at) wrote:
: Hi netters,

: I've a PC which I would like to boot diskless from another PC which
: is running FreeBSD2.x current (nearly). What happens is that after
: about /etc/netstart is done, the system hangs and finally prints
: an nfs timeout message for the root fs (just the usual `not
: responding' message for an nfs hang).

: With tcpdump on the server FreeBSD I *think* I see that multiple
: nfs frags get sent after each other, so I'm suspecting that somehow
: the rsize=1024,wsize=1024 parameters are not honored, which I had
: set so that the 3c503 would work. Also, it seems that this happens
: when the system tries to swap for the first time (in spite of
: telling that it hangs on /), because I can add/delete statements
: in /etc/rc and /etc/netstart, and it will only execute about the
: same number of commands which will presumably fill up its memory
: (if I shorten /etc/netstart, it goes a little further in /etc/rc).
: Also, the swapfile never has its mtime changed.

: This leads me to suspect that rsize=1024 and wsize=1024 are honored
: for the root mount (it reads lots from there, anyways), but not
: for the swap mount (it seems to fail when trying to swap for the
: first time). I have augmented nfs_vfsops.c with printf's to tell
: me the root and swap sizes just before nfs_mountdiskless is called,
: it's ok to this point. However, I don't know in which direction to
: proceed further.

: Only today I recompiled the kernel for the diskless machine because
: it had not worked for a while due to the root vnode being set to
: VNON instead of VDIR (I think), so that is the latest code. I don't
: know if I might have to recompile the kernel on the server too,
: it's from July 31, a compile from yesterday would hang after fsck,
: I suspect something might have changed such that I'd need new
: binaries which I don't want to generate. So, any clues would be
: appreciated.

: More info:

: cfg.<server> contains

: hostname konsul.nt.tuwien.ac.at
: rootfs <server ip>:/diskless/konsul/root
: swapfs <server ip>:/diskless/konsul/swap
: swapsize 16384
: rootopts resvport,rsize=1024,wsize=1024
: swapopts resvport,rsize=1024,wsize=1024
: netmask 255.255.255.128
: kernel /kernel

: config file is:

: #
: # @(#) KONSUL_01 V1.0 MB 20 June 1995
: #

: machine		"i386"
: cpu		"I486_CPU"
: ident		"KONSUL_01"
: maxusers	10

: options		"AUTO_EOI_1"
: options		BOUNCE_BUFFERS
: options		"COMPAT_43"
: options		FFS
: options		INET
: options		"MAXCONS=8"
: options		NFS
: options		SYSVMSG
: options		SYSVSEM
: options		SYSVSHM
: options		UCONSOLE

: config		kernel	root on sd0 swap on sd0 dumps on sd0

: controller	isa0

: controller	fdc0	at isa? port "IO_FD1" bio irq 6 drq 2 vector fdintr
: disk		fd0	at fdc0 drive 0
: disk		fd1	at fdc0 drive 1

: controller	wdc0	at isa? port "IO_WD1" bio irq 14 vector wdintr
: disk		wd0	at wdc0 drive 0
: disk		wd1	at wdc0 drive 1

: controller	aha0	at isa? port "IO_AHA0" bio irq 11 drq 5 vector ahaintr
: controller	scbus0
: device		sd0
: device		st0
: device		cd0

: device		sc0	at isa? port "IO_KBD" tty irq 1 vector scintr
: device		npx0	at isa? port "IO_NPX" irq 13 vector npxintr

: device		sio0	at isa? port "IO_COM1" tty irq 4 vector siointr
: device		sio1	at isa? port "IO_COM2" tty irq 3 vector siointr

: device		lpt0	at isa? port "IO_LPT1" tty irq 7 vector lptintr

: device		ed0	at isa? port 0x330 net irq 5 iomem 0xd8000 vector edintr

: pseudo-device	bpfilter	4
: pseudo-device	ether
: pseudo-device	log
: pseudo-device	loop
: pseudo-device	pty		16
: pseudo-device	speaker
: pseudo-device	vn

: Thanks in advance for any info!

: Martin
: -- 
: Martin Birgmeier                               Martin.Birgmeier@nt.tuwien.ac.at
: Technische Universitaet Wien                        mbirgmei@email.tuwien.ac.at
: Institut fuer Nachrichtentechnik und Hochfrequenztechnik

 _______________________________________________________||_____________________
                                                  __||
 Perfection is reached, not when there is no  __||       thomas graichen
 longer anything to add, but when there   __||      freie universitaet berlin
 is no longer anything to take away   __||              fachbereich physik
                                  __||
 - Antoine de Saint-Exupery - __||
 ___________________________||____email: graichen@omega.physik.fu-berlin.de____