




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
SUSEHA配置手冊
1.SUSEHA軟件包安裝
兩個節(jié)點(diǎn)均運(yùn)用yast2安裝suseHA軟件包(須要額外HACD與SUSE
11SP3的系統(tǒng)ISO)。
Connected(encrypted)to:QEMU(I-0000004E)
YaSTControlCenter
Filter論WOL
『一I
SecurityandUsers
Groups
■l^1AppAtmorConfiguration
HardwareCAManagement
Miscellaneous
NetworkDevicesCommonServerCertificateFirewall
NetworkServices
SecurityandUsersLinuxAuditFramework(LAF)SecurityCenterandHardening
Software
SystemaUserandGroupManagement
Virtualization
Other
⑥InstallationintoDirectory
Add-OnProducts
Installorremoveadd-onproducts
MediaCheck
OnlineUpdateConfigurationPatchCDUpdate
日[SoftwareRepositories
SoftwareManagement
System
/etc/sysconfigEditorJBootLoader
#InstalledAdd-onProducts
Add-onProduct7URL
SUSELinuxEnterpriseHighAvailabilityExtensicn11SP3Iso〃/7iso=SLE?HA-11?SP3?x86_64?GM~CD2lso&urt=1He〃/sapcW
Vendor:SUSELINUXProductsGmbH.Nuernberg,Germany
Version:113-169
RepositoryURL:iso///7iso=SLE-HZV11-SP?-x96j54-GM-CD2iso&urfefile///sapcd/
RepositoryAlias:SUSE-Linux-Enterprise-High-Availabilrty-Extension-11-SP3_1133-169_1
?Locati
<Septen
RunSoftwareMa
%
n
n
@
2.初始化配置集群
執(zhí)行yast2cluster初始化配置集群
FileEditViewTerminalHelp
Directory:/root/Desktop
ThuSep1717:36:31CST2015
sapprdapl:~/Desktop#yast2
sapprdapl:-/Desktop#yast2clsuterf
XDesktop-OX
YaST2o
9Cluster-CommunicationChannels
Transport
udp
RedundantChannel
BindNetwtxkAddressBtndNetworkAddtess
鼻Cluster-ConfigureCsync2
SyncHostSyncFile
1x
[*][四][EdK][Agd|[De]][Edlj]Md和ggestj?Locatjon:
GeneratePre-Shared-KeysTurncsync2OFF<Septembe
SunM
HelpCancelI|Fir
<YaST2_□
Cluster-Security
EnableSecurrtyAuth
Threxls
一
Fornewtycreatedduster,pushthebuttonbelowtogenerate/etc/corosync/autnkey
Tojoinanexistingcluster,pleasecopy/etcycorosync/authReyfromothernodes-nanuaily
HelpAh°r且acpt
AbCluster-Service
Booting
?On-Startopenaisatbooting□
,Off-Startopenaismanuallyonly
SwitchOnandOff
CurrentStatus:Running
StopopenaisNow
ManagementTool
0Enablemgmtd.TheGUIclientrequiresthis
firewallsettings
□OfienPortinFirewall
Firewallisdisabled
?Locati
HelpCancel
拷貝配置文件到節(jié)點(diǎn)2
scp-rp/etc/corosync/corosync.confsapprdap2:/etc/corosync/
節(jié)點(diǎn)2執(zhí)行
Chkconfigopenaison
rcopenaison
兩個節(jié)點(diǎn)執(zhí)行passwdhacluster
3.配置SDB
ITTwiIuyviuLIixoxiyv/vir\iwiiauywdidaiIVI1al.LDaWII
#bugzilla.kernel.orgsothattherootcauseoftheissuewillge
ACPI_DSDT=""
##Type:string(yes)
##Default:"M
#
#Skipdoingaminimalpreparationofthe/usr/src/linuxsourcet
#thatmostheaderfilescanbedirectlyincluded.Ifset,/usr/s
#willnotbetouched.
#
SKIP_RUNNING_KERNEL=""
###pvdriver<begin>donotchangethiscomment
INITRD_MODULES="xen-balloonvirtio_ringvirtio_netvirtiovirtio
n-hcallxen-vnifxen-vmdqxen-platform-pci${INITRD_MODULES)"
###pvdriver<end>donotchangethiscomment
MODULES_LOADED_ON_BOOT='softdog1|
sapprdapl:-/Desktop#cat/etc/sysconfig/kernel
/etc/sysconfig/kernel中增加紅框中的行
-OUIJUk/y
:-/Desktop#sbd-d/dev/xvdicreate|
運(yùn)用sbd吩咐創(chuàng)建sbd盤
IIV/LXJJJJCUZJIJI/I-I
sapprdapl:~/Desktop#sbd-d/dev/xvdicreate
Isapprdapl:-/Desktop#cat/etc/sysconfig/sbd
SBD_DEVICE="/dev/xvdi"
|SBD二OPTSi—W"
sapprdapl:-/Desktop#)
創(chuàng)建sbd文件
4.配置HA資源
SBD_DEVICE="/dev/xvdi
SBD二OPTS="-W
sapprdapl:*/Desktop#crmgui!
執(zhí)行crm_gui
PacemakerGUI
£onnedjonViewShadwTools%lp
創(chuàng)建克隆資源組,SBD與PING。具體配置如下圖:
雙擊
EditPrimitive
Show|ListMode0
RequiredMetaAttnbutesInstanceAttnbutesOperations
ID:
Namevalue
Class
soddevice/dev/xvui
Provider
Type
t>Optional
Description
SharedstorageSTONITHdeviceI
sbdusesasharedstoragedeviceasamediumtoV
communicate
配置之前創(chuàng)建好的Sbd盤
指向網(wǎng)關(guān)
創(chuàng)建資源組saprg
并按依次配置各種SAP資源
DDescription
L
saprg
ysaprg
各資源的具體屬性如下:
須要提前在兩個節(jié)點(diǎn)創(chuàng)建/etc/nfsexport書目
nfs_ip指向虛擬主機(jī)名
Description
saprg
#Add
SAP腳本是Isb類型,腳本須要提前放在/etc/init.d下,名字就叫sapecp.
腳本具體內(nèi)容為:
sapprdapl:-#cat/etc/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:3459119
#description:Startup/ShutdownSAPinstance
SAP_OWNR="ecpadmH
HOST_NAME='hostname'
HOSTl="sapprdapl”
HOST2="sapprdap2u
#dependingonparameter—startup,shutdown,restart
#oftheinstanceandlistenerorusagedisplay
case"$1"in
start)
#SAPinstancestartup
echo"mountnfss”
num='df-h|grepsapmnt|wc-F
if[$num==1]
then
mount
sapprdap:/export/sapmnt/ECP/sapmnt/ECP
mount
sapprdap:/export/usr/sap/trans/usr/sap/trans
fi
echo-n"StartingSAPinstance"
su-$SAP_OWNR-cMstartsapR3
ASCS01sapecpap"
echonStartSAPASCS01ok."
su-ecpadm-c"startsapR3"
echo'*startremoteSAPInstance"
num2='ssh$HOST1df-h|grep
sapmnt|wc-F
if[$num2!=2]
then
ssh$HOST1
sapprdap:/export/sapmnt/ECP/sapmnt/ECP
ssh$HOST1
sapprdap:/export/usr/sap/trans/usr/sap/trans
fi
ssh$HOST2su-$SAP_OWNR-c
ustartsapR3DOO"
echouStartDOOinstancein
sapprdap2ok.”
stop)
#SAPinstanceshutdown
echo-n"ShutdownSAPinstance"
su-ecpadm-c"stopsapR3"
su-ecpadm-c"stopsapR3ASCS01
sapprdap"
su-$SAP_OWNR-c"saposcol-kn
su-$SAP_OWNR-c"cleanipc00
remove'1
su-$SAP_OWNR-cncleanipc01
remove
su-$SAP_OWNR-c"cleanipc10
remove
su-ecpadm-c"sapcontrol-nr00
-functionStopService"
su-ecpadm-c"sapcontrol-nr01
-functionStopService"
su-ecpadm-c"sapcontrol-nr10
-functionStopService"
kill-9、ps-ef|grep$SAP_OWNR|grep
-vgrep|awk'{print$2}'、
echo"StopSAPinstanceok."
#umount-1/sapmnt/ECP
restart)
$0stop
$0start
reload)
echo"reloadcommandnot
supported."
,,
status)
num='psaux-cols=1024|grep
ms.sapECP_ASCSO11grep-vgrep|wc-1、
echo"runningprocess
ms.sapECP_ASCS01$num”
#[$num-gt0]||exit1
#num='psaux—cols=1024|grep
en.sapECP_ASCSO1|grep-vgrep|wc-F
#echo"runningprocess
en.sapECP_ASCSO1$num"
#[$num-gt0]||exit1
exit0
*)
echo"Usage:$0
start|stop|restart|reload|status"
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 成人高考數(shù)學(xué)(理)2025年真題再現(xiàn)全真模擬試卷含答案
- 2025年小升初數(shù)學(xué)入學(xué)考試模擬題(拓展創(chuàng)新型)-數(shù)學(xué)拓展與實(shí)際應(yīng)用
- 2025年人力資源管理師二級薪酬激勵策略與設(shè)計(jì)實(shí)戰(zhàn)策略分析試題
- 2025年注冊城鄉(xiāng)規(guī)劃師城鄉(xiāng)規(guī)劃原理模擬試卷(規(guī)劃法規(guī)與空間布局)-空間布局法規(guī)與法規(guī)遵守技巧解析
- 廣東省茂名市2024-2025高二下學(xué)期期末生物試卷+答案
- 呆廢料管理與防范
- 2025年執(zhí)業(yè)醫(yī)師資格考試臨床類別實(shí)踐技能模擬試卷(病史采集與體格檢查)-感染病診療挑戰(zhàn)
- 2025年消防執(zhí)業(yè)資格考試題庫(消防標(biāo)準(zhǔn)化建設(shè))消防設(shè)施操作員消防技術(shù)服務(wù)機(jī)構(gòu)法規(guī)政策試題
- 客戶關(guān)系管理的過程
- 2025年荷蘭VWO物理波動與光學(xué)核心考點(diǎn)試卷
- 2025-2030年中國服務(wù)器行業(yè)市場深度調(diào)研及前景趨勢與投資研究報(bào)告
- 安徽卷-2025屆高考化學(xué)全真模擬卷
- 河北省石家莊市2025屆普通高中高三教學(xué)質(zhì)量檢測(三)英語試卷及答案
- 2025屆百師聯(lián)盟高三下學(xué)期二輪復(fù)習(xí)聯(lián)考(三)政治試題(含答案)
- 江西省豐城市第九中學(xué)2024-2025學(xué)年高二下學(xué)期期中考試英語試卷(含答案無聽力原文及音頻)
- 康復(fù)技術(shù)考試試題及答案
- 2025年新工人入場安全培訓(xùn)考試試題附完整答案(奪冠)
- 2024年云南省文山州第二人民醫(yī)院選調(diào)工作人員考試真題
- 河北名校2025屆高考生物全真模擬密押卷含解析
- 血站考試試題及答案
- 《埃菲爾鐵塔》課件
評論
0/150
提交評論