資源描述:
《SUSEHA配置手冊.doc》由會員上傳分享,免費在線閱讀,更多相關內(nèi)容在行業(yè)資料-天天文庫。
1、.SUSEHA配置手冊1.SUSEHA軟件包安裝兩個節(jié)點均使用yast2安裝suseHA軟件包(需要額外HACD與SUSE11SP3的系統(tǒng)ISO)。....1.初始化配置集群執(zhí)行yast2cluster初始化配置集群........拷貝配置文件到節(jié)點2scp-rp/etc/corosync/corosync.confsapprdap2:/etc/corosync/節(jié)點2執(zhí)行Chkconfigopenaisonrcopenaison兩個節(jié)點執(zhí)行passwdhacluster..1.配置SDB/etc/sysconfig/kernel中增加紅框中的行使用sbd命令創(chuàng)建sbd盤創(chuàng)建sbd文件
2、2.配置HA資源執(zhí)行crm_gui..創(chuàng)建克隆資源組,SBD與PING。具體配置如下圖:....雙擊配置之前創(chuàng)建好的sbd盤..指向網(wǎng)關....創(chuàng)建資源組saprg并按順序配置各種SAP資源....各資源的詳細屬性如下:......需要提前在兩個節(jié)點創(chuàng)建/etc/nfsexport目錄nfs_ip指向虛擬主機名..SAP腳本是lsb類型,腳本需要提前放在/etc/init.d下,名字就叫sapecp.腳本詳細內(nèi)容為:sapprdap1:~#cat/etc/init.d/sapecp#!/bin/sh###BEGININITINFO..#Provides:sapbip.sh#Requir
3、ed-Start:$local_fs$network#Required-Stop:$local_fs#Default-Start:2345#Default-Stop:016#Short-Description:sapbip.sh#Description:sapbip.shpop&imapdaemon###ENDINITINFO##Run-levelStartupscriptfortheSAPinstance##chkconfig:3459119#description:Startup/ShutdownSAPinstanceSAP_OWNR="ecpadm"HOST_NAME=`host
4、name`HOST1="sapprdap1"HOST2="sapprdap2"#dependingonparameter--startup,shutdown,restart#oftheinstanceandlistenerorusagedisplaycase"$1"instart)#SAPinstancestartupecho"mountnfssfilesystem"num=`df-h
5、grepsapmnt
6、wc-l`if[$num==1]thenmountsapprdap:/export/sapmnt/ECP/sapmnt/ECPmountsapprdap:/export/usr/s
7、ap/trans/usr/sap/transfiecho-n"StartingSAPinstance"su-$SAP_OWNR-c"startsapR3ASCS01sapecpap"echo"StartSAPASCS01ok."su-ecpadm-c"startsapR3"echo"startremoteSAPInstance"num2=`ssh$HOST1df-h
8、grepsapmnt
9、wc-l`if[$num2!=2]thenssh$HOST1sapprdap:/export/sapmnt/ECP/sapmnt/ECPssh$HOST1sapprdap:/export/usr/sa
10、p/trans/usr/sap/transfissh$HOST2su-$SAP_OWNR-c"startsapR3D00"..echo"StartD00instanceinsapprdap2ok.";;stop)#SAPinstanceshutdownecho-n"ShutdownSAPinstance"su-ecpadm-c"stopsapR3"su-ecpadm-c"stopsapR3ASCS01sapprdap"su-$SAP_OWNR-c"saposcol-k"su-$SAP_OWNR-c"cleanipc00remove"su-$SAP_OWNR-c"cleanipc01re
11、move"su-$SAP_OWNR-c"cleanipc10remove"su-ecpadm-c"sapcontrol-nr00-functionStopService"su-ecpadm-c"sapcontrol-nr01-functionStopService"su-ecpadm-c"sapcontrol-nr10-functionStopService"kill-9`ps-ef
12、grep$SAP_OWNR
13、grep-vgrep
14、awk'{