A Recipe for a diskless MOSIX cluster using Cluster-NFS

DRAFT

Gregory R. Warnes
Fred Hutchinson Cancer Research Center

May 10, 2000


1  Server Configuration

1.1   Install and configure Debian Linux

I used a Corel Linux CDROM ( http://www.corel.com ), and then upgraded to a more recent version of debian using dselect , but any Debian installation should work fine ( http://www.debian.org )

1.2   Download, Compile, Install Cluster-NFS

Source and debian packages are available from http://queenbee.fhcrc.org/Cluster-NFS/ .

If you are running a debian potato or more recent debian distribution,

cd /tmp
wget http://queenbee.fhcrc.org/Cluster-NFS/Cluster-NFS.current.deb
dpkg install Cluster-NFS.current.deb

1.3   Download, Unpack, Install Kernel and MOSIX

Kernel Configuration, kernel 2.2.15 used as example

1.4  Make Boot Floppies

Insert a formatted floppy in the drive and use ``dd'' to copy the kernel image to the floppy:

cd /usr/src/linux
dd if=arch/i386/boot/bzImage of=/dev/fd0

1.5  Add entries for each client server files

1.6  Create files that are the same for all clients.

Files named filename$$CLIENT$$ will be served when any client requests the file filename .

On our system, we have

/etc/exports$$CLIENT$$ empty file
/etc/fstab$$CLIENT$$ see below
/etc/inetd.conf$$CLIENT$$ comment out bootp entry
/etc/mospe$$CLIENT$$ soft link to a non-existant file
/etc/nsswitch.conf$$CLIENT$$ remove ``dns'' from hosts entry
/etc/resolv.conf$$CLIENT$$ remove name server entries
/etc/syslog.conf$$CLIENT$$ see below
/etc/init.d/apache$$CLIENT$$ soft link to DoNotExecuteOnClients
/etc/init.d/apache-ssl$$CLIENT$$ soft link to DoNotExecuteOnClients
/etc/init.d/apcd$$CLIENT$$ soft link to DoNotExecuteOnClients
/etc/init.d/atd$$CLIENT$$ soft link to DoNotExecuteOnClients
/etc/init.d/cron$$CLIENT$$ soft link to DoNotExecuteOnClients
/etc/init.d/elmd$$CLIENT$$ soft link to DoNotExecuteOnClients
/etc/init.d/exim$$CLIENT$$ soft link to DoNotExecuteOnClients
/etc/init.d/gdm$$CLIENT$$ soft link to DoNotExecuteOnClients
/etc/init.d/genpower$$CLIENT$$ soft link to DoNotExecuteOnClients
/etc/init.d/gpm$$CLIENT$$ soft link to DoNotExecuteOnClients
/etc/init.d/lpd$$CLIENT$$ soft link to DoNotExecuteOnClients
/etc/init.d/mountall.sh$$CLIENT$$ see below
/etc/init.d/network$$CLIENT$$ see below
/etc/init.d/proftpd$$CLIENT$$ soft link to DoNotExecuteOnClients
/etc/init.d/xfs$$CLIENT$$ soft link to DoNotExecuteOnClients
/usr/sbin/ssmtp$$CLIENT$$ see below

Specific files

1.7  Create files that are specific to individual clients

Files named filename$$IP=xxx.xxx.xxx.xxx$$ will be served to the client with ip xxx.xxx.xxx.xxx when it requests filename\ .

On the BioHive cluster, the following per-node files exist:

/dev$$IP=10.0.0.2$$ may not be necessary
/etc/X11/XF86Config$$10.0.0.2$$ depends on VGA card used
/etc/adjtime$$IP=10.0.0.2$$ may not be necessary
/etc/devices$$IP=10.0.0.2$$ modified on bootup by each machine
/etc/hostname$$IP=10.0.0.2$$ machine specific
/etc/mtab$$IP=10.0.0.2$$ created by ``mount'' on each machine
/etc/rmtab$$IP=10.0.0.2$$ created by ``mount'' on each machine
/tmp$$IP=10.0.0.2$$ needed for temp files, lock files
/var$$IP=10.0.0.2$$ needed for lock files, spool files

Most of the files can be created by echo > filename\$\$10.0.0.2\$\$ . The directories should be created by cp -r \dirname \dirname\$\$IP=10.0.0.2\$\$

1.8  Reboot server to restart all services


File translated from TEX by TTH, version 2.61.
On 10 May 2000, 20:40.