InfiniBand OpenSM 한번에 적용하기

2024/12/20 InfiniBand OpenSM 총 1200 자,약 4 문장

설치

InfiniBand 를 연결하기 위해 opensm 을 이용하는데, 다음과 같이 설치합니다.

$ yum groupinstall "Infiniband Support" -y

연결

그 다음은 연결되어 있는 FC port 의 GUID 를 가져와서 /etc/sysconfig/opensm 에 등록해줘야 합니.

$ ibstat
CA 'mlx4_0'
	CA type: MT4099
	Number of ports: 2
	Firmware version: 2.42.5000
	Hardware version: 1
	Node GUID: 0xf4521403007c3cf0
	System image GUID: 0xf4521403007c3cf3
	Port 1:
		State: Down
		Physical state: Polling
		Rate: 10
		Base lid: 0
		LMC: 0
		SM lid: 0
		Capability mask: 0x02594868
		Port GUID: 0xf4521403007c3cf1
		Link layer: InfiniBand
	Port 2:
		State: Active
		Physical state: LinkUp
		Rate: 56
		Base lid: 1
		LMC: 0
		SM lid: 1
		Capability mask: 0x0259486a
		Port GUID: 0xf4521403007c3cf2  # <- 이거!
		Link layer: InfiniBand

Tip : 한번에 적용하기

$ ibstat | awk '/State:/{s=$2}/Port GUID:/{if(s=="Active"){print $3}}'

0xf4521403007c3cf2
$ cat /etc/sysconfig/opensm
# second on the primary), then the only way to do that is to use method #1
# above and individually edit the config files.  If you edit the config
# files to set the priority and then also set the priority here, then
# this setting will override the config files and render that particular
# edit useless.
#
#PRIORITY=15
GUIDS="0xf4521403007c3cf2"  #  <-  여기에 복사

Tip : 한번에 적용하기

GUID=`ibstat | awk '/State:/{s=$2}/Port GUID:/{if(s=="Active"){print $3}}' | xargs echo`
sed -i "73s/\".*\"/\"$GUID\"/g" /etc/sysconfig/opensm

그 뒤 재시작 하면 끝

$ systemctl restart opensm
HeonJe Lee | 선임연구원
게이트웨이 On-promise 제품 팀에서 시스템 모니터링 및 관리를 쉽게 다가갈 수 있도록 하기 위한 업무를 하고 있습니다.

Contact: lhjnano@gmail.com

Search

    Table of Contents