Main Menu

Search

Showing posts with label Linker Article IB Exalogic. Show all posts
Showing posts with label Linker Article IB Exalogic. Show all posts

EXALOGIC: INFINIBAND: How to check if all Exalogic Compute Nodes are connected correctly to both the IB Switches

For checking if all Exalogic Compute Nodes are connected correctly to both the IB Switches, run below command on one of the IB Switches in the Fabric.
ibnetdiscover | grep -A 2 "Ca" | egrep -i -A 2 "<node 1 >|<node 2>|.....|<node N>"
For e.g. if you have four compute nodes in the rack with names el01cn01, el01cn02, el01cn03 and el01cn04 your command will look as follows:
ibnetdiscover | grep -A 2 "Ca" | egrep -i -A 2 "el01cn01|el01cn02|el01cn03|el01cn04" 
Output will be in below format
Ca 2 "H-00XXXXXXX" # "< CN/SN Hostname> EL-C <CN/SN IP> HCA-1" 
[1](XXXXXX) "S-00XXXXXX"[<Switch Port>] # lid <lid #> lmc 0 "SUN IB QDR GW switch <Switch 1> <Switch 1 IP>" lid <lid #> 4xQDR 
[2](XXXXXX) "S-00XXXXXX"[<Switch Port>] # lid <lid #> lmc 0 "SUN IB QDR GW switch <Switch 2> <Switch 2 IP>" lid <lid #> 4xQDR  
Below is sample output which shows el01cn01 connected to two IB Switches el01gw01 & el01gw02 correctly.
Ca 2 "H-00XXXXXX128bf08" # "el01cn01 EL-C XX.XX.XX.XX HCA-1" 
[1](XXXXXX128bf09) "S-00XXXXXXXXbac0a0"[6] # lid 5 lmc 0 "SUN IB QDR GW switch el01gw01 XX.XX.XX.XX" lid 41 4xQDR 
[2](XXXXXX128bf0a) "S-00XXXXXXX728c0a0"[6] # lid 6 lmc 0 "SUN IB QDR GW switch el01gw02 XX.XX.XX.XX" lid 11 4xQDR   

Products to which Article Applies
Exalogic racks using Infiniband Switches

Article Author: Tarun Boyella

INFINIBAND: How to check SM Priorities on all the IB Switches in the Fabric?

Following are steps to check SM priorities on all the IB Switches in Fabric.

1. Run "ibswitches" command on any one of the IB Switches to list the Switch names and their GUIDS

2. Run below ibdiagnet command on any of the IB Switches. This command will run for few seconds. Wait for command execution to complete.

3. On IB Switch where you ran ibdiagnet command, cat below file.
cat /tmp/ibdiagnet.sm
/tmp/ibdiagnet.sm file shows the SM priorities for each Switch GUID. You can map the GUID to the Switch name from the output of "ibswitches" in above step 1. Below is example snippet of /tmp/ibdiagnet.sm file..
-I--------------------------------------------------- 
-I- Summary Fabric SM-state-priority 
-I--------------------------------------------------- 
  SM - master 
    The Local Device : Port=0 lid=0x0029 guid=0xZZZZZZbea4bac0a0 dev=48438  
    priority:14 
  SM - standby 
    Port=27 lid=0x000b guid=0xXXXXXX620728c0a0 dev=48438  priority:5 

Products to which Article Applies
Infiniband Switches

Article Author: Tarun Boyella

INFINIBAND: Information on Limited, Full and Both Memberships for Infiniband (IB) Partitions

Full vs Limited IB partition members

An IB port can either be a full member or limited member of a partition. The difference is simple. All full members within a partition can see and communicate to each other as well as limited members in the same partition. However, the limited members cannot see and communicate to other limited members in same partition but they can see and communicate with full members.

To illustrate better lets take example where A & B have full membership to partition and C & D have limited membership to partition. So below will be the behavior.

  • So A & B (full members) can communicate with each other and to C & D (limited members).
  • C & D (limited members) cannot communicate with each other (as they both are limited members). But C & D (limited) members can communicate to A & B (full members).

Special case membership - 'BOTH'

When we deal with virtual machines in Linux (XEN or OVS), there may be a scenario where some VM IB ports need to be limited and some as full which are all running on same Dom0 Hypervisor. In these scenarios there is special membership called BOTH where Port GUIDs of Dom0 Hypervisor can be added as BOTH member to partition. With Port GUIDs of Dom0 added as BOTH membership to partition VM's membership running on Dom0 can either be full or limited. VM membership to a partition whether it is full or limited is defined in vm.cfg file. BOTH membership is commonly seen in Exalogic deployments.



Products to which Article Applies

OVS Deployments using Infiniband, Exalogic

INFINIBAND: "getportcounters" Command To Clear/Reset Errors And Port Counters IB Switch Ports (How To Doc)

getportcounters command can be used to clear/reset errors and port counters on IB Switch ports.

If you want to reset/clear errors and  port counters on 10Gbits/sec ETH connector ports, following commands can be used based on the connector ports which are enabled and being used.

getportcounters 0a-eth -R
getportcounters 1a-eth -R



Below is example snippet of output when we run above command to clear the counters on 0a-eth connector port.
# getportcounters 0A-ETH -R
Reset port counters for connector 0A-ETH-1 Bridge-0 port Bridge-0-2
Reset port counters for connector 0A-ETH-2 Bridge-0 port Bridge-0-2
Reset port counters for connector 0A-ETH-3 Bridge-0 port Bridge-0-1
Reset port counters for connector 0A-ETH-4 Bridge-0 port Bridge-0-1

If you want to reset/clear errors and port counters on specific 40Gbits/sec IB Switch ports below command can be used.
getportcounters <switch connector ports> -R

In above command replace the connector ports with the connector port for which you want to reset/clear errors and port counters. Switch 40Gits/sec connector ports range is from 0A – 15A and 0B – 15B. So if you want to clear/reset errors and counters for 15A, your command will look as follows:
getportcounters 15A -R


Products to which Article Applies

Infiniband Switches

Additional Reference

https://docs.oracle.com/cd/E19671-01/835-0793-03/z40000471973870.html


INFINIBAND: "getportcounters" Command to Check If there are Issues/Problems and Errors On 10Gbits/sec ETH Ethernet Connector Ports of IB Switch (How To Doc)

Below are getportcounters commands which can be run on 0A-ETH and 1A-ETH Ethernet Connector ports of IB Switch to check if there are an RX, TX and CRC errors
# getportcounters 0a-eth | egrep -i "error|CRC"
# getportcounters 1a-eth | egrep -i "error|CRC"

Below is example snippet of above command.
# getportcounters 0a-eth | egrep -i "error|CRC"
RX CRC...........................0
RX errors........................0
TX errors........................0
RX CRC...........................0
RX errors........................0
TX errors........................0
RX CRC...........................0
RX errors........................0
TX errors........................0
RX CRC...........................0
RX errors........................0
TX errors........................0

If we see any gradual or significant increase of RX/TX errors and RX CRC errors over a period of time, then it indicates that there is some issues with 0A/1A ETH connector ports on the IB Switch. It may be lose cabling, bad cable, bad switch port or something else.



Products to which Article Applies

Infiniband Switches.

Additional References

https://docs.oracle.com/cd/E19671-01/835-0793-03/z40000471973870.html


INFINIBAND: "rds-ping" & "rds-stress" Command Tests To Troubleshoot Network Communication Issues On Linux Hosts (How To Doc)

"rds-ping" & "rds-stress" commands can be used for troubleshooting Infiniband network issues on Linux hosts. By running tests using "rds-ping" & "rds-stress" commands we can narrow down whether the networking problem is at the Linux OS networking layer or whether the issue is at Infiniband Networking level itself. Because "rds-ping" & "rds-stress" commands will test the reachability of the IP addresses by sending packets over RDS sockets and bypassing Linux OS level tcp rules & route tables.

If actual ping to the hosts/IPs is not working and "rds-ping" & "rds-stress" commands works, then the issue may be at Linux OS network level. If ping and "rds-ping" & "rds-stress" commands both are not working then the issue may be at the Infiniband network layer.

Below are detailed steps for doing "rds-ping" & "rds-stress" tests.

"rds-ping" Tests

1. Identify the IP address of target Linux host to which you want to do rds-ping test.

2. Login to source Linux host as root user and identify interface IP address (in same subnet as target linux host) using which rds-ping test has to be done to the target Linux host.

3. On Linux source host run rds-ping command as follows to do rds test to target host.

rds-ping -c <count> -I <source IP address> <target Linux host IP address>

For e.g. if source IP address is 192.168.2.96 and target IP address is 192.168.2.114, number of ping counts is 3, then your rds-ping command on source Linux host looks as follows:
# rds-ping -c 3 -I 192.168.2.96 192.168.2.114

Below is example snippet of above command.
# rds-ping -c 3 -I 192.168.2.96 192.168.2.114
   1: 142 usec
   2: 167 usec
   3: 110 usec
  
As we can see from above command we see response coming back to the rds-ping.

"rds-stress" Tests

1. Login to the target List host as root user to which you want to do rds tests from source Linux host. Run below command.

rds-stress

You will see output as follows that the target host is listening for connection on port 4000
# rds-stress
waiting for incoming connection on 0.0.0.0:4000

2. Login to source Linux host and connect to target Linux host in above step 1 using rds-stress command as follows:

rds-stress -s <IP address of target VM> -p 4000 -t 1 -D <number of bytes>

In above command replace IP address with the IP address of target Linux host in above step 1. For e.g. if you ran rds-stress between target host with IP 192.168.2.96 and source host with IP 192.168.2.240 and sent 500000 rdma packets from source, your rds commands and outputs on source and target will look as follows:

source:

~]# rds-stress -s 192.168.2.96 -p 4000 -t 1 -D 500000
connecting to 192.168.2.96:4000
negotiated options, tasks will start in 2 seconds
Starting up....
tsks   tx/s   rx/s  tx+rx K/s    mbi K/s    mbo K/s tx us/c   rtt us cpu %
   1   3434   3436    7292.05 1677105.22 1677105.22   37.75   286.29 -1.00
   1   3436   3428    7285.58 1675617.04 1675617.04   38.20   286.30 -1.00
   1   3451   3444    7318.36 1683398.48 1682910.25   37.18   285.21 -1.00
   1   3441   3441    7304.68 1680009.46 1680009.46   37.42   286.42 -1.00

target:
~]# rds-stress
waiting for incoming connection on 0.0.0.0:4000
accepted connection from 192.168.2.240:61630 on 192.168.2.96:4000
negotiated options, tasks will start in 2 seconds
Starting up....
tsks   tx/s   rx/s  tx+rx K/s    mbi K/s    mbo K/s tx us/c   rtt us cpu %
   1   3439   3437    7291.51 1677468.07 1676492.52   42.69   285.65 -1.00
   1   3432   3440    7287.16 1675979.62 1675979.62   41.86   286.46 -1.00
   1   3447   3454    7317.88 1682801.69 1683289.46   41.40   285.27 -1.00
   1   3444   3444    7304.10 1679876.75 1679876.75   41.20   285.69 -1.00
---------------------------------------------
   1   3436   3440    7300.16 1679031.54 1678909.60   41.83   286.06 -1.00  (average)

As you can see from above "rds-stress" command outputs the communication between both the Linux hosts is happening without any issues.




Products to which Article Applies

All Linux hosts using Infiniband.

Additional Reference

https://linux.die.net/man/1/rds-ping
https://linux.die.net/man/1/rds-stress


INFINIBAND: How To Use "ibping" Command To Troubleshooting Infiniband (IB) Network Issues?

"ibping" command will be helpful to troubleshooting Infiniband network issues between two or more hosts. "ibping" command is a client-server command, one one host ibping is executed as a server (using -S option) where it listens for pings from clients. On other host ibping is executed client pinging the server node using LID. Output is similar to the Internet Protocol ping command. The ping repeats every second, until the Ctrl-C key combination exits on the server.

Below are steps to do ibping tests between two hosts.

1) Gather the Port GUID's and Base LIDs of IB ports on both the hosts using below command.

ibstat | egrep "Port|Base"

Below is example output of above command.
    Port 1:
                Base lid: 18
                Port GUID: 0xXXXXXX5ff9e65a9d
        Port 2:
                Base lid: 19
                Port GUID: 0xXXXXXX5ff9e65a9e

2) On on one host run ibping as Server using -S option as follows:
ibping -S -P <IB Port> -d

In above command change IB Port with the IB port number on which you want to do ping test. -d is the debug messages flag.

For e.g. if you want to do ping test on Port 1, your server host side command looks as follows:

ibping -S -P 1 -d

3) Now on other host run the ibping command as follows to connect to Base LID of host in above step 2 where ibping is running in server mode. Replace the IB port to IB port number on client host which you want to use to ping ibping server host.

ibping -P <IB Port> <Base LID of ibping server>

For e.g. if Base LID of ibping server host is 19 and you want to do ibping test using Port 1 of cient host, your command looks as follows:

ibping -P 1 19

Below are example outputs from ibping server and ibping client hosts

On ibping client side we see resonses from ibpingserverhost as follows if there are no issues.

#ibping -P 1 19
Pong from ibpingserverhost.testing.com (Lid 19): time 0.358 ms
Pong from ibpingserverhost.testing.com (Lid 19): time 0.479 ms
Pong from ibpingserverhost.testing.com (Lid 19): time 0.390 ms
Pong from ibpingserverhost.testing.com (Lid 19): time 0.500 ms
Pong from ibpingserverhost.testing.com (Lid 19): time 0.377 ms

On Server side we see ibping responses debug messages as follows if there are no issues.

# ibping -S -P 2 -d
ibdebug: [14359] ibping_serv: starting to serve...
ibdebug: [14359] ibping_serv: Pong: ibpingserverhost.testing.com
ibwarn: [14359] mad_respond_via: dest Lid 20
ibwarn: [14359] mad_respond_via: qp 0x1 class 0x32 method 129 attr 0x0 mod 0x0 datasz 0 off 0 qkey 80010000
ibdebug: [14359] ibping_serv: Pong: ibpingserverhost.testing.com
ibwarn: [14359] mad_respond_via: dest Lid 20
ibwarn: [14359] mad_respond_via: qp 0x1 class 0x32 method 129 attr 0x0 mod 0x0 datasz 0 off 0 qkey 80010000
ibdebug: [14359] ibping_serv: Pong: ibpingserverhost.testing.com
ibwarn: [14359] mad_respond_via: dest Lid 20
ibwarn: [14359] mad_respond_via: qp 0x1 class 0x32 method 129 attr 0x0 mod 0x0 datasz 0 off 0 qkey 80010000

NOTE: Please note that if you started ibping server connection on Port 1 and if you are tring to connect to ibping server on Port 2 Base LID, the test will fail.

Products to which Article Applies

All hosts using Infiniband.

Additional Reference

https://docs.oracle.com/cd/E19632-01/835-0783-03/bbggcjji.html

INFINIBAND: How To Add Node/Host Port GUIDs To A Particular Partition On Infiniband (IB) Switches? ("smpartition" Command)

Follow below steps to follow on Infiniband Switch running SM Master to add Node/host port GUIDs to a particular partition.

1. Login to the IB Switch running SM master as root user. "getmaster" command can be used to identify which IB Switch is running the SM master.

2. Start the SM partition using below command.

smpartition start

3. Add the Node/Host Port GUIDs to a partition using below command.
# smpartition add -pkey <PKey> -port <Port GUID1> <Port GUID2> ... <Port GUIDN> -m <membership>

For e.g. if you want to add port GUIDs 0010e0000164e371 and 0010e0000164e372 as full members to partition key 8008, your command looks as follows:

# smpartition add -pkey 0x0008 -port 0x0010e0000164e371 0x0010e0000164e372 -m full

NOTE: We have to use 0x0008 for 8008 partition (as per new IB firmware version standards from 2.1.5 & above) and for GUIDs we have to append 0x at the beginning.

4. Now commit the partition so that the new partition key addition changes are committed using below command.

smpartition commit

5. Now run below smpartition command and check if newly created partition is seen.

smpartition list active


Products to which Article Applies

Infiniband Switches

Additional Reference

https://docs.oracle.com/cd/E26698_01/html/E26434/z40004162037218.html#scrolltoc
 

INFINIBAND: How To Check Subnet Manager (SM) Partition Version On Infiniband (IB) Switches? ("smpartition" Command)

Below smpartition command can be used to check the SM partition version on the IB Switches.
smpartition list active no-page | grep version

Below is example output of above command showing partition version on IB Switch.
# smpartition list active no-page | grep ver
#! version_number : 190

NOTE: SM partition version should be same on the all the IB Switches on which SM is enabled.


Products to which Article Applies

Infiniband Switches

Additional Reference

https://docs.oracle.com/cd/E26698_01/html/E26434/z40000081987669.html
 

INFINIBAND: How To Check SSD Life Expectancy on Infiniband (IB) Switch? ("showdisk" Command)

"showdisk" command can be used to check the SSD Life Expectancy of Infiniband (IB) Switch.
https://docs.oracle.com/cd/E36265_01/html/E36266/z40000072154361.html

Check for the values under "Estimated Life Usage" and "Estimated Remaining Life" in showdisk command for Life Expectancy.

Products to which Article Applies

Infiniband Switches

Additional Reference

https://docs.oracle.com/cd/E36265_01/html/E36266/z40000072154361.html

 

INFINIBAND: How To Create VNIC on Infiniband (IB) Switches? ("createvnic" Command)

Below is the command to create VNICs on Infiniband (IB) Switches.
createvnic <connector port> -GUID <GUID> -mac <MAC address> -vlan <VLAN ID> -pkey <partition key>

Lets assume the Node for which you want to create has GUID 0xabcde76232ac4df8 and HW address as 00:14:4f:f8:e3:27, and you want to create VNIC on connector port 0A-ETH-1 and partition key 8007, then your createvnic command will look as follows:
createvnic 0A-ETH-1 -GUID ab:cd:e7:62:32:ac:4d:f8 -mac 00:14:4f:f8:e3:27 -vlan 314 -pkey 0x0007

In above command for specifying the GUID 0xabcde76232ac4df8, you want to remove 0x at the beginning after every 2 characters you have to put ":". Please note 8007 partition key has to be specified as 0007 in createvnic command. Because in latest firmware versions of Infiniband after firmware version 2.1.5 & later the first number 8 of partition key is replaced with 0.

Products to which Article Applies

Infiniband Switches


Additional References

https://docs.oracle.com/cd/E26699_01/html/E26706/z40000401971679.html

INFINIBAND: How To Check Status Of Infiniband Links On the Nodes/Hosts Using Infiniband Network? ("iblinkinfo" Command)

Below iblinkinfo command can be used.
iblinkinfo | egrep "HCA|PCIe"

Below is example snippet of above command from Exalogic rack using Infiniband networks. testingcn01-cn08 are Linux nodes and testingsn01 and sn02 are Storage nodes with IB HCA/PCIe cards. Below output shows both the links to all the linux nodes and storage heads are up.

# iblinkinfo | egrep "HCA|PCIe"
CA: testingsn01 PCIe 1:
CA: testingsn02 PCIe 1:
CA: testingcn08 EL-C 192.168.5.108 HCA-1:
          12    5[  ] ==( 4X          10.0 Gbps Active/  LinkUp)==>      21    2[  ] "testingcn02 EL-C 192.168.5.102 HCA-1" ( )
          12    6[  ] ==( 4X          10.0 Gbps Active/  LinkUp)==>      19    2[  ] "testingcn01 EL-C 192.168.5.101 HCA-1" ( )
          12    7[  ] ==( 4X          10.0 Gbps Active/  LinkUp)==>      30    2[  ] "testingcn04 EL-C 192.168.5.104 HCA-1" ( )
          12    8[  ] ==( 4X          10.0 Gbps Active/  LinkUp)==>      28    2[  ] "testingcn03 EL-C 192.168.5.103 HCA-1" ( )
          12    9[  ] ==( 4X          10.0 Gbps Active/  LinkUp)==>       6    2[  ] "testingcn06 EL-C 192.168.5.106 HCA-1" ( )
          12   10[  ] ==( 4X          10.0 Gbps Active/  LinkUp)==>      13    2[  ] "testingcn05 EL-C 192.168.5.105 HCA-1" ( )
          12   11[  ] ==( 4X          10.0 Gbps Active/  LinkUp)==>      17    2[  ] "testingcn07 EL-C 192.168.5.107 HCA-1" ( )
          12   18[  ] ==( 4X          10.0 Gbps Active/  LinkUp)==>      15    2[  ] "testingcn08 EL-C 192.168.5.108 HCA-1" ( )
          12   31[  ] ==( 4X          10.0 Gbps Active/  LinkUp)==>       4    2[  ] "testingsn02 PCIe 1" ( )
          12   32[  ] ==( 4X          10.0 Gbps Active/  LinkUp)==>       2    2[  ] "testingsn01 PCIe 1" ( )
CA: testingcn07 EL-C 192.168.5.107 HCA-1:
CA: testingcn05 EL-C 192.168.5.105 HCA-1:
CA: testingcn06 EL-C 192.168.5.106 HCA-1:
CA: testingcn03 EL-C 192.168.5.103 HCA-1:
CA: testingcn04 EL-C 192.168.5.104 HCA-1:
CA: testingcn02 EL-C 192.168.5.102 HCA-1:
          27    5[  ] ==( 4X          10.0 Gbps Active/  LinkUp)==>      20    1[  ] "testingcn02 EL-C 192.168.5.102 HCA-1" ( )
          27    6[  ] ==( 4X          10.0 Gbps Active/  LinkUp)==>      18    1[  ] "testingcn01 EL-C 192.168.5.101 HCA-1" ( )
          27    7[  ] ==( 4X          10.0 Gbps Active/  LinkUp)==>      29    1[  ] "testingcn04 EL-C 192.168.5.104 HCA-1" ( )
          27    8[  ] ==( 4X          10.0 Gbps Active/  LinkUp)==>      22    1[  ] "testingcn03 EL-C 192.168.5.103 HCA-1" ( )
          27    9[  ] ==( 4X          10.0 Gbps Active/  LinkUp)==>       5    1[  ] "testingcn06 EL-C 192.168.5.106 HCA-1" ( )
          27   10[  ] ==( 4X          10.0 Gbps Active/  LinkUp)==>       7    1[  ] "testingcn05 EL-C 192.168.5.105 HCA-1" ( )
          27   11[  ] ==( 4X          10.0 Gbps Active/  LinkUp)==>      16    1[  ] "testingcn07 EL-C 192.168.5.107 HCA-1" ( )
          27   18[  ] ==( 4X          10.0 Gbps Active/  LinkUp)==>      14    1[  ] "testingcn08 EL-C 192.168.5.108 HCA-1" ( )
          27   31[  ] ==( 4X          10.0 Gbps Active/  LinkUp)==>       3    1[  ] "testingsn02 PCIe 1" ( )
          27   32[  ] ==( 4X          10.0 Gbps Active/  LinkUp)==>       1    1[  ] "testingsn01 PCIe 1" ( )
CA: testingcn01 EL-C 192.168.5.101 HCA-1:



Products to which Article Applies

All Hosts using Infiniband Fabric, Oracle Engineered Systems using Infiniband Fabric.

Additional Reference

https://docs.oracle.com/cd/E86824_01/html/E54764/iblinkinfo-1m.html