#
a. Prepare Nodes
This example instruction cluster consists of a login node and two compute nodes, but it is possible to use more. Make sure to do all the instructions on a tab, then proceed the next tab and repeat.
Log into the login node
Become the root user and, unless otherwise stated, stay as the root user.
- Prepare the login node
Set the hostname.
sudo hostnamectl set-hostname chead1.pri.mycluster1.cluster.local
Go to the file
/etc/hosts
and add this:10.50.0.13 chead1.pri.mycluster1.cluster.local chead1.pri chead1 10.50.0.31 cnode01.pri.mycluster1.cluster.local cnode01.pri cnode01 10.50.0.26 cnode02.pri.mycluster1.cluster.local cnode02.pri cnode02
The ip addresses will be different, make sure to change them.
- Prepare the first compute node
ssh into compute node 1 by using the hostname e.g.
ssh ip...name
Set the hostname:
sudo hostnamectl set-hostname cnode01.pri.mycluster1.cluster.local
Go to the file
/etc/hosts
and add this:10.50.0.13 chead1.pri.mycluster1.cluster.local chead1.pri chead1 10.50.0.31 cnode01.pri.mycluster1.cluster.local cnode01.pri cnode01 10.50.0.26 cnode02.pri.mycluster1.cluster.local cnode02.pri cnode02
The ip addresses will be different
- Prepare the second compute node
ssh into compute node 2 by using the hostname e.g.
ssh ip...name
Set the hostname:
sudo hostnamectl set-hostname cnode02.pri.mycluster1.cluster.local
Go to the file
/etc/hosts
and add this:10.50.0.13 chead1.pri.mycluster1.cluster.local chead1.pri chead1 10.50.0.31 cnode01.pri.mycluster1.cluster.local cnode01.pri cnode01 10.50.0.26 cnode02.pri.mycluster1.cluster.local cnode02.pri cnode02
The ip addresses will be different
The node hostnames have been changed to chead1
,cnode01
, and cnode02
. When SSHing into a node, be sure to use these hostnames.