°Ô½Ã¹° 51°Ç
   
[RHEL9.2] KVM¿¡¼­ VBMC ¼³Á¤ ¹æ¹ý
±Û¾´ÀÌ : theko ³¯Â¥ : 2023-07-14 (±Ý) 00:08 Á¶È¸ : 1176
> »çÀü ¼³Ä¡ ÀÛ¾÷
# 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 ¹× VM¿¡¼­ È®ÀÎ °¡´É- port°¡ °ð VM À» ÁöĪ)
# 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