<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.define-technology.com/mediawiki-1.35.0/index.php?action=history&amp;feed=atom&amp;title=Rocks%3A_Adding_an_Infiniband_Network_on_Rocks</id>
	<title>Rocks: Adding an Infiniband Network on Rocks - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.define-technology.com/mediawiki-1.35.0/index.php?action=history&amp;feed=atom&amp;title=Rocks%3A_Adding_an_Infiniband_Network_on_Rocks"/>
	<link rel="alternate" type="text/html" href="http://wiki.define-technology.com/mediawiki-1.35.0/index.php?title=Rocks:_Adding_an_Infiniband_Network_on_Rocks&amp;action=history"/>
	<updated>2026-05-05T00:06:26Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.0</generator>
	<entry>
		<id>http://wiki.define-technology.com/mediawiki-1.35.0/index.php?title=Rocks:_Adding_an_Infiniband_Network_on_Rocks&amp;diff=2468&amp;oldid=prev</id>
		<title>Michael: Created page with &quot;==== Infiniband Script to add IPoIB to all nodes ====  Tested on Rocks 5.1  This assumes that OFED is correctly installed. The script below will add all the compute node&#039;s ib0...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.define-technology.com/mediawiki-1.35.0/index.php?title=Rocks:_Adding_an_Infiniband_Network_on_Rocks&amp;diff=2468&amp;oldid=prev"/>
		<updated>2013-05-13T09:40:44Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;==== Infiniband Script to add IPoIB to all nodes ====  Tested on Rocks 5.1  This assumes that OFED is correctly installed. The script below will add all the compute node&amp;#039;s ib0...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==== Infiniband Script to add IPoIB to all nodes ====&lt;br /&gt;
&lt;br /&gt;
Tested on Rocks 5.1&lt;br /&gt;
&lt;br /&gt;
This assumes that OFED is correctly installed. The script below will add all the compute node&amp;#039;s ib0 interface to the database and create /etc/sysconfig/network-scripts/ifcfg-ib0.&lt;br /&gt;
&lt;br /&gt;
Edit the script below to reflect the number of nodes you are editing.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
rocks add network ipoib subnet=192.168.0.0 netmask=255.255.255.0;&lt;br /&gt;
echo &amp;quot;rocks add network ipoib subnet=192.168.0.0 netmask=255.255.255.0&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
IP=100;&lt;br /&gt;
NODE=0;&lt;br /&gt;
NNODES=5&lt;br /&gt;
&lt;br /&gt;
while [ $NODE -lt $NNODES ]; do  &lt;br /&gt;
        echo &amp;quot;Adding ib0 network to scarf-0-$NODE&amp;quot;&lt;br /&gt;
        rocks add host interface scarf-0-$NODE ib0 &lt;br /&gt;
        rocks set host interface ip scarf-0-$NODE iface=ib0 ip=192.168.0.$IP; &lt;br /&gt;
        rocks set host interface subnet scarf-0-$NODE iface=ib0 subnet=ipoib; &lt;br /&gt;
        rocks set host interface name scarf-0-$NODE iface=ib0 name=ib-0-$NODE;&lt;br /&gt;
    &lt;br /&gt;
        let IP++; &lt;br /&gt;
        let NODE++; &lt;br /&gt;
done;&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;Sync config... &amp;quot;;&lt;br /&gt;
rocks sync config;&lt;br /&gt;
&lt;br /&gt;
NODE=0;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
while [ $NODE -lt $NNODES ]; do&lt;br /&gt;
        echo &amp;quot;Syncing network ib0 on scarf-0-$NODE...&amp;quot;;&lt;br /&gt;
        rocks sync host network scarf-0-$NODE;&lt;br /&gt;
&lt;br /&gt;
        let NODE++; &lt;br /&gt;
done&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Michael</name></author>
	</entry>
</feed>