Building a Beowulf Cluster/Installation, Configuration, and Administration/Miscellaneous

From Wikibooks, open books for an open world
Jump to navigation Jump to search

These two scripts can help in setting up other user accounts or installing additional software.

# execute command on all slave nodes
function slave {
for i in $(seq 1 7) ;
do ssh 192.168.1.$i $1 ;
done ;
}

# copy to all slave nodes
function slavecopy {
for i in $(seq 1 7) ;
do scp $1 192.168.1.$i:$2 ;
done ;
}

GNU Screen can help you speed up the configuration. On a side note, using screen the above two scripts could be already used for parallelization of computing tasks, however there are dedicated protocols for more advanced usage, you might want to have resource balancing, for example.

To create more users, create them on node0 and node1. Then from node1 you copy /etc/passwd and /etc/group to the other slaves.