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
|