Main Menu

Search

Showing posts with label Switch. Show all posts
Showing posts with label Switch. Show all posts

INFINIBAND: How to Move (Failover) SM Master (Subnet Manager Master) From One IB Switch to Other IB Switch?

Follow below steps for doing SM Master failover.

1. Verify that SM is enabled with correct SM settings on two or more IB Gateway Leaf Switches (depending on the configuration you have). For validating if SM is running following command can be executed on all the IB Switches.
service opensmd status
For validating the current SM settings following command can be executed.

setsmpriority list
2. Identify the Switch running the SM Master. For this run below command on any of the IB Switches.
getmaster
3. Login to IB Switch running SM Master (identified in above step 1) and disable SM using below command.
disablesm
After running above command SM Master will move to one of the other Switches which has SM enabled.

4. Verify that the SM master has moved to different Switch by running "getmaster" command on one of the IB Switches.

5. Enabled back the SM again on the Switch which was running the SM master before (identified in above step 2). For this run below command.
enablesm

Products to which Article Applies
Infiniband Switches

Article Author: Tarun Boyella

LINUX: mlx4_vnic_info command to list all details of Ethernet Interface (MTU, Link Status, VLAN, PKEY, MAC, Switch It is Associated etc.)

Below mlx4_vnic_info command on Linux node will list all details of Ethernet Interface (MTU, Link Status, VLAN, PKEY, MAC, Switch It is Associated etc.)
mlx4_vnic_info -i
Below is exanple output of above command.
NETDEV_REGIST yes 
NETDEV_NAME   eth1286_1.324 
NETDEV_LINK   up 
NETDEV_OPEN   yes 
NETDEV_QSTOP  no 
NETDEV_MTU    1500 
IOA_PORT      mlx4_0:1 
IOA_NAME      MT25408 ConnectX Mellanox Technologies-P1 
IOA_LID       0x007d 
IOA_GUID      91:9b:f9:97:XXXXXXXX
IOA_LOG_LINK  up 
IOA_PHY_LINK  active 
IOA_MTU       2048 
EPORT_STATE   up 
EPORT_NAME    0A-ETH-1 
EPORT_QPN     0x800000 
EPORT_LID     0x0011 
EPORT_ID      1286 
BX_NAME       switch01 
BX_GUID       00:10:e0:62:XXXXXXXX
GW_TYPE       LEGACY 
SW_RSS        no 
SW_RSS_SIZE   1 
RX_RINGS_NUM  1 
RX_RINGS_LIN  no 
TX_RINGS_NUM  1 
TX_RINGS_ACT  1 
NDO_TSS       no 
NDO_TSS_SIZE  1 
MCAST_PROMISC no 
MCAST_MASK    48 
PKEY          0x8007 
PKEY_INDEX    0x000b 
PKEY_MEMBER   full 
SL_DATA       1 
SL_CONTROL    2 
LRO           yes 
LRO_NUM       32 
NAPI          yes 
NAPI_WEIGHT   32 
QPN           0x5c0748 
MAC           00:21:f6:XXXXXX
ADMIN_MODE    network 
VLAN          0x144 
SHARED_MAC    N/A 
SHARED_IP     N/A 

Products to which Article Applies
All Linux Hosts using Mellanox mlx4 stack

Article Author: Tarun Boyella