資源描述:
《SUSEHA配置手冊(cè)簿》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在工程資料-天天文庫。
1、實(shí)用文檔SUSEHA配置手冊(cè)1.SUSEHA軟件包安裝兩個(gè)節(jié)點(diǎn)均使用yast2安裝suseHA軟件包(需要額外HACD與SUSE11SP3的系統(tǒng)ISO)。實(shí)用文檔實(shí)用文檔1.初始化配置集群執(zhí)行yast2cluster初始化配置集群實(shí)用文檔實(shí)用文檔實(shí)用文檔實(shí)用文檔拷貝配置文件到節(jié)點(diǎn)2scp-rp/etc/corosync/corosync.confsapprdap2:/etc/corosync/節(jié)點(diǎn)2執(zhí)行Chkconfigopenaisonrcopenaison兩個(gè)節(jié)點(diǎn)執(zhí)行passwdhacluster實(shí)用文檔1.配置SDB/etc/sysconfig/kernel
2、中增加紅框中的行使用sbd命令創(chuàng)建sbd盤創(chuàng)建sbd文件2.配置HA資源實(shí)用文檔執(zhí)行crm_gui創(chuàng)建克隆資源組,SBD與PING。具體配置如下圖:實(shí)用文檔實(shí)用文檔雙擊配置之前創(chuàng)建好的sbd盤實(shí)用文檔指向網(wǎng)關(guān)實(shí)用文檔實(shí)用文檔創(chuàng)建資源組saprg并按順序配置各種SAP資源實(shí)用文檔實(shí)用文檔各資源的詳細(xì)屬性如下:實(shí)用文檔實(shí)用文檔實(shí)用文檔需要提前在兩個(gè)節(jié)點(diǎn)創(chuàng)建/etc/nfsexport目錄nfs_ip指向虛擬主機(jī)名實(shí)用文檔SAP腳本是lsb類型,腳本需要提前放在/etc/init.d下,名字就叫sapecp.腳本詳細(xì)內(nèi)容為:實(shí)用文檔sapprdap1:~#cat/etc
3、/init.d/sapecp#!/bin/sh###BEGININITINFO#Provides:sapbip.sh#Required-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:345
4、9119#description:Startup/ShutdownSAPinstanceSAP_OWNR="ecpadm"HOST_NAME=`hostname`HOST1="sapprdap1"HOST2="sapprdap2"#dependingonparameter--startup,shutdown,restart#oftheinstanceandlistenerorusagedisplaycase"$1"instart)#SAPinstancestartup實(shí)用文檔echo"mountnfssfilesystem"num=`df-h
5、grepsapmnt
6、
7、wc-l`if[$num==1]thenmountsapprdap:/export/sapmnt/ECP/sapmnt/ECPmountsapprdap:/export/usr/sap/trans/usr/sap/transfiecho-n"StartingSAPinstance"su-$SAP_OWNR-c"startsapR3ASCS01sapecpap"echo"StartSAPASCS01ok."su-ecpadm-c"startsapR3"echo"startremoteSAPInstance"num2=`ssh$HOST1df-h
8、grepsapmn
9、t
10、wc-l`if[$num2!=2]thenssh$HOST1sapprdap:/export/sapmnt/ECP/sapmnt/ECPssh$HOST1sapprdap:/export/usr/sap/trans/usr/sap/transfissh$HOST2su-$SAP_OWNR-c"startsapR3D00"echo"StartD00instanceinsapprdap2ok.";;stop)#SAPinstanceshutdownecho-n"ShutdownSAPinstance"su-ecpadm-c"stopsapR3"su-ecpadm-
11、c"stopsapR3ASCS01sapprdap"su-$SAP_OWNR-c"saposcol-k"實(shí)用文檔su-$SAP_OWNR-c"cleanipc00remove"su-$SAP_OWNR-c"cleanipc01remove"su-$SAP_OWNR-c"cleanipc10remove"su-ecpadm-c"sapcontrol-nr00-functionStopService"su-ecpadm-c"sapcontrol-nr01-functionStopService"su-ecpadm-c"sapcontrol-nr10-functionS
12、topSe