HP XC System Software Administration Guide Version 3.2

15.9 Enabling SLURM to Recognize a New Node
Use the following procedure to enable SLURM to recognize a new node, that is, a node known
to the HP XC system but not managed by SLURM.
This procedure adds node n9 to the SLURM lsf partition, which already consists of nodes n1
through n8.
1. Log in to the head node as the superuser (root).
2. Log in to the node to be added to gather information on the node's characteristics:
a. Log in to the node:
# ssh n9
Last login: date and time stamp from node name
Linux for High Performance Computing
This product is based on Red Hat Enterprise Linux version 4 source
packages found on ftp.redhat.com. Red Hat(R) is a registered
trademark of Red Hat, Inc. This disc is not a product of Red Hat,
Inc. and is not endorsed by Red Hat, Inc. This is a product of
Hewlett-Packard Company.
[root@n9]#
b. Determine the number of cores (processors) on the node:
[root@n9]# grep processor /proc/cpuinfo | wc -l
2
c. Determine the amount of real memory in megabytes:
[root@n9]# grep MemTotal /proc/meminfo
MemTotal: 2056364 kB
[root@n9]# expr 2056364 \/ 1024
2008
Note that the value for RealMemory for node n9 is 2008.
d. Exit the session:
[root@n9]# exit
Connection to n9 closed.
#
3. If the system has more than one partition, determine the partition to which the new node
will be added.
4. Save a backup copy of the /hptc_cluster/slurm/etc/slurm.conf file.
5. Use the editor of your choice to update the /hptc_cluster/slurm/etc/slurm.conf
file as follows:
a. Locate the line that begins with NodeName=. There may be more than one line because
the nodes with the same characteristics are described on a single line.
Choose the line that is appropriate for this node; that is, ensure that the number of
processors and the RealMemory= characteristics match the description.
If the characteristics match, add the node name of the new node to the list of nodes.
If the characteristics do not match, insert a new NodeName= line to describe the new
node.
For example:
NodeName=n[1-5] Procs=2 RealMemory=1994
NodeName=n[6-8] Procs=2 RealMemory=4032
These lines change to:
186 Managing SLURM