Difference between revisions of "Debian 7 Infiniband"

From Supercomputación y Cálculo Científico UIS
(Created page with "= Infiniband configuration in Debian 7 = == Install the required software == {{Command|<nowiki> apt-get -y install infiniband-diags ibutils libmthca ibverbs-utils libibumad...")
 
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
= Infiniband configuration in Debian 7 =
+
__NOTOC__
  
== Install the required software ==  
+
<div class="thumbnail img-thumbnail">http://wiki.sc3.uis.edu.co/images/a/a8/Logo_sc33.png</div>
 +
<p><div class="btn btn-primary"><i class="fa  fa-long-arrow-left"></i> [[Administración del SC3]]</div></p>
  
{{Command|<nowiki> apt-get -y install infiniband-diags ibutils libmthca ibverbs-utils libibumad libibmad libibverbs1 libmthca1 libmthca1-dbg libmthca-dev libopensm2 opensm </nowiki>}}
+
<div class="col-md-14">
 +
    <div class="panel panel-darker-white-border">
 +
        <div class="panel-heading">
 +
            <h3 class="panel-title">Infiniband configuration in Debian 7</h3>
 +
        </div>
 +
        <div class="panel-body">
 +
            <p><b>Install the required software</b></p>
 +
            <p>{{Command|<nowiki>apt-get -y install infiniband-diags ibutils libmthca ibverbs-utils libibumad libibmad libibverbs1  
 +
libmthca1 libmthca1-dbg libmthca-dev libopensm2 opensm </nowiki>}}
 +
            </p>
 +
            <p><b>Load the kernel Modules</b></p>
 +
            <p>Load the proper linux modules. Edit the file '''/etc/modules''' and add the following lines</p>
 +
            <p>{{File|/etc/modules|<pre><nowiki>
 +
            #tarjeta Mellanox MT26438
 +
            mlx4_ib
  
 +
            #IP over IB
 +
            ib_ipoib
  
==Load the kernel Modules ==
+
            # Protocol modules
 
+
            # Common modules
Load the proper linux modules. Edit the file /etc/modules and add the following lines
+
            rdma_ucm
 
+
            ib_umad
{{File|/etc/modules|<pre><nowiki>
+
            ib_uverbs
 
+
            </nowiki></pre>}}</p>
        #tarjeta Mellanox MT26438
+
            <p>Then, execute the following commands</p>
        mlx4_ib
+
            <p>{{Command|<nowiki>
 
+
            modprobe mlx4_ib
        #IP over IB
+
            modprobe ib_ipoib
        ib_ipoib
+
            modprobe rdma_ucm
 
+
            modprobe ib_umad
        # Protocol modules
+
            modprobe ib_uverbs
        # Common modules
+
            </nowiki>}}</p>
        rdma_ucm
+
            <p><b>Subnetting Daemon Configuration</b></p>
        ib_umad
+
            <p>find the available ports in the card.</p>
        ib_uverbs
+
            <p>{{Command|<nowiki> ibstat -p </nowiki>}}</p>
 
+
            <p>The output are the identifiers of the ports. Example: </p>
</nowiki></pre>}}
+
            <p>0x78e7d10300244e95</p>
 
+
            <p>Then, edit the file '''/etc/default/opensm'''</p>
Then, execute the following commands
+
            <p>And change the following line</p>
 
+
            <p>        PORTS=ALL</p>
{{Command|<nowiki> modprobe mlx4_ib
+
            <p>Like this</p>
        modprobe ib_ipoib
+
            <p>PORTS="0x78e7d10300244e95"</p>
        modprobe rdma_ucm
+
            <p><b>Start The Subnetting Service</b></p>
        modprobe ib_umad
+
            <p>Start the opensm service</p>
        modprobe ib_uverbs </nowiki>}}
+
            <p>{{Command|<nowiki> /etc/init.d/opensm start </nowiki>}}</p>
 
+
            <p><b>Configure the Infiniband Interface</b></p>
== Subnetting Daemon Configuration ==
+
            <p>Edit the file '''/etc/network/interfaces''' and add the following lines</p>
 
+
            <p>{{File|/etc/network/interfaces|<pre><nowiki>
find the available ports in the card.
+
            auto ib0
 
+
            iface ib0 inet static
{{Command|<nowiki> ibstat -p </nowiki>}}
+
            address 192.168.38.71
 
+
            netmask 255.255.255.0
The output are the identifiers of the ports. Example:  
+
            broadcast 192.168.38.255
 
+
            </nowiki></pre>}}</p>
        0x78e7d10300244e95
+
            <p>Then, start the interface</p>
 
+
            <p>{{Command|<nowiki> ifup ib0 </nowiki>}}</p>
Then, edit the file '''/etc/default/opensm'''
+
            <p>Test the interface using the following commands</p>
 
+
            <p>{{Command|<nowiki>
And change the following line
+
            ibstat
 
+
            ibhosts
        PORTS=ALL
+
            </nowiki>}}</p>
 
+
        </div>
Like this
+
    </div>
 
+
</div>
        PORTS="0x78e7d10300244e95"
 
 
 
== Start The Subnetting Service ==
 
 
 
Start the opensm service
 
 
 
{{Command|<nowiki> /etc/init.d/opensm start </nowiki>}}
 
 
 
== Configure the Infiniband Interface ==
 
 
 
Edit the file '''/etc/network/interfaces''' and add the following lines
 
 
 
 
 
{{File|/etc/network/interfaces|<pre><nowiki>
 
 
 
        auto ib0
 
        iface ib0 inet static
 
        address 192.168.38.71
 
        netmask 255.255.255.0
 
        broadcast 192.168.38.255
 
 
 
</nowiki></pre>}}
 
 
 
Then, start the interface
 
 
 
{{Command|<nowiki> ifup ib0 </nowiki>}}
 
 
 
Test the interface using the following commands
 
 
 
{{Command|<nowiki> ibstat
 
        ibhosts </nowiki>}}
 

Latest revision as of 19:13, 9 April 2015


Logo_sc33.png

Infiniband configuration in Debian 7

Install the required software

apt-get -y install infiniband-diags ibutils libmthca ibverbs-utils libibumad libibmad libibverbs1 libmthca1 libmthca1-dbg libmthca-dev libopensm2 opensm

Load the kernel Modules

Load the proper linux modules. Edit the file /etc/modules and add the following lines

File: /etc/modules
            #tarjeta Mellanox MT26438
            mlx4_ib

            #IP over IB
            ib_ipoib

            # Protocol modules
            # Common modules
            rdma_ucm
            ib_umad
            ib_uverbs
            

Then, execute the following commands

modprobe mlx4_ib modprobe ib_ipoib modprobe rdma_ucm modprobe ib_umad modprobe ib_uverbs

Subnetting Daemon Configuration

find the available ports in the card.

ibstat -p

The output are the identifiers of the ports. Example:

0x78e7d10300244e95

Then, edit the file /etc/default/opensm

And change the following line

PORTS=ALL

Like this

PORTS="0x78e7d10300244e95"

Start The Subnetting Service

Start the opensm service

/etc/init.d/opensm start

Configure the Infiniband Interface

Edit the file /etc/network/interfaces and add the following lines

File: /etc/network/interfaces
            auto ib0
            iface ib0 inet static
            address 192.168.38.71
            netmask 255.255.255.0
            broadcast 192.168.38.255
            

Then, start the interface

ifup ib0

Test the interface using the following commands

ibstat ibhosts