We found that it was a good first step to boot from the "normal" install floppy and remove all the partitions on all drives using pickdisk and partdisk on each disk before starting the setup of the fileserver.
The next step in the file server setup is to build the the plan9.ini for the fileserver boot floppy:
*nomp=1 distname=plan9 scsi0=type=ncr53c8xx ether0=type=elnk3 mouseport=ps2 console=0 baud=9600 nvr=fd!0!plan9.nvr bootfile=fd0!dos!9pcfs
Note is the odd syntax in nvr=, this one caused us some trouble tell we got it correct...
Also the use of the serial console is invaluable in debugging the fileserver install.
next using the cpu server make a bootfloppy with the command
pc/bootfloppy /dev/fd0disk /tmp/plan9.ini
See the Bell-labs Plan9 Wiki Installing a Plan 9 File Server Guide for more details.
The fileserver runs a special version of the kernel, with no user processes, for details see Ken Thompson's The plan 9 file Server
To build the kernel use the cpu/auth server, cd to /sys/src/fs/plan9c and run:
disk/kfscmd allow mk clean mk disk/kfscmd disallow disk/kfscmd sync
and then copy the kernel to the fileserver bootfloppy:
a: cp /sys/src/fs/plan9pc/9pcfs /n/a: unmount /n/a:
Put the floppy in the fileserver machinee and boot it up. After the machine boots with the fileserver kernel it will come up in config mode.
The next step is to enter the fsconfig(8) info at the config: prompt. Reading and re-reading the fsconfig(8) man page is critical to understand the format...
service vampira ip 188.8.131.52 ipgw 184.108.40.206 ipauth 220.127.116.11 ipmask 255.255.255.0 config w0 filsys main cp(w1)0.50(fp(w1)50.50fw2) filsys dump o filsys other w0 ream main ream other end
1) It can take some time for this to complete, but there will be messages and when it is complete you will get a prompt like "vampria:" If the machine does not reponsed with some messages after you type "end" you most likely have problems w/ your scsi hardware or floppy drive.
2) During the setup we did not use the second cpu on the machine. But after we got things up and running we removed the *nomp=1 line from the plan9.ini on the boot floopy, to enable the 2nd cpu.
3)The use of the serial console is invaluable in debugging the fileserver install.
Other gotcha's: If you get the error "init .... dos dosfs ..." don't start adding debug statments to the fileserver kernel...you most likely just have a bad floppy...
Once you get a prompt like "vampria:" disable access control using
Next add the password of the cpu owner using the command
It will ask for the passwd of the cpu owner (bootes) twice and then for the auhentication id (bootes) and the authentication domain (acl.lanl.gov)
Assuming the cpu owner is bootes, you can now connect to the fileserver from the cpu server and install the distribution. (If you did not use bootes for the cpu owner see the Bell-labs Plan9 Wiki Installing a Plan 9 File Server Guide for info on how to add the cpu owner user to the fileserver.
To connect to the fileserver from the cpu server and install the distribution we used the commands:
srv il!vampira.acl.lanl.gov disk/kfscmd allow mkdir /n/vampira mount -c /srv/il!vampira.acl.lanl.gov /n/vampira cd /dist wrap/inst -ovr /n/vampira plan9.9gz disk/kfscmd disallow disk/kfscmd sync
Note you will need to have a copy of the distribution in /dist, If you don't you can get one easily using ftpfs
Next install the distribution updates:
wrap/inst -ovr /n/vampira 06170729.9gz wrap/inst -ovr /n/vampira 07291014.9gz wrap/inst -ovr /n/vampira 10141017.9gz wrap/inst -ovr /n/vampira 10141111.9gz wrap/inst -ovr /n/vampira 10141129.9gz wrap/inst -ovr /n/vampira libdisk.9gz wrap/inst -ovr /n/vampira wiki.9gz wrap/inst -ovr /n/vampira ppp.9gz wrap/inst -ovr /n/vampira 10140327.9gz
finally create the users on the fileserver (bootes and glenda already exist) using commands like
newuser dpx create /mail/box/dpx dpx upas 775 d create /mail/box/dpx/mbox dpx upas 662 al
at this point you can customize the fileserver by editing the files in /n/vampira
One thing you will want to do is to setup a basic set of files for each user. A good start is to copy the files from /usr/glenda to the home directory of each user you added with the newuser command. The same thing can be done by the user running the /sys/lib/newuser command the first time they login.
The final step is to reboot the fileserver using the command
if you are in luck you fileserver will be all setup after the reboot, with permission checking enabled.
If you wish to turn permission checking off on the fileserver so you can modify system files, reboot the machine and hit a key when you get the message about entering config mode, type allow foolowed by end. Permission checking is now off and you can customize the fileserver. Just mount the fileserver filesystem using commands like:
srv il!vampira.acl.lanl.gov mount -c /srv/il!vampira.acl.lanl.gov /n/vampiraand edit the files.
Some useful info for the setup of a fileserver:
Bell-labs Plan9 Wiki Installing a Plan 9 File Server Guide.
Second Edition Plan9 Install Guide. Out of date in general but very useful for info on the fileserver setup.
man page. Very useful for figuring out what stuff like
fileserver section of the "various ports" doc.