User Tools

Site Tools


howto:rocks_add_interface

Add an interface to a Rocks Cluster compute node

Right after installation the compute nodes have no access to the outside network/world. This is of course problematic (especially if you have a licence server on the network). There are two ways how to fix this. First, either route traffic to the outside network via the frontend. Good luck with that, I have tried everything twice with no success and asked the experts here and here. You have to love “I'd simply start over on your frontend”.

The second way is to be lucky (or well-off) and have a second interface on each compute node which you can connect to the outside world (or switch). Even so, this is not straightforward. Note that the second interface of a rocks compute node is not installed by default. In the below the interface is assumed to be prefixed with em (instead of eth), and we assume we are adding an interface on compute-0-0. Apply your case accordingly.

As root:

  1. Do a rocks list network and record the names of the networks (e.g. by default the public network will be called public)
  2. rocks list host interface will tell you which interfaces are installed on each compute/frontend. em1 will almost certainly be your private interface and link to the frontend. Note that if em2 is present but has no details (default install) you will need to delete this.
    1. You can do this via rocks remove host interface compute-0-0 em2
  3. You will need to find the MAC of the compute node you want to install. Log in the compute node and issue ifconfig -a. Note the MAC address.
  4. To install the public interface run rocks add host interface compute-0-0 em2 ip=10.1.2.110 mac=F2:BB:CB:D3:1F:C4 subnet=public with the appropriate IP and MAC address. Note that the subnet field specifies the network you want to connect to (found from Step 1 above).
  5. Check that the installation worked rocks list host interface
  6. You now need to sync the network and cluster with the newly added interface (let Rocks know about it):
    1. rocks sync config
    2. rocks sync host network
howto/rocks_add_interface.txt · Last modified: 2018/10/09 10:12 by 127.0.0.1