From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu Subject: Re: [9fans] micro vs monolithic kernels From: forsyth@caldo.demon.co.uk MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Message-Id: <20010409102225.089A119A15@mail.cse.psu.edu> Date: Mon, 9 Apr 2001 11:19:51 +0100 Topicbox-Message-UUID: 7bd5439e-eac9-11e9-9e20-41e7f4b1d025 the nvram isn't important. it will prompt for the values if necessary and that's the easiest way to check that it is correctly booting the cpu server kernel not the terminal kernel. once that's going you can worry about setting up the nvram. i set a cpu/auth system up recently (without a separate file server). i think this is what i did: 0. build /lib/ndb/local correctly; in many ways, the hard part. you need to get the ipmask= and ipsubmask= and ip-net= set up to describe your network correctly. include proto=il in the entry for each plan 9 machine. include default auth= and fs= entries in the network or subnet entries. 1. cd /sys/src/9/pc; mk 'CONF=pccpudisk' install 2. 9fat: ; cp /386/9pccpudisk /n/9fat/9pccpudisk 3. change /n/9fat/plan9.ini, bootfile=sdC0!9fat!9pccpudisk (replacing sdC0 by your disc name) 4. make sure /lib/ndb/auth contains hostid=bootes uid=!sys uid=!adm uid=* this lets the cpu server believe that the auth server can vouch for others as described 5. cd /rc/bin/service; mv il566 _il566; mv tcp567 _tcp567 6. cd /rc/bin/service.auth; ensure the following contents tcp567: #!/bin/rc /bin/auth/auth.srv -d $3 il566: #!/bin/rc /bin/auth/auth.srv -d $3 chmod a+rx tcp567 il566 7. modify /rc/bin/cpurc to uncomment the lines that are commented-out: # uncomment the following for booting other systems ip/dhcpd ip/tftpd # services available to networks (remove -t /rc/bin/service.auth # if this isn't an auth server) auth/keyfs -m /mnt/keys /adm/keys aux/listen -q -d /rc/bin/service -t /rc/bin/service.auth il aux/listen -q -d /rc/bin/service -t /rc/bin/service.auth tcp auth/cron you can add a switch($sysname){ ... } to select different cpu server services if you've got more than one and only one is acting as auth server and file server. 8. if you're not setting up a separate file server (using the /sys/src/fs kernel) but are serving files from a kfs partition on the cpu/auth server, then further do 8a. cd /rc/bin/service; mv il17008 _il17008 8b. in /rc/bin/cpurc above, after starting auth/keyfs and before aux/listen do disk/kfscmd listen