找到SM Master节点所在的机器的方法

通过sminfo确认master的guid,然后使用ibstat在每台局域网中的机器上执行,找到对应的Port

sminfo 

sminfo: sm lid 62 sm guid <strong>0x98039b0300e24101</strong>, activity count 1932118 priority 14 state 3 SMINFO_MASTER

ibstat

CA 'mlx4_0'
        CA type: MT4099
        Number of ports: 2
        Firmware version: 2.36.5150
        Hardware version: 1
        Node GUID: 0x0002c903001996a0
        System image GUID: 0x0002c903001996a3
        Port 1:
                State: Active
                Physical state: LinkUp
                Rate: 40
                Base lid: 67
                LMC: 0
                SM lid: 62
                Capability mask: 0x0251486a
                Port GUID: 0x0002c903001996a1
                Link layer: InfiniBand
        Port 2:
                State: Active
                Physical state: LinkUp
                Rate: 40
                Base lid: 64
                LMC: 0
                SM lid: 62
                Capability mask: 0x02514868
                Port GUID: 0x0002c903001996a2
                Link layer: InfiniBand
CA 'mlx4_1'
        CA type: MT4099
        Number of ports: 2
        Firmware version: 2.42.5000
        Hardware version: 1
        Node GUID: 0x0002c90300449310
        System image GUID: 0x0002c90300449313
        Port 1:
                State: Active
                Physical state: LinkUp
                Rate: 40
                Base lid: 5
                LMC: 0
                SM lid: 62
                Capability mask: 0x02514868
                Port GUID: 0x0002c90300449311
                Link layer: InfiniBand
        Port 2:
                State: Active
                Physical state: LinkUp
                Rate: 40
                Base lid: 9
                LMC: 0
                SM lid: 62
                Capability mask: 0x02514868
                Port GUID: 0x0002c90300449312
                Link layer: InfiniBand