# 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.

  1. Log into the login node

  2. Become the root user and, unless otherwise stated, stay as the root user.

  1. Prepare the login node
  1. Set the hostname.

    sudo hostnamectl set-hostname chead1.pri.mycluster1.cluster.local
  2. 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
  1. Prepare the first compute node
  1. ssh into compute node 1 by using the hostname e.g. ssh ip...name

  2. Set the hostname:

    sudo hostnamectl set-hostname cnode01.pri.mycluster1.cluster.local
  3. 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
  1. Prepare the second compute node
  1. ssh into compute node 2 by using the hostname e.g. ssh ip...name

  2. Set the hostname:

    sudo hostnamectl set-hostname cnode02.pri.mycluster1.cluster.local
  3. 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 node hostnames have been changed to chead1,cnode01, and cnode02. When SSHing into a node, be sure to use these hostnames.