The Unix Daemons



next up previous
Next: Rarping and Rarp Up: Fairisle and Wanda Start Previous: Basics

The Unix Daemons

Several software daemons are used to maintain the experimental system. These are described in more detail below. Note that the unix daemons run with the user identifier ``wanda'' and must be started as user wanda. If you do not have access to the wanda password, you cannot start the unix daemons.

The Modified Trader

The trader is based on the Ansa 3.1 trader, with an extended interface which allows it to be used as a general purpose database. Each host in the wanda world has an entry in the trader. This describes the properties of the host in terms of its physical devices etc, and specifies several properties which are used by other Unix daemons to boot, reset, and gather console output from the machine. The entries common to all hosts are:

Various other entries exist. These are used in a host-type specific way. For example, Fairisle switches have an entry ``SwitchSize'' which indicates the number of ports on the switch. This is used by xscons when sizing the window to display console output for the switch ports.

Applications which use the trader

Several application programs use trader as a database. These include:

In addition most of the servers comprising the unix daemons use the trader as well. Manual pages exist for all of the above applications.

The Boot Server

 

The boot server listens for boot requests from wanda machines. It listens for these requests at a well known address (consult the msnl services document for details). When a wanda machine or Fairisle port boots, it contacts the boot server whose msnl address is given to it in a rarp reply message by a rarp daemon. When it receives a boot request the boot server queries the trader to find out which kernel should be booted into the machine. If the machine is currently locked (i.e. somebody has an xscons or xwcons session on the machine) then the user booting information is used. Otherwise the default booting information is used. The boot server creates an image from the supplied kernel and hostinfo, and sends it to the booting machine using the boot protocol. Once the machine has loaded its new image, it begins to execute the new kernel.

The Grim Reaper

The Grim Reaper is an Ansa 3.1 service which removes old or out of date entries from the trader when the processes owning the interface references exported to the trader and the notification service are killed or exit. For details of this service see the Ansa manual.

The Request Server

The request server provides a Unix file service to the Ansa clients on Wanda. It has been largely replaced by the Wanda Dumb File System.

MSNL Internet Daemon

The MSNL Internet Daemon is a unix daemon which responds to msnl connection requests for the msnl echo and msnl tracing facilities, mecho and mtrace. It provides a mechanism for testing the connectivity of the msnl network and the routes used to reach a particular host through the network. For more information see the manual page.

MSNL Name service

The msnl name service is used to resolve name queries of the style of gethostbyname(3n), for msnl addresses. For both unix and wanda, library functions called getmsnlhostbyname() and getmsnlhostbyaddr() (see the man pages) are available to enable application programs to resolve name queries. The name service uses the trader for some of its information, and queries the DNS for other information. See the msnl name service document elsewhere in this collection.

Wanda Dumb File System

The wanda dumb file system and wanda dumb directory service provide access to the unix file space from wanda machines. The interface to these services is the standard BSD file interface, and the underlying communication mechanism is a RPC protocol which uses msrpc to read and write blocks of a file. This service currently operates with msrpc rather than msrpc2. This should be modified in the near future.

Starting the Unix Daemons

At the time of writing, the unix daemons are started by a script which currently resides in
/usr/groups/wanda/info/unixdaemons . This script must be executed as user wanda, and on the designated wanda service machine. Currently the default services run on the machine aspall, although many Fairisle switches boot from experimental boot services on other machines. This is likely to change in the near future, when the service machine aspall is upgraded to run the new MSNL code. At that time the wanda daemons will (should) get started automatically when the machine boots.



next up previous
Next: Rarping and Rarp Up: Fairisle and Wanda Start Previous: Basics



Simon Crosby