게시물 50건
   
[RHEL9.2] KVM에서 VBMC 설정 방법
글쓴이 : theko 날짜 : 2023-07-14 (금) 00:08 조회 : 228
> 사전 설치 작업
# yum -y install python3 python3-pip
# pip3 install -U pip

-----------------------------------------------------------------
만약에 에러가 발생하면, 
# yum install -y libvirt-devel gcc python3-devel ipmitool
-----------------------------------------------------------------


# pip3 install virtualbmc

# yum install -y ipmitool



> vbmc 기동
# vbmcd 


> VM에 ipmi연동을 위한 virtualbmc 포트, 사용자, 패스워드 정보 생성
vbmc add rhel8.6_RHCS01 --port 7001 --username admin --password redhat
vbmc add rhel8.6_RHCS02 --port 7002 --username admin --password redhat


> 생성확인
[root@theko RHCS]# vbmc list
+----------------+--------+---------+------+
| Domain name    | Status | Address | Port |
+----------------+--------+---------+------+
| rhel8.6_RHCS01 | down   | ::      | 7001 |
| rhel8.6_RHCS02 | down   | ::      | 7002 |
+----------------+--------+---------+------+


> vbmc 기동
[root@theko RHCS]# vbmc start rhel8.6_RHCS01
[root@theko RHCS]# vbmc start rhel8.6_RHCS02
[root@theko RHCS]# vbmc list
+----------------+---------+---------+------+
| Domain name    | Status  | Address | Port |
+----------------+---------+---------+------+
| rhel8.6_RHCS01 | running | ::      | 7001 |
| rhel8.6_RHCS02 | running | ::      | 7002 |
+----------------+---------+---------+------+


> ipmi를 통해 vm의 파워 상태 확인

[root@theko RHCS]# ip -4 -o a show virbr1
4: virbr1    inet 100.100.100.1/24 brd 100.100.100.255 scope global virbr1\       valid_lft forever preferred_lft forever
[root@theko RHCS]# ip -4 -o a show virbr0
3: virbr0    inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0\       valid_lft forever preferred_lft forever


[root@theko RHCS]# ipmitool -I lanplus -H 192.168.122.1 -p 7001 -U admin -P redhat power status
Chassis Power is on
[root@theko RHCS]# ipmitool -I lanplus -H 100.100.100.1 -p 7001 -U admin -P redhat power status
Chassis Power is on


> Fence TEST(KVM에서 진행)
# ipmitool -I lanplus -H 192.168.122.1 -p 7001 -U admin -P redhat power off



참고한 사이트 
. https://chhanz.github.io/linux/2022/04/14/vbmcd-ipminode/

. https://cloudlab.tistory.com/entry/RHEL8-KVM-%ED%99%98%EA%B2%BD%EC%97%90%EC%84%9C-VirtualBMC-%EA%B5%AC%EC%84%B1-%EB%B0%8F-IPMI-%EC%97%B0%EB%8F%99


theko 2023-07-15 (토) 14:56
- 위 와 세팅 후 Fence 등록 할때 
( 클러스터 묶을때 호스트 네임 IP와 Fence IP와 대역이 같아야한다. -> 192.168.122.1)
# pcs stonith create ipmi1 fence_ipmilan  pcmk_host_list="rhel8.6_RHCS02" ip=192.168.122.1 delay=15 ipport="7002" username=admin password=redhat lanplus=on auth=password op monitor interval=1800s
# pcs stonith create ipmi2 fence_ipmilan  pcmk_host_list="rhel8.6_RHCS02" ip=192.168.122.1  ipport="7002" username=admin password=redhat lanplus=on auth=password op monitor interval=1800s
이름 패스워드
비밀글 (체크하면 글쓴이만 내용을 확인할 수 있습니다.)
왼쪽의 글자를 입력하세요.
   

miwit.com sir.co.kr DNS Powered by DNSEver.com DNS Powered by DNSEver.com