To create a new PKEY on the switch:
[root@ibswitch-ibs ~]# getmaster Local SM enabled and running, state MASTER 20170422 18:00:33 Master SubnetManager on sm lid 1 sm guid 0x10e04071a7a0a0 : SUN DCS 36P QDR ibswitch-ibs 172.28.228.133 [root@ibswitch-ibs ~]# smpartition start [root@ibswitch-ibs ~]# smpartition create -n test -pkey 0x0550 -flag ipoib -m full
To remove PKEY on IB switch:
[root@ibswitch-ibs ~]# smpartition start [root@ibswitch-ibs ~]# smpartition remove -n test -port 0010E000656432BD-> this removes port added in the PKEY. [root@ibswitch-ibs ~]# smpartition delete -n test —> this remove the PKEY itself. [root@ibswitch-ibs ~]# smpartition commit
To add host ports int he PKEYs (where ic3s11 PKEY value is 8503, and ic2s11 PKEY value is 8502). Remember to fill with zeros in the left to fit the 16 digits.
[root@ibswitch-ibs ~]# smpartition start [root@ibswitch-ibs ~]# smpartition add -n ic3s11 -port 0010E00001916A1A [root@ibswitch-ibs ~]# smpartition add -n ic3s11 -port 0010E0000191758A [root@ibswitch-ibs ~]# smpartition add -n ic2s11 -port 0010E00001916A19 [root@ibswitch-ibs ~]# smpartition add -n ic2s11 -port 0010E00001917589 [root@ibswitch-ibs ~]# smpartition commit [root@ibswitch-ibs ~]# smpartition enable [root@ibswitch-ibs ~]# smpartition list active
To know the PORTGUID of the physical host
[root@solarishost ~]# dladm show-ib LINK HCAGUID PORTGUID PORT STATE GWNAME GWPORT PKEYS net19 10E00001916A18 10E00001916A19 1 up -- -- 8502,FFFF net20 10E00001916A10 10E00001916A1A 2 up -- -- 8503,FFFF net17 10E00001917588 10E00001917589 1 up -- -- 8502,FFFF net36 10E00001917580 10E0000191758A 2 up -- -- 8503,FFFF