发新话题
打印

无盘工作(netbsd)所有配置工作

无盘工作(netbsd)所有配置工作

This last section covers how to ensure that all of the daemons you set up
will automatically run each time your server(s) are booted.
This last section covers how to ensure that all of the daemons you set up will automatically run each time your server(s) are booted.

Also, you might consider compiling a new kernel for your client. If you use the DISKLESS config file, it will produce a smaller kernel (without SCSI, HP-IB, NFS server, and a few other things), which will load more quickly, and will use less RAM. This is detailed in the How to build a kernel NetBSD Kernel FAQ item.

Another suggestion is to gzip the kernel on the nfs server, as this will load over the network faster (even with a slow client). The client will boot from this, even though it isn't named netbsd, it merely has to figure out that netbsd doesn't exist on the nfs server and try the next kernel name, which happens to be netbsd.gz. The NetBSD bootloader will attempt to load each of the following files in sequence until it loads one successfully and then executes it:

        netbsd
        netbsd.gz
        netbsd.bak
        netbsd.bak.gz
        netbsd.old
        netbsd.old.gz
        onetbsd
        onetbsd.gz

Finishing up, NetBSD
Finishing up, OpenBSD
Finishing up, FreeBSD
Finishing up, MacOS X and Darwin
Finishing up, Linux
Finishing up, SunOS
Finishing up, Solaris
Finishing up, NEWS-OS
Finishing up, NEXTSTEP
Finishing up, HP-UX 9
Finishing up, HP-UX 10

NetBSD

In NetBSD, all of the rc setup parameters are stored in /etc/defaults/rc.conf. Do not modify this file. Instead, copy the relevant lines to /etc/rc.conf and change the values there.

   1. Setting up the client-specific daemon:

          * To set up rbootd for hp300, edit /etc/rc.conf and make sure that the following line is set:

            rbootd=YES              rbootd_flags=""

          * To set up mopd for vax, edit /etc/rc.conf and make sure that the following line is set:

            mopd=YES              mopd_flags="-a"

   2. Setting up rarpd and bootparamd:
      Edit /etc/rc.conf and make sure the following lines are set:

      rarpd=YES               rarpd_flags="-a"
      bootparamd=YES          bootparamd_flags=""

   3. Setting up dhcpd:
      Edit /etc/rc.conf and make sure the following line is set:

      dhcpd=YES               dhcpd_flags="-q"

   4. Setting up nfs:
      Edit /etc/rc.conf and make sure the following line is set:

      nfs_server=YES                             # enable server daemons
                              mountd_flags=""
                              nfsd_flags="-6tun 4"

Congratulations, you're done!
OpenBSD

For OpenBSD 2.3 and later (earlier versions needed to edit the /etc/netstart file):

   1. Setting up the client-specific daemon:

          * To set up rbootd for hp300, edit /etc/rc.conf and make sure that the following line is set:

            rbootd=""

          * To set up mopd for vax, edit /etc/rc.conf and make sure that the following line is set:

            mopd_flags="-a"

   2. Setting up rarpd and bootparamd:
      Edit /etc/rc.conf and make sure the following lines are set:

      rarpd="-a"
      bootparamd=""

   3. Setting up dhcpd:
      Edit /etc/rc.conf and make sure the following line is set:

      dhcpd_flags="-q"

   4. Setting up nfs:
      Edit /etc/rc.conf and make sure the following line is set:

      nfs_server=YES

Congratulations, you're done!

TOP

发新话题