COSI Linux Build

From CSLabsWiki
Revision as of 01:02, 7 February 2008 by Yellowcake (talk | contribs) (New page: This summarizes how to the Ubuntu Lab Build is maintained. Currently we are running a Ubuntu 7.10, which was installed on a single machine, and then ghosted to the rest of the lab. Be...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This summarizes how to the Ubuntu Lab Build is maintained.

Currently we are running a Ubuntu 7.10, which was installed on a single machine, and then ghosted to the rest of the lab. Before ghosting a system was put in place to keep lab machines in sync with the ever changing requirements and recommendations of lab users. Using this system we can easily roll out changes to the lab build.

NFS

Currently the machine hadoop.cosi.clarkson.edu exports an nfs share that is mounted by all computers in the lab. It is read only (unless you are the root user on hadoop) and is located at /sharedro on all machines. This document will make reference to scripts and files in this directory, feel free to take a look from any lab machine. If you felt so inclined you could even request an account on hadoop so that you could make changes too these files.

How Machines stay in Sync

Ubuntu runs the script /etc/rc.local (/sharedro/other/rc.local) during the final stages of the booting sequence.

<code>#!/bin/sh -e
# You will be assimilated.
# At this point, we may or may not have proper networking.

# Setup logging directory.
rm -rf /root/logs
mkdir /root/logs

# Try to mount nfs.)
mount -a

# Pre network boot script (if available)
/sharedro/scripts/boot.sh &> /root/logs/boot.log

# This script sets hostname/dhcp/networking related goodness.
# A copy of the version on NFS is kept locally, just incase networking
# is broken. It is kept in sync with nfs in some other script.
/root/sethostname.sh /root/macs &> /root/logs/sethostname.log
mount -a

# By now, we should have networking, and nfs.

# Post-network boot script
/sharedro/scripts/boot-post-network.sh &> /root/logs/boot-after-network.log

#Update crontab
crontab -u root /sharedro/other/crontab

exit 0