°Ô½Ã¹° 51°Ç
   
[redhat 7.1] pacemaker install [ rhcs ]
±Û¾´ÀÌ : theko ³¯Â¥ : 2016-12-19 (¿ù) 13:23 Á¶È¸ : 8952
node :

npa-a-l-evmh01.cs

npa-a-l-evmh02.cs



command :

yum install pcs fence-agents-all



systemctl start pcsd.service

systemctl enable pcsd.service



echo rplinux | passwd --stdin hacluster



pcs cluster auth rhevm01.cs rhevm02.cs -u hacluster -p rplinux

pcs cluster setup --start-aname hcluster rhevm01.cs rhevm02.cs --token 3200 --join 100



pcs status

pcs property  set  no-quorum-policy=ignore

pcs property  set stonith-enabled=false

pcs property  set  default-resource-stickiness=1000

pcs property set maintenance-mode=true

pcs resource defaults  migration-threshold=1

pcs property set default-action-timeout=60s



pcs resource create vip ocf:heartbeat:IPaddr2 ip=vip_addr cidr_netmask=24 nic=em1 op monitor interval=30s



pcs resource create rhevm_vg LVM volgrpname=VG00 exclusive=true

pcs resource update ora_vg op monitor interval=10 timeout=30 on-fail=fence



lvmconf --enable-halvm

/etc/lvm/lvm.conf

#      use_lvmetad = 1

        use_lvmetad = 0



        # Example

        # volume_list = [ "vg1", "vg2/lvol1", "@tag1", "@*" ]

        volume_list = [ ]

      and

      volume_list= [ VG01 ] <== node 2 ¹ø¿¡¸¸ Àû¿ë ( RHV4.0 ISO repostory, NFS )

dracut -f -v



pcs resource create fs-ovt-eng ocf:heartbeat:Filesystem params device=/dev/sdb1 directory=/var/lib/ovirt-engine fstype=xfs op monitor interval=20 timeout=40 OCF_CHECK_LEVEL=20

pcs resource create fs-ovt-eng-dwh ocf:heartbeat:Filesystem params device=/dev/sdb2 directory=/var/lib/ovirt-engine-dwh fstype=xfs op monitor interval=20 timeout=40 OCF_CHECK_LEVEL=20

pcs resource create fs-pgsql ocf:heartbeat:Filesystem params device=/dev/sdb3 directory=/var/lib/ovirt-engine-dwh fstype=xfs op monitor interval=20 timeout=40 OCF_CHECK_LEVEL=20



pcs resource create pgsql systemd:postgresql

pcs resource create httpd systemd:httpd

pcs resource create ovirt-eng systemd:ovirt-engine

pcs resource create ovirt-eng-dwhd systemd:ovirt-engine-dwhd



pcs resource group add svc_rhevm vip rhevm_vg fs-pgsql fs-ovt-eng fs-ovt-eng-dwh pgsql httpd ovirt-eng ovirt-eng-dwhd



pcs constraint location svc_rhevm prefers rhevm01.cs=1000

pcs constraint location svc_rhevm prefers rhevm02.cs=500



/etc/kdump.conf

fence_kdump_nodes »ó´ëÆí ip

fence_kdump_args -p 7410 -i 2



/etc/default/grub

crashkernel=768M

grub2-mkconfig -o /boot/grub2/grub.cfg



pcs stonith create kdump fence_kdump pcmk_status_action="metadata" pcmk_monitor_action="metadata" pcmk_reboot_action="off" pcmk_host_list="rhevm01.cs;rhevm02.cs" timeout=90 pcmk_off_retries=1



pcs stonith create ipmi1 fence_ipmilan pcmk_host_list="rhevm01.cs" ipaddr=ipmi_ip1 login=root passwd=rplinux lanplus=on auth=password op monitor interval=60s delay=15 power_wati=5

pcs stonith create ipmi2 fence_ipmilan pcmk_host_list="rhevm02.cs" ipaddr=ipmi_ip2 login=root passwd=rplinux lanplus=on auth=password op monitor interval=60s power_wait=5



pcs stonith level add 1 rhevm01.cs kdump

pcs stonith level add 1 rhevm02.cs kdump

pcs stonith level add 2 rhevm01.cs ipmi1

pcs stonith level add 2 rhevm02.cs ipmi2



pcs constraint location add fence_death1 ipmi1 rhevm01.cs -INFINITY

pcs constraint location add fence_death2 ipmi2 rhevm02.cs -INFINITY





pcs resource create em1-monitor ethmonitor interface=em1 --clone

pcs constraint location svc_rhevm rule score=-INFINITY ethmonitor-em1 ne 1

pcs resource meta em1-monitor-clone orderd=true

pcs constraint location em1-monitor-clone prefers rhevm01.cs

 

pcs property set maintenance-mode=false

pcs property set stonith-enabled=true

------------------------------------------------------------------------------------------------------------

failover test ¹× screen caputer ÁøÇà

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

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