°Ô½Ã¹° 51°Ç
   
[RHEL7.6] RHCS ±¸Ãà - sap
±Û¾´ÀÌ : theko ³¯Â¥ : 2019-09-15 (ÀÏ) 21:39 Á¶È¸ : 2997

systemctl start pcsd.service



systemctl enable pcsd.service






echo rplinux | passwd --stdin hacluster






fence_kdump_nodes (?곷??퇺ode Heartbeat IP)



fence_kdump_args -p 7410 -i 1






pcs cluster auth thekopida.cs thekopide.cs -u hacluster -p rplinux



pcs cluster setup --name picluster thekopida.cs thekopide.cs --token 3200 --join 100






pcs cluster auth thekoerdb.cs thekoera1.cs -u hacluster -p rplinux



pcs cluster setup --name ercluster thekoerdb.cs thekoera1.cs --token 3200 --join 100






pcs cluster auth thekopsdb.cs thekopsde.cs -u hacluster -p rplinux



pcs cluster setup --name pscluster thekopsdb.cs thekopsde.cs --token 3200 --join 100






pcs cluster start --all






pcs status






pcs property set no-quorum-policy=stop



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 cluster stop --all






lvmconf --enable-halvm  --services --startstopservices






/etc/lvm/lvm.conf



volume_list = [ ?쏺G01"]






dracut -fv






pcs cluster start --all






pcs resource create vip ocf:heartbeat:IPaddr2 ip=100.17.1.96 cidr_netmask=24 op monitor interval=30s timeout=45s --group ersvc






pcs resource create halvm ocf:heartbeat:LVM volgrpname=oravg exclusive=true volume_group_check_only=true op monitor interval=30 timeout=60 on-fail=fence --group ersvc






pcs resource create fs-oracle ocf:heartbeat:Filesystem device=/dev/oravg/lv_ora directory=/oracle fstype=xfs op monitor interval=45 timeout=60 OCF_CHECK_LEVEL=10 --group ersvc



pcs resource create fs-oracle_LEP ocf:heartbeat:Filesystem device=/dev/oravg/lv_ora_LEP directory=/oracle/LEP fstype=xfs op monitor interval=45 timeout=60 OCF_CHECK_LEVEL=10 --group ersvc



pcs resource create fs-mirrlogA ocf:heartbeat:Filesystem device=/dev/oravg/lv_mirrlogA directory=/oracle/LEP/mirrlogA fstype=xfs op monitor interval=45 timeout=60 OCF_CHECK_LEVEL=10 --group ersvc



pcs resource create fs-mirrlogB ocf:heartbeat:Filesystem device=/dev/oravg/lv_mirrlogB directory=/oracle/LEP/mirrlogB fstype=xfs op monitor interval=45 timeout=60 OCF_CHECK_LEVEL=10 --group ersvc



pcs resource create fs-oraarch ocf:heartbeat:Filesystem device=/dev/oravg/lv_oraarch directory=/oracle/LEP/oraarch fstype=xfs op monitor interval=45 timeout=60 OCF_CHECK_LEVEL=10 --group ersvc



pcs resource create fs-origlogA ocf:heartbeat:Filesystem device=/dev/oravg/lv_origlogA directory=/oracle/LEP/origlogA fstype=xfs op monitor interval=45 timeout=60 OCF_CHECK_LEVEL=10 --group ersvc



pcs resource create fs-origlogB ocf:heartbeat:Filesystem device=/dev/oravg/lv_origlogB directory=/oracle/LEP/origlogB fstype=xfs op monitor interval=45 timeout=60 OCF_CHECK_LEVEL=10 --group ersvc



pcs resource create fs-sapdata1 ocf:heartbeat:Filesystem device=/dev/oravg/lv_sapdata1 directory=/oracle/LEP/sapdata1 fstype=xfs op monitor interval=45 timeout=60 OCF_CHECK_LEVEL=10 --group ersvc



pcs resource create fs-sapdata2 ocf:heartbeat:Filesystem device=/dev/oravg/lv_sapdata2 directory=/oracle/LEP/sapdata2 fstype=xfs op monitor interval=45 timeout=60 OCF_CHECK_LEVEL=10 --group ersvc



pcs resource create fs-sapdata3 ocf:heartbeat:Filesystem device=/dev/oravg/lv_sapdata3 directory=/oracle/LEP/sapdata3 fstype=xfs op monitor interval=45 timeout=60 OCF_CHECK_LEVEL=10 --group ersvc



pcs resource create fs-sapdata4 ocf:heartbeat:Filesystem device=/dev/oravg/lv_sapdata4 directory=/oracle/LEP/sapdata4 fstype=xfs op monitor interval=45 timeout=60 OCF_CHECK_LEVEL=10 --group ersvc



pcs resource create fs-sapdata5 ocf:heartbeat:Filesystem device=/dev/oravg/lv_sapdata5 directory=/oracle/LEP/sapdata5 fstype=xfs op monitor interval=45 timeout=60 OCF_CHECK_LEVEL=10 --group ersvc



pcs resource create fs-sapdata6 ocf:heartbeat:Filesystem device=/dev/oravg/lv_sapdata6 directory=/oracle/LEP/sapdata6 fstype=xfs op monitor interval=45 timeout=60 OCF_CHECK_LEVEL=10 --group ersvc



pcs resource create fs-sapdata7 ocf:heartbeat:Filesystem device=/dev/oravg/lv_sapdata7 directory=/oracle/LEP/sapdata7 fstype=xfs op monitor interval=45 timeout=60 OCF_CHECK_LEVEL=10 --group ersvc



pcs resource create fs-sapdata8 ocf:heartbeat:Filesystem device=/dev/oravg/lv_sapdata8 directory=/oracle/LEP/sapdata8 fstype=xfs op monitor interval=45 timeout=60 OCF_CHECK_LEVEL=10 --group ersvc



pcs resource create fs-sapreorg ocf:heartbeat:Filesystem device=/dev/oravg/lv_sapreorg directory=/oracle/LEP/sapreorg fstype=xfs op monitor interval=45 timeout=60 OCF_CHECK_LEVEL=10 --group ersvc



pcs resource create fs-ASCS01 ocf:heartbeat:Filesystem device=/dev/oravg/lv_ASCS01 directory=/usr/sap/LEP/ASCS01 fstype=xfs op monitor interval=45 timeout=60 OCF_CHECK_LEVEL=10 --group ersvc



pcs resource create fs-expreal ocf:heartbeat:Filesystem device=/dev/oravg/lv_expreal directory=/usr/sap/LEP/explocal fstype=xfs op monitor interval=45 timeout=60 OCF_CHECK_LEVEL=10 --group ersvc






pcs resource create vormetric lsb:vor_shell op monitor interval=600 timeout=600 restart interval=600 timeout=600 start interval=600 timeout=600s stop interval=600 timeout=600s --group ersvc






pcs resource create oradb ocf:heartbeat:SAPDatabase SID=LEP DBTYPE=ORA DBOSUSER=oralep STRICT_MonITORING=true op monitor interval=180s timeout=300s --group ersvc






pcs resource create ascs ocf:heartbeat:SAPInstance DIR_PROFILE="/sapmnt/LEP/profile" InstanceName="LEP_ASCS01_thekoervip" op monitor interval=180s timeout=300s  --group ersvc



>>> As SAP release 7.10 does not have a 'START profile' anymore, you need to specify the 'Instance Profile' instead.






pcs constraint location ersvc prefers thekoerdb.cs=1000



pcs constraint location ersvc prefers thekoera1.cs=500



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






pcs stonith create ipmi1 fence_ipmilan pcmk_host_list="thekoerdb.cs" ipaddr=thekoerdb.ipmi login=thekoerpdb passwd='thekoerpdb!2' lanplus=on auth=password delay=15 power_wait=20 op monitor interval=60s timeout=120s



pcs stonith create ipmi2 fence_ipmilan pcmk_host_list="thekoera1.cs" ipaddr=thekoera1.ipmi login=thekoerpap1  passwd='thekoerpap1@' lanplus=on auth=password power_wait=20 op monitor interval=60s timeout=120s






pcs stonith level add 1 thekoerdb.cs kdump



pcs stonith level add 1 thekoera1.cs kdump






pcs stonith level add 2 thekoerdb.cs ipmi1



pcs stonith level add 2 thekoera1.cs ipmi2






pcs constraint location add fence_death1 ipmi1 thekoerdb.cs -INFINITY



pcs constraint location add fence_death2 ipmi2 thekoera1.cs -INFINITY






pcs resource create bond0-monitor ocf:heartbeat:ethmonitor interface=bond0 --clone



pcs constraint location ersvc rule score=-INFINITY ethmonitor-bond0 ne 1



pcs resource meta bond0-monitor-clone orderd=true






pcs resource create halvm ocf:heartbeat:LVM volgrpname=VG00 exclusive=true volume_group_check_only=true op monitor interval=30 timeout=60 on-fail=fence --group svc

pcs resource create fs-data ocf:heartbeat:Filesystem device=/dev/VG00/LV00 directory=/data fstype=xfs op monitor interval=45 timeout=60 OCF_CHECK_LEVEL=10 --group svc



vgchange --addtag pacemaker myVG

vgchange -ay  myVG --config 'activation { volume_list = [ "@pacemaker" ]}'



# vgchange -an myVG

# vgchange --deltag pacemaker myVG



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

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