Troubleshooting
Problem
Changing pdsh to use dshgroup module
Resolving The Problem
Pdsh command supports nodegroup feature with 2 additional modules, netgroup and dshgroup. By default, PCM/Platform HPC installs pdsh with netgroup module from installation time. (see how to configure netgroup in KB1-1QI691)
You can change this option to use dshgroup instead. The advantage of using dshgroup module is that users can define thier own node group for their environment. Unlike netgroup that allows only root to define the nodegroup in /etc/netgroup file.
1. Install pdsh-mod-dshgroup from PCM repository.
# rpm -ivh /depot/kits/1/pdsh-mod-dshgroup-2.14-2.x86_64.rpm
2. Dshgroup will conflict with netgroup module. You have to remove (or backup) netgroup module file from pdsh directory. (Note: you cannot uninstall the pdsh-mod-netgroup RPM since it has dependency with component-base-installer)
# mv /usr/lib64/pdsh/netgroup.so /root/netgroup.so.bak
To define nodegroup for all users:
1. Create nodegroup directory
# mkdir -p /etc/dsh/group/
or
# mkdir -p ~/.dsh/group/
2. In the group directory (/etc/dsh/group or ~/.dsh/group). Create nodegroup file that contains hostname of nodes in the groups, one host per line. The filename will be the name of the nodegroup. e.g.
# vim /etc/dsh/group/compute
compute-00-00
compute-00-01
- Then you can use pdsh -g
# pdsh -g compute uname
Was this topic helpful?
Document Information
Modified date:
14 July 2025
UID
isg3T1014669