NODETOOLS
A collection of cluster management tools.
1. Download
nodetools is available here:
ftp://ftp.wss.yale.edu/pub/linux/yale/rpms/nodetools
2. nodex
nodex executes the given command via ssh on all of the nodes in
the group OR on the node specified.
Usage: nodex [-g|--group <group>] [-n|--node <node>] <command>
nodex -l|--list [-g|--group <group>] [-n|--node <node>]
nodex -h|--help
-h|--help This help message
-g|--group <group> Use the group <group>
-n|--node <node> Use only the node <node>
-l|--list List nodes in the current group
Examples:
nodex date
nodex 'ls -l'
nodex -g mygroup 'ls -l'
nodex -n mynode 'ls -l'
nodex -g mygroup -n mynode 'ls -l'
nodex -l
nodex -g mygroup -l
nodex -g mygroup -n mynode -l
3. nodecp
nodecp copies files from the host machine to all nodes in the group
OR to the node specified.
Usage: nodecp [-g|--group <group>] [-n|--node <node>] <source> [<destination>]
nodecp -l|--list [-g|--group <group>] [-n|--node <node>]
nodecp -h|--help
-h|--help This help message
-g|--group <group> Use the group <group>
-n|--node <node> Use only the node <node>
-l|--list List nodes in the current group
Backups of all files are stored in '/master' for later restoration
Examples:
nodecp ./newmotd /etc/motd
nodecp ./motd /etc/motd
nodecp -g mygroup -n mynode ./ntp /etc
nodecp -l
nodecp -g mygroup -l
nodecp -g mygroup -n mynode -l
4. nodearchive
nodearchive archives the file(s) or directory specified to the
host machine for later restoration.
Usage: nodearchive [-g|--group <group>] [-n|--node <node>] [-s|--single] <source>
nodearchive -l|--list [-g|--group <group>] [-n|--node <node>]
nodearchive -h|--help
-h|--help This help message
-g|--group <group> Use the group <group>
-n|--node <node> Use only the node <node>
-l|--list List nodes in the current group
-s|--single Take files from a single node (the first one,
unless specified with -n) and archive them
for the entire group
Files are stored in '/master:<node>'
Examples:
nodearchive '/etc/ssh/ssh_host_rsa*'
nodearchive -g mygroup -n mynode /etc/motd
nodearchive -n mynode -s /etc/motd
nodearchive -l
nodearchive -g mygroup -l
nodearchive -g mygroup -n mynode -l
5. noderestore
noderestore restores all files in '/master:<node>' to
the node(s) in the group OR to the node specified.
Usage: noderestore [-g|--group <group>] [-n|--node <node>]
noderestore -l|--list [-g|--group <group>] [-n|--node <node>]
noderestore -h|--help
-h|--help This help message
-g|--group <group> Use the group <group>
-n|--node <node> Use only the node <node>
-l|--list List nodes in the current group
Examples:
noderestore
noderestore -g mygroup -n mynode
noderestore -l
noderestore -g mygroup -l
noderestore -g mygroup -n mynode -l