updatenode
update nodes in a cluster environment
Synopsis
updatenode noderange [-F|--sync]
updatenode [-h|--help] [-v|--version]
Description
The updatenode command
is run on the management node and can be used to perform the following
node updates:
- Distribute and synchronize files.
- Install or update software on stateful nodes.
- Run postscripts.
Parameters
- noderange
- A set of comma delimited node names and group names. The result
is that the command is applied to this range of nodes, often in parallel.
This set can be in any of the forms below:
- Individual node or node group:
node01 nodegroup1 - A range of nodes or node groups:
node01-node10 (equivalent to: node01,node02,node03,...node10) node[01-10] (same as above) node01:node10 (same as above) node[01:10] (same as above) f[1-2]n[1-3] (equivalent to: f1n1,f1n2,f1n3,f2n1,f2n2,f2n3) nodegroup1-nodegroup3 (equivalent to: nodegroup1,nodegroup2,nodegroup3) (all the permutations supported above for nodes are also supported for groups)
- Individual node or node group:
Options
- -F | --sync
- Specifies that file synchronization should be performed on the nodes. rsync and ssh must be installed and configured on the nodes. The function is not supported for NFS-based statelite installations. For NFS-based statelite installations to sync files, you should use the read-only option for files/directories listed in litefile table with source location specified in the litetree table.
- -h | --help
- Displays the pcmhatool command help information.
- -v | --version
- Displays the pcmhatool command version information.
Examples
- Update node01, node02, and
all nodes found in nodegroup1.
updatenode node01,node02,nodegroup1 -F - Update node01, node02, node03,
and node04.
udpatendoe node01-node04 -F