<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    OK! Found the solution (came from a Luster user). So simple!...<br>
    <br>
    <br>
    Quote:<br>
    ---<br>
    I think the possible solution to your problem lies in
    differentiating the two different IB networks - by changing the
    lustre lnet device names.<br>
    This means that each separate cluster would have different
    non-default "o2ib" naming convention in modprobe.conf.<br>
    <br>
    The IB3 lustre servers might call it:<br>
    <p class="MsoPlainText"> options lnet
      networks="o2ib3(bond0),tcp(eth0)"</p>
    and the IB4 lustre servers might call it:<br>
    <p class="MsoPlainText"> options lnet
      networks="o2ib4(bond0),tcp(eth0)"</p>
    ---<br>
    <br>
    That solution works perfectly.<br>
    <br>
    Thanks to repliers!<br>
    <br>
    Season's Greetings all!<br>
    <br>
    On 12/19/11 12:57, Patrice Hamelin wrote:
    <blockquote cite="mid:4EEF34C5.5080603@ec.gc.ca" type="cite">
      <meta content="text/html; charset=windows-1252"
        http-equiv="Content-Type">
      <title></title>
      Cliff,<br>
      <br>
       Maybe our configuration is a bit special. We are running two
      Infiniband partitions, one for storage and the other for TCP over
      IB. Both clusters are named IB3 and IB4.<br>
      <br>
      I have 4 OSS on clustre IB3 which are configured like:<br>
      <br>
      bond0 Link encap:InfiniBand HWaddr
      80:00:00:4B:FE:80:00:00:00:00:00:00:00:00:00:00:00:00:00:00 <br>
       inet addr:10.10.135.115 Bcast:10.10.135.255
      Mask:255.255.255.0<br>
       inet6 addr: fe80::202:c903:e:8bc6/64 Scope:Link<br>
       UP BROADCAST RUNNING MASTER MULTICAST MTU:65520
      Metric:1<br>
       RX packets:6 errors:0 dropped:0 overruns:0 frame:0<br>
       TX packets:0 errors:0 dropped:0 overruns:0 carrier:0<br>
       collisions:0 txqueuelen:0 <br>
       RX bytes:336 (336.0 b) TX bytes:0 (0.0 b)<br>
      <br>
      eth0 Link encap:Ethernet HWaddr E4:1F:13:60:93:C0 <br>
       inet addr:10.10.132.115 Bcast:10.10.132.255
      Mask:255.255.255.0<br>
       inet6 addr: fe80::e61f:13ff:fe60:93c0/64 Scope:Link<br>
       UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1<br>
       RX packets:85 errors:0 dropped:0 overruns:0 frame:0<br>
       TX packets:91 errors:0 dropped:0 overruns:0 carrier:0<br>
       collisions:0 txqueuelen:1000 <br>
       RX bytes:10707 (10.4 KiB) TX bytes:10607 (10.3 KiB)<br>
       Interrupt:169 Memory:92000000-92012800 <br>
      <br>
      ib0.8001 Link encap:InfiniBand HWaddr
      80:00:00:4A:FE:80:00:00:00:00:00:00:00:00:00:00:00:00:00:00 <br>
       UP BROADCAST RUNNING SLAVE MULTICAST MTU:65520
      Metric:1<br>
       RX packets:3 errors:0 dropped:0 overruns:0 frame:0<br>
       TX packets:0 errors:0 dropped:0 overruns:0 carrier:0<br>
       collisions:0 txqueuelen:256 <br>
       RX bytes:168 (168.0 b) TX bytes:0 (0.0 b)<br>
      <br>
      ib1.8001 Link encap:InfiniBand HWaddr
      80:00:00:4B:FE:80:00:00:00:00:00:00:00:00:00:00:00:00:00:00 <br>
       UP BROADCAST RUNNING SLAVE MULTICAST MTU:65520
      Metric:1<br>
       RX packets:3 errors:0 dropped:0 overruns:0 frame:0<br>
       TX packets:0 errors:0 dropped:0 overruns:0 carrier:0<br>
       collisions:0 txqueuelen:256 <br>
       RX bytes:168 (168.0 b) TX bytes:0 (0.0 b)<br>
      <br>
      lo Link encap:Local Loopback <br>
       inet addr:127.0.0.1 Mask:255.0.0.0<br>
       inet6 addr: ::1/128 Scope:Host<br>
       UP LOOPBACK RUNNING MTU:16436 Metric:1<br>
       RX packets:8 errors:0 dropped:0 overruns:0 frame:0<br>
       TX packets:8 errors:0 dropped:0 overruns:0 carrier:0<br>
       collisions:0 txqueuelen:0 <br>
       RX bytes:560 (560.0 b) TX bytes:560 (560.0 b)<br>
      <br>
      [root@ib3-st01 ~]# cat /etc/modprobe.conf<br>
      alias eth0 bnx2<br>
      alias eth1 bnx2<br>
      alias scsi_hostadapter mptbase<br>
      alias scsi_hostadapter1 mptsas<br>
      alias scsi_hostadapter2 ata_piix<br>
      alias scsi_hostadapter3 qla2xxx<br>
      alias usb0 cdc_ether<br>
      alias bond0 bonding<br>
      options bond0 miimon=100 mode=1<br>
      options lnet networks="o2ib(bond0),tcp(eth0)"<br>
      options ost oss_num_threads=24<br>
      <br>
      I formatted the MGS/MDT like:<font face="Liberation Mono,
        monospace"><font size="2"><br>
          <br>
          mkfs.lustre --mgs --mdt --fsname=sata --reformat
          /dev/mpath/emcssd-1</font></font>
      <p style="margin-bottom: 0in;">And the 8 OST's like:<br>
      </p>
      <p style="margin-bottom: 0in;">
        <style type="text/css">p { margin-bottom: 0.08in; }</style> </p>
      <p style="margin-bottom: 0in;"><font face="Liberation Mono,
          monospace"><font size="2">mkfs.lustre --fsname sata --reformat
            --ost --mgsnode=10.10.135.115@o2ib
            --mgsnode=10.10.132.115@tcp /dev/mpath/colosse4-lun53-sata</font></font></p>
      <br>
      [root@ib3-st01 ~]# cat /etc/ha.d/haresources<br>
      ib3-st01 Filesystem::/dev/mpath/emcssd-1::/mnt/mdt-colosse::lustre<br>
      ib3-st01
      Filesystem::/dev/mpath/colosse4-lun53-sata::/mnt/data/clun53::lustre<br>
      ib3-st02
      Filesystem::/dev/mpath/colosse4-lun54-sata::/mnt/data/clun54::lustre<br>
      ib3-st03
      Filesystem::/dev/mpath/colosse4-lun55-sata::/mnt/data/clun55::lustre<br>
      ib3-st04
      Filesystem::/dev/mpath/colosse4-lun56-sata::/mnt/data/clun56::lustre<br>
      ib3-st01
      Filesystem::/dev/mpath/colosse4-lun57-sata::/mnt/data/clun57::lustre<br>
      ib3-st02
      Filesystem::/dev/mpath/colosse4-lun58-sata::/mnt/data/clun58::lustre<br>
      ib3-st03
      Filesystem::/dev/mpath/colosse4-lun59-sata::/mnt/data/clun59::lustre<br>
      ib3-st04
      Filesystem::/dev/mpath/colosse4-lun60-sata::/mnt/data/clun60::lustre<br>
      <br>
      [root@ib3-st01 ~]# lctl list_nids<br>
      10.10.135.115@o2ib<br>
      10.10.132.115@tcp<br>
      <br>
      service heartbeat start<br>
      <br>
      <br>
      Client on cluster IB3<br>
      ib3-bc3e41-be01:~# ifconfig <br>
      ib0.8001 Link encap:UNSPEC HWaddr
      80-00-00-51-FE-80-00-00-00-00-00-00-00-00-00-00 <br>
       inet addr:10.10.135.74 Bcast:10.10.135.255
      Mask:255.255.255.0<br>
       inet6 addr: fe80::224:e890:97fe:fc91/64 Scope:Link<br>
       UP BROADCAST RUNNING MULTICAST MTU:65520 Metric:1<br>
       RX packets:5580 errors:0 dropped:0 overruns:0 frame:0<br>
       TX packets:0 errors:0 dropped:0 overruns:0 carrier:0<br>
       collisions:0 txqueuelen:2048 <br>
       RX bytes:430797 (430.7 KB) TX bytes:0 (0.0 B)<br>
      <br>
      ib0.8608 Link encap:UNSPEC HWaddr
      80-00-00-4A-FE-80-00-00-00-00-00-00-00-00-00-00 <br>
       inet addr:10.10.133.74 Bcast:10.10.133.255
      Mask:255.255.255.0<br>
       inet6 addr: fe80::224:e890:97fe:fc91/64 Scope:Link<br>
       UP BROADCAST RUNNING MULTICAST MTU:65520 Metric:1<br>
       RX packets:209527 errors:0 dropped:0 overruns:0 frame:0<br>
       TX packets:99270 errors:0 dropped:2 overruns:0 carrier:0<br>
       collisions:0 txqueuelen:2048 <br>
       RX bytes:20774987 (20.7 MB) TX bytes:16029957 (16.0 MB)<br>
      <br>
      lo Link encap:Local Loopback <br>
       inet addr:127.0.0.1 Mask:255.0.0.0<br>
       inet6 addr: ::1/128 Scope:Host<br>
       UP LOOPBACK RUNNING MTU:16436 Metric:1<br>
       RX packets:157814 errors:0 dropped:0 overruns:0 frame:0<br>
       TX packets:157814 errors:0 dropped:0 overruns:0
      carrier:0<br>
       collisions:0 txqueuelen:0 <br>
       RX bytes:7262472 (7.2 MB) TX bytes:7262472 (7.2 MB)<br>
      <br>
      ib3-bc3e41-be01:/proc/fs/lustre/osc# cat
      /etc/modprobe.d/lustre.conf <br>
      options lnet networks="o2ib(ib0.8001),tcp(ib0.8608)<br>
      <br>
      I am able to mount both o2ib and tcp (strange though but still it
      works!)<br>
      <br>
      ib3-bc3e41-be01:/proc/fs/lustre/osc# mount -t lustre<br>
      10.10.135.115@o2ib:/sata on /mnt/sata type lustre (rw)<br>
      10.10.132.115@tcp:/sata on /mnt/sata type lustre (rw)<br>
      <br>
      The same goes for clients on cluster IB4.<br>
      <br>
      What I would like to achieve is TCP mount from cluster IB4 to
      cluster IB3<br>
      <br>
      Clients on cluster IB4 are like:<br>
      ib4-bc1f82-be01:~# ifconfig <br>
      ib0.8003 Link encap:UNSPEC HWaddr
      80-00-00-50-FE-80-00-00-00-00-00-00-00-00-00-00 <br>
       inet addr:10.10.142.26 Bcast:10.10.142.255
      Mask:255.255.255.0<br>
       inet6 addr: fe80::224:e890:97fe:fca9/64 Scope:Link<br>
       UP BROADCAST RUNNING MULTICAST MTU:65520 Metric:1<br>
       RX packets:2530 errors:0 dropped:0 overruns:0 frame:0<br>
       TX packets:280 errors:0 dropped:0 overruns:0 carrier:0<br>
       collisions:0 txqueuelen:2048 <br>
       RX bytes:609159 (609.1 KB) TX bytes:16936 (16.9 KB)<br>
      <br>
      ib0.8613 Link encap:UNSPEC HWaddr
      80-00-00-4A-FE-80-00-00-00-00-00-00-00-00-00-00 <br>
       inet addr:10.10.140.26 Bcast:10.10.140.255
      Mask:255.255.255.0<br>
       inet6 addr: fe80::224:e890:97fe:fca9/64 Scope:Link<br>
       UP BROADCAST RUNNING MULTICAST MTU:65520 Metric:1<br>
       RX packets:4218 errors:0 dropped:0 overruns:0 frame:0<br>
       TX packets:3196 errors:0 dropped:1 overruns:0 carrier:0<br>
       collisions:0 txqueuelen:2048 <br>
       RX bytes:570916 (570.9 KB) TX bytes:1665488 (1.6 MB)<br>
      <br>
      lo Link encap:Local Loopback <br>
       inet addr:127.0.0.1 Mask:255.0.0.0<br>
       inet6 addr: ::1/128 Scope:Host<br>
       UP LOOPBACK RUNNING MTU:16436 Metric:1<br>
       RX packets:1455 errors:0 dropped:0 overruns:0 frame:0<br>
       TX packets:1455 errors:0 dropped:0 overruns:0 carrier:0<br>
       collisions:0 txqueuelen:0 <br>
       RX bytes:69554 (69.5 KB) TX bytes:69554 (69.5 KB)<br>
      <br>
      ib4-bc1f82-be01:~# cat /etc/modprobe.d/lustre.conf <br>
      options lnet networks="o2ib(ib0.8003),tcp(ib0.8613)"<br>
      <br>
      ib4-bc1f82-be01:~# lctl ping 10.10.132.115@tcp<br>
      12345-0@lo<br>
      12345-10.10.135.115@o2ib<br>
      12345-10.10.132.115@tcp<br>
      <br>
      ib4-bc1f82-be01:~# mount -t lustre 10.10.132.115@tcp:/sata
      /mnt/sata<br>
      <br>
      That hangs and the log files says:<br>
      <br>
      Dec 19 12:43:50 ib4-bc1f82-be01 kernel: [ 1649.617429] Lustre:
      2420:0:(import.c:517:import_select_connection())
      sata-MDT0000-mdc-ffff880c3a9e6400: tried all connections,
      increasing latency to 1s<br>
      Dec 19 12:45:05 ib4-bc1f82-be01 kernel: [ 1724.492699] Lustre:
      2420:0:(import.c:517:import_select_connection())
      sata-MDT0000-mdc-ffff880c3a9e6400: tried all connections,
      increasing latency to 4s<br>
      Dec 19 12:45:05 ib4-bc1f82-be01 kernel: [ 1724.492705] Lustre:
      2420:0:(import.c:517:import_select_connection()) Skipped 2
      previous similar messages<br>
      Dec 19 12:47:35 ib4-bc1f82-be01 kernel: [ 1874.243747] Lustre:
      2420:0:(import.c:517:import_select_connection())
      sata-MDT0000-mdc-ffff880c3a9e6400: tried all connections,
      increasing latency to 10s<br>
      Dec 19 12:47:35 ib4-bc1f82-be01 kernel: [ 1874.243754] Lustre:
      2420:0:(import.c:517:import_select_connection()) Skipped 5
      previous similar messages<br>
      Dec 19 12:52:35 ib4-bc1f82-be01 kernel: [ 2173.742386] Lustre:
      2420:0:(import.c:517:import_select_connection())
      sata-MDT0000-mdc-ffff880c3a9e6400: tried all connections,
      increasing latency to 21s<br>
      Dec 19 12:52:35 ib4-bc1f82-be01 kernel: [ 2173.742393] Lustre:
      2420:0:(import.c:517:import_select_connection()) Skipped 10
      previous similar messages<br>
      Dec 19 12:52:35 ib4-bc1f82-be01 kernel: [ 2173.742544] Lustre:
      2419:0:(client.c:1487:ptlrpc_expire_one_request()) @@@ Request
      x1388626094064659 sent from sata-MDT0000-mdc-ffff880c3a9e6400 to
      NID 10.10.135.115@o2ib 0s ago has failed due to network error (26s
      prior to deadline).<b><br>
      </b>Dec 19 12:52:35 ib4-bc1f82-be01 kernel: [ 2173.742547]
      req@ffff880c3b0e6400 x1388626094064659/t0 o38-&gt;<a
        moz-do-not-send="true" class="moz-txt-link-abbreviated"
        href="mailto:sata-MDT0000_UUID@10.10.135.115@o2ib:12/10">sata-MDT0000_UUID@10.10.135.115@o2ib:12/10</a>
      lens 368/584 e 0 to 1 dl 1324299181 ref 1 fl Rpc:N/0/0 rc 0/0<br>
      Dec 19 12:52:35 ib4-bc1f82-be01 kernel: [ 2173.742554] Lustre:
      2419:0:(client.c:1487:ptlrpc_expire_one_request()) Skipped 23
      previous similar messages<br>
      <br>
      <br>
      Seems like I have a network error from
      "sata-MDT0000-mdc-ffff880c3a9e6400" to NID "10.10.135.115@o2ib"<br>
      <br>
      Same phenomenon is observed if I try to mount IB3 clients from IB4
      lustre partitions.<br>
      <br>
      What am I missing here?<br>
      <br>
      Thanks.<br>
      <br>
      <br>
      On 12/16/11 22:27, Cliff White wrote:
      <blockquote
cite="mid:CAGgoGxPtEP+4P9yNcBSExFYYxig3A-7cJJqMWVQcUkqLtCfpUg@mail.gmail.com"
        type="cite">You can do this, simply define networks for both
        devices.
        <div>Assuming ib0, and eth0, you would have</div>
        <div>options lnet networks="tcp0(eth0),o2ib0(ib0)"</div>
        <div><br>
        </div>
        <div>The IB clients will mount using a @o2ib0 NID, and the
          ethernet clients will mount using @tcp0 NIDs. Since you are
          explicitly specifying the network, the hop rule doesn't apply.</div>
        <div>cliffw</div>
        <div><br>
          <br>
          <div class="gmail_quote">On Fri, Dec 16, 2011 at 9:49 AM,
            Patrice Hamelin <span dir="ltr">&lt;<a
                moz-do-not-send="true"
                href="mailto:patrice.hamelin@ec.gc.ca">patrice.hamelin@ec.gc.ca</a>&gt;</span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
              0.8ex; border-left: 1px solid rgb(204, 204, 204);
              padding-left: 1ex;">
              <div bgcolor="#ffffff" text="#000000"> Hi,<br>
                <br>
                 I have two Infiniband clusters, each in a separate
                location with a solid ethernet connectivity between each
                of them. Say they are named cluster A and cluster B.
                All members of each clusters have both IB and eth
                networks available to them, and the IB network is not
                routed between cluster A and B, but ethernet is. On
                each clusters, I have 4 OSS's serving FC disks. Clients
                on cluster A mounts Lustre disk from their local
                cluster, and the same goes on for for cluster B, both on
                Infiniband NIDs.<br>
                <br>
                 What I would like to achieve is client from cluster A
                to mount disks from OSS's on cluster B on the ethernet
                connection. The same goes on for clients in cluster B
                to mount disks from OSS's on cluster A.<br>
                <br>
                 From my readings in the luster 1.8.7 manual, I got:<br>
                <br>
                7.1.1 Modprobe.conf<br>
                Options under modprobe.conf are used to specify the
                networks available to a node.<br>
                You have the choice of two different options  the
                networks option, which explicitly<br>
                lists the networks available and the ip2nets option,
                which provides a list-matching<br>
                lookup. Only one option can be used at any one time. The
                order of LNET lines in<br>
                modprobe.conf is important when configuring multi-homed
                servers. <b>If a server<br>
                  node can be reached using more than one network, the
                  first network specified in<br>
                  modprobe.conf will be used.</b><br>
                <br>
                Is the last sentence means that I cannot do that?<br>
                <br>
                Thanks.<span class="HOEnZb"><font color="#888888"><br>
                    <br>
                    -- <br>
                    Patrice Hamelin<br>
                    Specialiste snior en systmes d'exploitation |
                    Senior OS specialist<br>
                    Environnement Canada | Environment Canada<br>
                    2121, route Transcanadienne | 2121 Transcanada
                    Highway<br>
                    Dorval, QC H9P 1J3<br>
                    Gouvernement du Canada | Government of Canada<br>
                    <br>
                  </font></span></div>
              <br>
              _______________________________________________<br>
              Lustre-discuss mailing list<br>
              <a moz-do-not-send="true"
                href="mailto:Lustre-discuss@lists.lustre.org">Lustre-discuss@lists.lustre.org</a><br>
              <a moz-do-not-send="true"
                href="http://lists.lustre.org/mailman/listinfo/lustre-discuss"
                target="_blank">http://lists.lustre.org/mailman/listinfo/lustre-discuss</a><br>
              <br>
            </blockquote>
          </div>
          <br>
          <br clear="all">
          <div><br>
          </div>
          -- <br>
          cliffw
          <div>Support Guy</div>
          <div>WhamCloud, Inc.</div>
          <div><a moz-do-not-send="true" href="http://www.whamcloud.com"
              target="_blank">www.whamcloud.com</a></div>
          <div><br>
          </div>
          <br>
        </div>
      </blockquote>
      <br>
      <pre class="moz-signature" cols="72">-- 
Patrice Hamelin
Specialiste snior en systmes d'exploitation | Senior OS specialist
Environnement Canada | Environment Canada
2121, route Transcanadienne | 2121 Transcanada Highway
Dorval, QC H9P 1J3
Tlphone | Telephone 514-421-5303
Tlcopieur | Facsimile 514-421-7231
Gouvernement du Canada | Government of Canada</pre>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Lustre-discuss mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Lustre-discuss@lists.lustre.org">Lustre-discuss@lists.lustre.org</a>
<a class="moz-txt-link-freetext" href="http://lists.lustre.org/mailman/listinfo/lustre-discuss">http://lists.lustre.org/mailman/listinfo/lustre-discuss</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Patrice Hamelin
Specialiste snior en systmes d'exploitation | Senior OS specialist
Environnement Canada | Environment Canada
2121, route Transcanadienne | 2121 Transcanada Highway
Dorval, QC H9P 1J3
Tlphone | Telephone 514-421-5303
Tlcopieur | Facsimile 514-421-7231
Gouvernement du Canada | Government of Canada</pre>
  </body>
</html>