5.5 Higher Level Protocols

6.3.2 Setting up a Clone Root Partition
Now you need to create a root directory for cloning on the worldly node. This should be exported via NFS to the internal node network. The directory should contain the followingsubdirectories: bin, dev, etc, lib, mnt, proc, sbin, tmp. The proc and mnt directories must be empty, as they will be used as mount points during the cloning process. The dev directory must contain all the standard Linux device files. Device files are special, and cannot be copied normally. The easiest way to create this directory is by letting tar do the work for you by executing the following command as root:
tar -C / -c -f - dev | tar xf -
This will create a dev directory containing all the device files found on your system. All the remaining directories can be copied normally, except for tmp and etc which should be empty. You should have no need for a usr directory tree. It is possible to trim down the files to the bare minimum necessary for cloning, but it isn't necessary. You will need to add an fstab file to etc containing only the following line, so that the /proc file system may be mounted properly:
none   /proc   proc   default   0 0
You also may need to include a hosts file.
Once you have your NFS root file system in place, move the partition archives to the root file system. Depending on the specific cloning software you are using, you may have to create a special directory to store these files. If you are writing your own cloning scripts, place the archives in a sensible location for your scripts. Then replace the NFS root sbin/init executable with your cloning init script. This script will be invoked by the clone node's kernel to launch the cloning process. Tasks performed by the script include drive partitioning, archive extraction, and configuration file tweaking. Some configuration files have to be tweaked if your nodes aren't set up to configure themselves through DHCP or BOOTP. The primary configuration files are ones dependent on the node IP address, such as /etc/sysconfig/network and /etc/sysconfig/network-scripts/ifcfg-eth0 on Red Hat based systems. At this point you can add the NFS root directory to the list of exported file systems, making sure to export it only to your internal node network.
6.3.3 Setting up BOOTP
Next you have to decide what IP addresses the cloned nodes will use during the cloning process. These should probably be the same ones they will use after the

 



How to Build a Beowulf
How to Build a Beowulf: A Guide to the Implementation and Application of PC Clusters (Scientific and Engineering Computation)
ISBN: 026269218X
EAN: 2147483647
Year: 1999
Pages: 134

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net