Good ways to restart all the computers in a remote cluster?
Posted
by vgm64
on Super User
See other posts from Super User
or by vgm64
Published on 2010-03-23T19:18:20Z
Indexed on
2010/03/23
19:23 UTC
Read the original article
Hit count: 547
I have a cluster that I manage and from time to time I get emails from each node (and head node) begging to be restarted after an automatic upgrade.
Currently, my best solution so far is a shell script like:
$> cat cluster_reboot.sh
ssh [email protected] reboot
ssh [email protected] reboot
ssh [email protected] reboot
ssh [email protected] reboot
ssh [email protected] reboot
ssh [email protected] reboot
I end up just typing the root password six times, but it works, I guess. Is there a better way? Can I force the head node to reboot the computers for me?
© Super User or respective owner