From owner-freebsd-hackers@FreeBSD.ORG Sat May 31 07:58:45 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 91B1637B401 for ; Sat, 31 May 2003 07:58:45 -0700 (PDT) Received: from server019.webpack.hosteurope.de (server019.webpack.hosteurope.de [80.237.130.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1B0F943F3F for ; Sat, 31 May 2003 07:58:44 -0700 (PDT) (envelope-from bfischer@Techfak.Uni-Bielefeld.DE) Received: from no-support.loc (pD9588DE4.dip.t-dialin.net [217.88.141.228]) (authenticated bits=0)h4VEwblX022288; Sat, 31 May 2003 16:58:40 +0200 Received: from frolic.no-support.loc (localhost.no-support.loc [127.0.0.1]) by no-support.loc (8.12.9/8.12.9) with ESMTP id h4VEwd3I001182; Sat, 31 May 2003 16:58:39 +0200 (CEST) (envelope-from bjoern@frolic.no-support.loc) Received: (from bjoern@localhost) by frolic.no-support.loc (8.12.9/8.12.9/Submit) id h4VEwckU001181; Sat, 31 May 2003 16:58:38 +0200 (CEST) (envelope-from bjoern) From: Bjoern Fischer Date: Sat, 31 May 2003 16:58:38 +0200 To: hackers@freebsd.org Message-ID: <20030531145838.GA1114@frolic.no-support.loc> References: <20030531010320.21101.qmail@web13503.mail.yahoo.com> <20030531111130.K52633-100000@hewey.af.speednet.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20030531111130.K52633-100000@hewey.af.speednet.com.au> User-Agent: Mutt/1.4.1i cc: David Yeske Subject: Re: swapping over nfs might be broken X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 May 2003 14:58:45 -0000 Hello, > > Everything looks normal except for swapinfo. It looks like nfs swapping > > is broken? >=20 > `man swapinfo` says: >=20 > BUGS > Does not understand NFS swap servers. hmm, the man page seems to be out of date. On my diskless client swapinfo works flawlessly: broccoli:~$ swapinfo=20 Device 1K-blocks Used Avail Capacity Type [NFS swap] 130944 0 130944 0% Interleaved broccoli:~$ uname -r 4.8-STABLE-20030510-JPSNAP Also, I don't get that error or warning message at boot time: subnet mask 255.255.255.0 router 192.168.43.1 rootfs \ 192.168.43.1:/exports/root/broccoli rootopts nfsv3,udp,hard \ swapfs 192.168.43.1:/exports/swap swapopts nfsv3,udp,hard \ hostname broccoli=20 Adjusted interface xl0 md_lookup_swap: Swap size is 131072 KB Mounting root from nfs: NFS ROOT: 192.168.43.1:/exports/root/broccoli NFS SWAP: 192.168.43.1:/exports/swap For DHCP I use these vendor options: option freebsd-swap-path code 128 =3D text; option freebsd-swap-opts code 130 =3D text; option freebsd-root-opts code 131 =3D text; All diskless clients share these DHCP config: use-host-decl-names on; filename "pxeboot"; option freebsd-swap-path "192.168.43.1:/exports/swap"; option freebsd-swap-opts "nfsv3,udp,hard"; option freebsd-root-opts "nfsv3,udp,hard"; The root path is set per individual client of course. Maybe this helps. Bj=F6rn --=20 -----BEGIN GEEK CODE BLOCK----- GCS d--(+) s++: a- C+++(-) UB++++OSI++++$ P+++(-) L---(++) !E W- N+ o>+ K- !w !O !M !V PS++ PE- PGP++ t+++ !5 X++ tv- b+++ D++ G e+ h-- y+=20 ------END GEEK CODE BLOCK------