From owner-freebsd-questions Thu Sep 14 5:27:46 2000 Delivered-To: freebsd-questions@freebsd.org Received: from web5105.mail.yahoo.com (web5105.mail.yahoo.com [216.115.106.75]) by hub.freebsd.org (Postfix) with SMTP id 15BC637B422 for ; Thu, 14 Sep 2000 05:27:41 -0700 (PDT) Message-ID: <20000914122741.13007.qmail@web5105.mail.yahoo.com> Received: from [203.101.88.43] by web5105.mail.yahoo.com; Thu, 14 Sep 2000 23:27:41 EST Date: Thu, 14 Sep 2000 23:27:41 +1100 (EST) From: =?iso-8859-1?q?Paul=20Jansen?= Subject: nfs swap for diskless boot? To: questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I'm having some problems booting a diskless kernel. I've used the kernel options below in my custom compiled kernel: options BOOTP # Use BOOTP to obtain IP address/hostname options BOOTP_NFSROOT # NFS mount root filesystem using BOOTP info options BOOTP_NFSV3 # Use NFS v3 to NFS mount root options BOOTP_COMPAT # Workaround for broken bootp daemons. I'm using the ISC v2 DHCP server. THis is my dhcpd.conf file: # dhcpd.conf # option definitions common to all supported networks... option domain-name "jansen.org"; option domain-name-servers 202.167.41.130; option subnet-mask 255.255.255.0; default-lease-time 600; max-lease-time 7200; subnet 192.168.0.0 netmask 255.255.255.0 { range dynamic-bootp 192.168.0.10 192.168.0.20; option routers 192.168.0.8; option broadcast-address 192.168.0.255; filename "/tftpboot/kernel.XWORKSTATION"; option root-path "192.168.0.1:/usr/diskless/rootfs/xworkstation"; option option-176 5; option option-160 "timeout=8:default=193:"; option option-192 "IJ2:::/tftpboot/kernel.ij2:"; option option-193 "XWORKSTATION:::/tftpboot/kernel.XWORKSTATION:"; host host11 { hardware ethernet 0:aa:0:c1:74:47; server-name "edessa.jansen.org"; option option-128 "192.168.0.1:/usr/diskless/swap/swap.192.168.0.11"; } host host12 { hardware ethernet 0:0:1:17:37:6; server-name "edessa.jansen.org"; option option-128 "192.168.0.1:/usr/diskless/swap/swap.192.168.0.12"; } Here's my /etc/exports file: /usr -alldirs -maproot=0:0 edessa pico host10 host11 host12 host13 I have mountd running as 'mountd -r' so as to enable NFS mounting of files. I have created the swapfile referenced above (/usr/diskless/swap/swap.192.168.0.11) by doing: dd if=/dev/zero of=/usr/diskless/swap/swap.192.168.0.11 bs=1M count=32 This is the series of messages that come up on the console (after some kernel information has already come up: bootpc testing starting bootpc hw address is 0:99:0:C1:74:47 my ip address is 192.168.0.11 server ip address is 192.168.0.1 gateway ip address is 0.0.0.0 server name is edessa.jansen.org bootfile is /tftpboot/kernel.XWORKSTATION subnetmask is 255.255.255.0 router is 192.168.0.8 ignoring field type 15 rootfs is 192.168.0.1:/usr/diskless/rootfs/xworkstation Ignoring field type 28 swapfs is 192.168.0.1:/usr/diskless/swap/swap.192.168.0.11 ignoring fieldtype 160 ignoring fieldtype 176 ignoring fieldtype 192 ignoring fieldtype 193 panic: nfs_boot: lookup swap, error=2 synching disks... done. Uptime: 1s Automatic reboot in 15 seconds press a key on the console to abort Where can I find info on this stuff? I've searched the man pages, mailing lsits, done a seach on daemonnews. The informatino in the freebsd handbook on diskless booting is badly out of date. Can anyone help me with what might be wrong? _____________________________________________________________________________ http://geocities.yahoo.com.au - Yahoo! Australia & NZ GeoCities - Build your own Web Site - for free! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message