Troubleshooting
Problem
Enable pdsh nodegroup options (-g and -X)
Resolving The Problem
If you run command 'pdsh -g groupname command' to execute the command on some of nodes in your cluster, but you get the message 'no remote hosts specified'. You have to define the node group first.
Normally PCM/Platform HPC installs pdsh with netgroupmodule (pdsh-mod-netgroup-2.x.x). You have to define the list of node on the head node firstbefore use nodegroup options.
1. Create file /etc/netgroup on head node. Add node group's name and its list of nodesone group per line. e.g.
|
compute (compute-00-00,,) (compute-00-01,,) (compute-00-02,,) lsf-master (installer,,) (lsfmaster-00-00,,) (lsfmaster-00-01,,) |
2. Edit file /etc/nsswitch.conf. Find the netgroup line, add the textfiles to netgroup entry.
| netgroup: files nisplus |
Then you can use pdsh -g
| pdsh -g compute hostname
pdsh -X lsf-master hostname |
Was this topic helpful?
Document Information
Modified date:
16 September 2018
UID
isg3T1014676