Chapter 2: Deploying Torque (Open PBS)
Deploying RSH
By default PBS will want to use the rsh and rcp tools to copy
around input and output files, even if jobs are only running
on this single node "cluster".
So the first step is to get rsh
and similar tools installed. They most likely will not have
been installed since to some extent they are a security risk,
but for the purpose of this tutorial there is nothing to worry
about.
As the user root, begin by making sure that xinetd is installed:
[root@nodeB data]# rpm -qa|grep xinetd
xinetd-2.3.13-6
Also make sure that it is configured to start up at boottime:
/sbin/chkconfig --list | grep xinetd
xinetd 0:off 1:off 2:off 3:on 4:on 5:on 6:off
xinetd based services:
If xinetd is not available it can be installed by doing:
yum install xinetd
Next install the two necessary rsh packages:
yum install rsh-server
yum install rsh
By default the rsh and rlogin services will not be enabled. To enable them edit the files
/etc/xinetd.d/rsh
/etc/xinetd.d/rlogin
and change disable to 'no'.
Then do:
/etc/init.d/xinetd restart
to restart xinetd (or 'start' if it is not running).
Next we have to configure the machine to allow access via rsh and rlogin from only itself. To do this edit the file /etc/hosts.equiv and add only a single line with the IP address for nodeb and make sure the IP address was entered correctly with the following command. Note that this file may not yet exist or simply be an empty file.
[root@nodeB xinetd.d]# cat /etc/hosts.equiv
192.168.31.40
Next test to make sure that rsh works for user 'jane':
[jane@nodeB ~]$ /usr/bin/rsh nodeb /usr/bin/whoami
jane
|