Diskless boot swap space (or swap over NFS)

K Anderson freebsduser at comcast.net
Thu Aug 7 01:57:44 PDT 2003

K Anderson wrote:
> I am trying to create swap space for diskless bootted systems but it 
> doesn't seem to be working out.
> Before the kernel panics the system reports reports
> subnet mask 255.255.0 router rootfs 
> swapfs 
> swapsize 
> 64000 KB hostname flip.
> When booting the kernel panics with
>   panic: nfs_boot: mountd swap, error=72
> The NFS export looks like this
> /diskless_root  -alldirs -ro -network 192.168.100
> /usr            -alldirs        -maproot=0      -network 192.168.100
> Disk slices are reported as
> /dev/ad0s1a   504M   172M   292M    37%    /
> /dev/ad0s1g   504M    12M   452M     3%    /tmp
> /dev/ad0s1h    36G   7.1G    26G    22%    /usr
> /dev/ad0s1f   504M    41M   423M     9%    /var
> /dev/ad3s1    3.9G   2.9G   739M    80%    /mouse
> /dev/ad2s1e   3.9G   138M   3.5G     4%    /diskless_root
> procfs        4.0K   4.0K     0B   100%    /proc
> linprocfs     4.0K   4.0K     0B   100%    /usr/compat/linux/proc
> Anybody have any ideas on correcting this?
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to 
> "freebsd-questions-unsubscribe at freebsd.org"
  Oh, I'm using isc's dhcpd to do all this. I made a modification to the 
dhcpd.conf and things have changed.

swapsize 64000 KB hostname flip

Now the kernel panics with:
panic: nfs_boot: lookup swap, error=2

Who writes these error messages? Sheeesh. But that's not the problem, 
I've googled and the only thing I come up with is something back from 
the last millenium that says to change some file then recompile.

Has anybody else gotten swap to work over nfs with disless booting and 
if so how did you overcome the problem?

The computer doing the diskless booting has 32 meg of ram.

More information about the freebsd-questions mailing list