#!/bin/csh -f #H# This script causes my backup server to takeover the functionality of my main servers. #H# This is so I can have a simulated network in a single box. It will also allow me to #H# serve data out to make my desktops function if my servers are down. #H# Note that "isolate.csh" should have already been run to bind mount the backups. # Bring up interface aliases on the IP addresses of my servers... ifconfig eth0:1 192.168.100.1 netmask 255.255.255.0 up ifconfig eth0:201 192.168.100.201 netmask 255.255.255.0 up ifconfig eth0:202 192.168.100.202 netmask 255.255.255.0 up # Restart NFS to make sure that mountd is listening on the new interfaces /etc/init.d/nfs restart # Redo the NFS exports just in case exportfs -ua exportfs -a # Start up DNS services svc -du /service/tinydns /service/dnscache* # Start up mysqld using the asylum backups which are now bind mounted (/home/asylum/mysql) /etc/init.d/mysql start