Manually Adding Nodes to Database

The insert-ethers command used to support manually adding nodes, it no longer does, however this can be performed using the rocks command:

You can look at the output of rocks dump to see what should be defined, but here is some help...

Add a node and define its eth0

add host, add host interface, set host interface for ip, mac, module, name and subnet

rocks add host msu2 cpus=8 rack=101 rank=24 membership="Dell x950 Server"
rocks add host interface msu2 eth0
rocks set host interface ip msu2 eth0 10.10.2.12
rocks set host interface mac msu2 eth0 00:19:b9:ca:f3:35
rocks set host interface module msu2 eth0 bnx2
rocks set host interface name msu2 eth0 msu2
rocks set host interface subnet msu2 eth0 private 

Do rocks sync config to get dhcpd.conf regenerated.

Do rocks set host pxeboot msu2 action=install tp prepare for node install.

After this, the network entry in the database has NULL for netmask and gateway (and options and comment).

Define eth1

For hosts with multiple interfaces, define the ip, name and subnet for the second interface. ROCKS will add the mac and module at install time. (However for the Dells, we know that the IP for eth1 is just 2 higher than for eth0 and module is bnx2).

rocks add host interface msu2 eth1
rocks set host interface ip msu2 eth1 192.41.231.12
rocks set host interface name msu2 eth1 msu2.aglt2.org
rocks set host interface subnet msu2 eth1 public

Add a DRAC card

add host, add host interface, set host interface for ip, mac, name and subnet

rocks add host rac-msu2 rack=101 rank=24 membership="Remote Management"
rocks add host interface rac-msu2 eth0
rocks set host interface ip rac-msu2 eth0 10.10.3.12
rocks set host interface mac rac-msu2 eth0 00:19:b9:ca:f3:39
rocks set host interface name rac-msu2 eth0 rac-msu2
rocks set host interface subnet rac-msu2 eth0 private

After that, the DRAC will appear in /etc/hosts, forward and reverse DNS and dhcpd.conf.

-- TomRockwell - 21 Dec 2007
Topic revision: r7 - 27 May 2008, TomRockwell
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback