°Ô½Ã¹° 51°Ç
   
Redhat7 host ¼³Á¤Çϱâ - RHCS in KVM part1
±Û¾´ÀÌ : theko ³¯Â¥ : 2016-02-15 (¿ù) 18:08 Á¶È¸ : 2675
1. Redhat 7 ¼³Á¤

- ÆÐÅ°Áö ¼³Ä¡
 # yum install fence-virt fence-virtd fence-virtd-libvirt fence-virtd-multicast fence-virtd-serial

- Fence key »ý¼º
 # mkdir -p /etc/cluster
 # dd if=/dev/urandom of=/etc/cluster/fence_xvm.key bs=4k count=1
 # scp /etc/cluster/fence_xvm.key nodeX:/etc/cluster    // ¿©±â¼­ nodeX´Â vm ¼­¹ö


- È£½ºÆ® ¼­¹ö(RHEL7) /etc/fence_virt.conf »ý¼º
# fence_virtd -c
        Parsing of /etc/fence_virt.conf failed.
        Start from scratch [y/N]? y
        Module search path [/usr/lib64/fence-virt]:
        Listener module [multicast]:
        Multicast IP Address [225.0.0.12]:
        Multicast IP Port [1229]:
        Interface [none]: br0      <---- Interface used for communication between the cluster nodes.
        Key File [/etc/cluster/fence_xvm.key]:
        Backend module [libvirt]:
        Libvirt URI [qemu:///system]:

        Configuration complete.

        === Begin Configuration ===
        backends {
            libvirt {
                uri = "qemu:///system";
            }

        }

        listeners {
            multicast {
                key_file = "/etc/cluster/fence_xvm.key";
                interface = "br0";
                port = "1229";
                address = "225.0.0.12";
                family = "ipv4";
            }

        }

        fence_virtd {
            backend = "libvirt";
            listener = "multicast";
            module_path = "/usr/lib64/fence-virt";
        }

        === End Configuration ===
        Replace /etc/fence_virt.conf with the above [y/N]? y
 
-  fence µ¥¸ó Ç×»ó ½ÇÇà
# service fence_virtd restart
# # systemctl  enable fence_virtd.service

- Å×½ºÆ®    // vm ¿¡¼­µµ ´Ù µÇ¾ßÇÔ
# fence_xvm -o list
rhcs03              39de9a78-52b2-4c35-9ed8-6a790b491659 on
rhcs04              0da02f47-852d-4f3c-8b34-1ec8e0875a37 on

- Å×½ºÆ®
# fence_xvm -a 225.0.0.12 -k /etc/cluster/fence_xvm.key -H rhcsh04 -o status

À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

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