Difference between revisions of "CentOS 7.x Rocks cluster 7.0 Build compute server"

From Notes_Wiki
m
m
Line 1: Line 1:
[[Main Page|Home]] > [[CentOS]] > [[CentOS 7.x]] > [[CentOS 7.x Rocks cluster 7.0]] > [[CentOS 7.x Rocks cluster 7.0 Build compute server]]
[[Main Page|Home]] > [[CentOS]] > [[CentOS 7.x]] > [[CentOS 7.x Rocks cluster 7.0]] > [[CentOS 7.x Rocks cluster 7.0 Build compute server]]


By default compute nodes are named compute-0-0.local, compute-0-1.local (assuming .local is used as domain name for private network).  The compute nodes are setup via Pxeboot.  They should be connected only to private network and then booted via network.   
By default compute nodes are named compute-0-0.local, compute-0-1.local (assuming .local is used as domain name for private network).  The compute nodes are setup via Pxeboot.  They should be connected only to private network and then booted via network.  '''Ideally compute nodes should be configured to boot via network as primary option and then via hard-disk as secondary'''.


To setup compute node use:
To setup compute node use:
Line 60: Line 60:


There is automatic authorized key setup from master to all compute.  So no password is required.  No prompt would be there to accept ssh fingerprint / key either.  It would directly get connected.
There is automatic authorized key setup from master to all compute.  So no password is required.  No prompt would be there to accept ssh fingerprint / key either.  It would directly get connected.
=Add public network to compute node=
We can see defined networks using:
<pre>
rocks list network
</pre>
Then we can see list of existing host interfaces using:
<pre>
rocks list host interface <hostname>
</pre>
We can see additional ports on host using:
<pre>
ssh <hostname> "ip addr show" | grep mtu
</pre>
Then we can configure IP address for the unconfigured interfaces in one of the listed networks (ie public) using:
<pre>
rocks add host interface <hostname> iface=<interface-name> subnet=<network> ip=<ipaddress>
</pre>
For example
<pre>
rocks add host interface gpu iface=ens224 subnet=public ip=172.31.6.14
</pre>
Then add route for Local networks via public (LAN) interface gateway using:
<pre>
rocks add host route <hostname> <network> <gateway> netmask=<netmask>
rocks sync config
rocks sync host network <hostname>
</pre>
For example
<pre>
rocks add host route gpu 10.0.0.0 172.31.6.1 netmask=255.0.0.0
rocks sync config
rocks sync host network gpu
</pre>
If required validate using:
<pre>
ssh <hostname> "ip route show"
</pre>
Refer:
* http://central-7-0-x86-64.rocksclusters.org/roll-documentation/base/7.0/x1316.html
* http://central-7-0-x86-64.rocksclusters.org/roll-documentation/base/7.0/x1326.html
* http://central-7-0-x86-64.rocksclusters.org/roll-documentation/base/7.0/customization-extra-nic.html






[[Main Page|Home]] > [[CentOS]] > [[CentOS 7.x]] > [[CentOS 7.x Rocks cluster 7.0]] > [[CentOS 7.x Rocks cluster 7.0 Build compute server]]
[[Main Page|Home]] > [[CentOS]] > [[CentOS 7.x]] > [[CentOS 7.x Rocks cluster 7.0]] > [[CentOS 7.x Rocks cluster 7.0 Build compute server]]

Revision as of 16:32, 10 May 2022

Home > CentOS > CentOS 7.x > CentOS 7.x Rocks cluster 7.0 > CentOS 7.x Rocks cluster 7.0 Build compute server

By default compute nodes are named compute-0-0.local, compute-0-1.local (assuming .local is used as domain name for private network). The compute nodes are setup via Pxeboot. They should be connected only to private network and then booted via network. Ideally compute nodes should be configured to boot via network as primary option and then via hard-disk as secondary.

To setup compute node use:

  1. Before doing network boot on compute node, on master server, run below command:
    insert-ethers
  2. On the ncurses based popup Choose Compute, it would display: 'insert-ethers is waiting for new compute nodes.'
  3. After this boot the compute node via network.
  4. When the frontend machine receives the DHCP request from the compute node, It will display, "Discovered a new appliance with MAC"
  5. insert-ethers has discovered a compute node. The "( )" next to compute-0-0 indicates the node has not yet requested a kickstart file. You will see this type of output for each compute node that is successfully identified by insert-ethers.
    00:13:72:ba:c8:df Compute-0-0 ()
  6. Kickstart files are retrieved via HTTPS. If there was an error during the transmission, the error code will be visible instead of (*).
    00:13:72:ba:c8:df Compute-0-0 (*)
  7. The compute node has successfully requested a kickstart file from the frontend. If there are no more compute nodes, you may now quit insert-ethers by pressing F8.
  8. Compute node will intall automatically.
  9. After successful installation of compute node, it will restart.
  10. We can list of hosts which are part of rocks cluster using
    rocks list host


Ref:


Custome hostname

If we want to give some other hostname then we can use:

insert-ethers --hostname <desired-name>

For example

insert-ethers --hostname gpu

When we use option such as --hostname, we can setup only one node at a time. Once the node successfully requests pxeboot file, insert-ethers exits automatically.

For information on other options taken by insert-ethers refer http://central-7-0-x86-64.rocksclusters.org/roll-documentation/base/7.0/insert-ethers.html


ssh to compute node

To ssh compute node simply use:

ssh <node-name>

For example

ssh compute-0-0
ssh gpu

There is automatic authorized key setup from master to all compute. So no password is required. No prompt would be there to accept ssh fingerprint / key either. It would directly get connected.


Add public network to compute node

We can see defined networks using:

rocks list network

Then we can see list of existing host interfaces using:

rocks list host interface <hostname>

We can see additional ports on host using:

ssh <hostname> "ip addr show" | grep mtu

Then we can configure IP address for the unconfigured interfaces in one of the listed networks (ie public) using:

rocks add host interface <hostname> iface=<interface-name> subnet=<network> ip=<ipaddress>

For example

rocks add host interface gpu iface=ens224 subnet=public ip=172.31.6.14

Then add route for Local networks via public (LAN) interface gateway using:

rocks add host route <hostname> <network> <gateway> netmask=<netmask>
rocks sync config
rocks sync host network <hostname>

For example

rocks add host route gpu 10.0.0.0 172.31.6.1 netmask=255.0.0.0
rocks sync config
rocks sync host network gpu

If required validate using:

ssh <hostname> "ip route show"

Refer:


Home > CentOS > CentOS 7.x > CentOS 7.x Rocks cluster 7.0 > CentOS 7.x Rocks cluster 7.0 Build compute server