게시물 45건
 
[RHEL7.6] RHCS 구축 - sap
글쓴이 : theko 날짜 : 2019-09-15 (일) 21:39 조회 : 35
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 lsnpida.cs lsnpide.cs -u hacluster -p rplinux

pcs cluster setup --name picluster lsnpida.cs lsnpide.cs --token 3200 --join 100



pcs cluster auth lsnerdb.cs lsnera1.cs -u hacluster -p rplinux

pcs cluster setup --name ercluster lsnerdb.cs lsnera1.cs --token 3200 --join 100



pcs cluster auth lsnpsdb.cs lsnpsde.cs -u hacluster -p rplinux

pcs cluster setup --name pscluster lsnpsdb.cs lsnpsde.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=172.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_lsnervip" 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 lsnerdb.cs=1000

pcs constraint location ersvc prefers lsnera1.cs=500

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



pcs stonith create ipmi1 fence_ipmilan pcmk_host_list="lsnerdb.cs" ipaddr=lsnerdb.ipmi login=lsnerpdb passwd='LSNerpdb!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="lsnera1.cs" ipaddr=lsnera1.ipmi login=lsnerpap1  passwd='LSNerpap1@' lanplus=on auth=password power_wait=20 op monitor interval=60s timeout=120s



pcs stonith level add 1 lsnerdb.cs kdump

pcs stonith level add 1 lsnera1.cs kdump



pcs stonith level add 2 lsnerdb.cs ipmi1

pcs stonith level add 2 lsnera1.cs ipmi2



pcs constraint location add fence_death1 ipmi1 lsnerdb.cs -INFINITY

pcs constraint location add fence_death2 ipmi2 lsnera1.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