HACMP52与Oracle9iRAC配置文档.docx
- 文档编号:8921866
- 上传时间:2023-02-02
- 格式:DOCX
- 页数:47
- 大小:40.22KB
HACMP52与Oracle9iRAC配置文档.docx
《HACMP52与Oracle9iRAC配置文档.docx》由会员分享,可在线阅读,更多相关《HACMP52与Oracle9iRAC配置文档.docx(47页珍藏版)》请在冰豆网上搜索。
HACMP52与Oracle9iRAC配置文档
HACMP5.2与Oracle9iRAC
配置文档
©Copyright,2005,SinosoftCo..Ltd.
Tel:
(010)62570116-813Fax:
(010)62570026
Visitusat
中科软科技股份有限公司
2005年11月
HACMP5.2与Oracle9iRAC
配置文档
目录
1写在前面的话3
2需求分析3
3环境说明3
4设计规划4
4.1IP及拓扑设计4
4.2资源组命名6
4.3应用服务器建立6
4.4配置资源组6
4.5hosts文件设计6
5实施步骤7
5.1环境准备7
5.2IP地址几网络划分7
5.3HACMP配置8
5.3.1让HACMP主动认双机配置8
5.3.2修改HACMP的拓扑配置10
5.4同步HACMP配置并启动HACMP16
5.5创建concurrentvg,并创建资源组17
5.5.1创建VG17
5.5.2配置资源组信息18
5.6同步HACMP配置并启动HACMP21
6附录22
6.1相关文件22
6.1.1/etc/hosts22
6.1.2/.rhosts23
6.1.3/usr/es/sbin/cluster/etc/rhosts23
6.1.4/usr/sbin/cluster/netmon.cf23
6.1.5创建lv的pp数目列表23
6.2问题集锦24
6.2.1AIX5.3不支持hacmp4.5版本24
6.2.2创建数据库时没有权限访问裸设备25
6.2.3HACMP同步失败25
6.2.4启动hacmp自动发生IP切换26
6.2.5不能两个节点同时mount问题需要考虑的问题26
1写在前面的话
编写本文档要特别感谢北京现代集团的张维民及suwalau两位朋友,在他们的帮助下,才得以解决关键的问题。
2需求分析
在本次HACMP实施中采用双机并行的运行模式,即:
两台P550主机上安装Oracle9iRAC产品,HACMP版本为5.2
3环境说明
主机名
信息
备注
主机1
testdb01
SystemModel:
IBM,9113-550
MachineSerialNumber:
ProcessorType:
PowerPC_POWER5
NumberOfProcessors:
2
ProcessorClockSpeed:
1504MHz
CPUType:
64-bit
KernelType:
64-bit
LPARInfo:
110-FAFEF
MemorySize:
7808MB
Disk:
70G*2
AIX5300-03
Hacmp:
5.2
主机2
testdb02
SystemModel:
IBM,9113-550
MachineSerialNumber:
ProcessorType:
PowerPC_POWER5
NumberOfProcessors:
2
ProcessorClockSpeed:
1504MHz
CPUType:
64-bit
KernelType:
64-bit
LPARInfo:
110-FB0FF
MemorySize:
7808MB
Disk:
70G*2
AIX5300-03
Hacmp:
5.2
4设计规划
4.1IP及拓扑设计
clustername
testcluster
nodename
testdb01
iplabel
db1_boot
db1_stdby
db1_svr
testdb_tty1
db1_prv
networktype
ethernet
ethernet
ethernet
rs232
ethernet
networkattribute
public
public
public
serial
private
ipalias
disable
disable
disable
disable
networkname
net_ether_02
net_ether_02
net_ether_02
net_rs232_01
net_ether_01
ipaddress
10.66.8.52
172.1.1.1
10.66.8.50
/dev/tty0
2.2.2.1
adapterfunction
boot
standby
service
serial
private
adaptername
en2
en3
en1
clustername
testcluster
nodename
testdb02
iplabel
db2_boot
db2_stdby
db2_svr
testdb_tty2
db2_prv
networktype
ethernet
ethernet
ethernet
rs232
ethernet
networkattribute
public
public
public
serial
private
ipalias
disable
disable
disable
disable
networkname
net_ether_02
net_ether_02
net_ether_02
net_rs232_01
net_ether_01
ipaddress
10.66.8.53
172.1.1.2
10.66.8.51
/dev/tty0
2.2.2.2
adapterfunction
boot
standby
service
serial
private
adaptername
en2
en3
en1
4.2资源组命名
Res.Grp.Name
NodeRel.
Part.NodeName
testdb_res
concurrent
testdb01testdb02
testdb_res1
cascading
testdb01testdb02
testdb_res2
cascading
testdb02testdb01
4.3应用服务器建立
AppName
StartScript
StopScript
testapp
/ha/start
/ha/stop
4.4配置资源组
Res.Grp.Name
ServiceIP
VolumeGroup
ApplicationServers
testdb_res
oradatavg
testapp
testdb_res1
db1_svc
testdb_res2
db2_svc
4.5hosts文件设计
127.0.0.1loopbacklocalhost#loopback(lo0)name/address
10.66.8.52db1_boottestdb01
10.66.8.50db1_svr
172.1.1.1db1_stdby
2.2.2.1db1_prv
10.66.8.51db2_svr
10.66.8.53db2_boottestdb02
172.1.1.2db2_stdby
2.2.2.2db2_prv
10.48.178.201db1_console1
10.48.178.203db2_console1
5实施步骤
5.1环境准备
序号
内容项
内容
备注
1.
安装HACMP软件
注意不要安装带PSSP的文件集(会导致启动数据库时不认裸设备)
2.
打HACMP补丁
IY58496IY77379IY73937IY68370
3.
重起主机
4.
检查补丁
检查补丁是否已经打上
5.
修改/sbin/rc.boot
##ModifiedBySinosoftForHacmpSoftwareStart
#nohup/usr/sbin/syncd60>/dev/null2>&1&
nohup/usr/sbin/syncd10>/dev/null2>&1&
##ModifiedBySinosoftForHacmpSoftwareEnd
6.
修改watermark
smitsystem-->
Change/ShowCharacteristicsofOperatingSystem
HIGHwatermarkforpendingwriteI/Osperfile[32]
LOWwatermarkforpendingwriteI/Osperfile[24]
5.2IP地址几网络划分
步骤
节点
步骤
备注
1.
testdb01
在en2上建立boot网卡:
testdb01/10.66.8.52/255.255.255.0
2.
在en3上建立standby网卡:
testdb01/172.1.1.1/255.255.255.0
3.
在en1上建立private网卡:
testdb01/2.2.2.1/255.255.255.0
4.
testdb02
在en2上建立boot网卡:
testdb01/10.66.8.53/255.255.255.0
5.
在en3上建立standby网卡:
testdb01/172.1.1.2/255.255.255.0
6.
在en1上建立private网卡:
testdb01/2.2.2.2/255.255.255.0
7.
testdb01
修改/etc/hosts文件
建立/.rhosts文件
chmod600/.rhosts
8.
testdb02
修改/etc/hosts文件
建立/.rhosts文件
chmod600/.rhosts
9.
测试网络是否畅通(rlogin,ping等命令)
10.
testdb01
创建串口信息:
tty/rs232/terminalasynchrone/sa3/2/9600/none/8/1/vt100
11.
testdb02
创建串口信息:
tty/rs232/terminalasynchrone/sa3/2/9600/none/8/1/vt100
12.
测试心跳线是否正常
在testdb02上:
cat
在testdb01上:
cat/etc/hosts>/dev/tty0
如果在testdb02上显示出相关内容,则配置正常
5.3HACMP配置
5.3.1让HACMP主动认双机配置
HACMPforAIX
MovecursortodesireditemandpressEnter.
InitializationandStandardConfiguration
ExtendedConfiguration
SystemManagement(C-SPOC)
ProblemDeterminationTools
nitializationandStandardConfiguration
MovecursortodesireditemandpressEnter.
Two-NodeClusterConfigurationAssistant
AddNodestoanHACMPCluster
ConfigureResourcestoMakeHighlyAvailable
ConfigureHACMPResourceGroups
VerifyandSynchronizeHACMPConfiguration
HACMPClusterTestTool
DisplayHACMPConfiguration
ConfigureNodestoanHACMPCluster(standard)
Typeorselectvaluesinentryfields.
PressEnterAFTERmakingalldesiredchanges.
[EntryFields]
*ClusterName[testcluster]
NewNodes(viaselectedcommunicationpaths)[testdb01]
[EntryFields]
*ClusterName[testcluster]
NewNodes(viaselectedcommunicationpaths)[testdb02]
CurrentlyConfiguredNode(s)testdb01
在这一过程中,HACMP会认出在/etc/hosts文件中配置的所有信息,并进行分类,配置如下:
Node:
testdb01
NetWork:
net_ether_01
Adapter:
db1_console1,db1_prv
NetWork:
net_ether_02
Adapter:
db1_boot,db1_stdby
====================================================================
Node:
testdb02
NetWork:
net_ether_01
Adapter:
db2_console1,db2_prv
NetWork:
net_ether_02
Adapter:
db2_boot,db2_stdby
5.3.2修改HACMP的拓扑配置
5.3.2.1删除db1_console1和db2_console1信息
由于db1_console1和db2_console1是作为日常管理用的,不需要配置在HA环境中,并且,如何不删除该信息,在修改NetWork属性时会报警告信息。
HACMPforAIX
MovecursortodesireditemandpressEnter.
InitializationandStandardConfiguration
ExtendedConfiguration
SystemManagement(C-SPOC)
ProblemDeterminationTools
ExtendedConfiguration
MovecursortodesireditemandpressEnter.
DiscoverHACMP-relatedInformationfromConfiguredNodes
ExtendedTopologyConfiguration
ExtendedResourceConfiguration
ExtendedEventConfiguration
ExtendedPerformanceTuningParametersConfiguration
SecurityandUsersConfiguration
SnapshotConfiguration
ExportDefinitionFileforOnlinePlanningWorksheets
ExtendedVerificationandSynchronization
HACMPClusterTestTool
ExtendedTopologyConfiguration
MovecursortodesireditemandpressEnter.
ConfigureanHACMPCluster
ConfigureHACMPNodes
ConfigureHACMPSites
ConfigureHACMPNetworks
ConfigureHACMPCommunicationInterfaces/Devices
ConfigureHACMPPersistentNodeIPLabel/Addresses
ConfigureHACMPGlobalNetworks
ConfigureHACMPNetworkModules
ConfigureTopologyServicesandGroupServices
ShowHACMPTopology
ConfigureHACMPCommunicationInterfaces/Devices
MovecursortodesireditemandpressEnter.
AddCommunicationInterfaces/Devices
Change/ShowCommunicationInterfaces/Devices
RemoveCommunicationInterfaces/Devices
UpdateHACMPCommunicationInterfacewithOperatingSystemSettings
在列出的设备中,删除db1_console1和db2_console2
5.3.2.2修改NetWork属性
ExtendedTopologyConfiguration
MovecursortodesireditemandpressEnter.
ConfigureanHACMPCluster
ConfigureHACMPNodes
ConfigureHACMPSites
ConfigureHACMPNetworks
ConfigureHACMPCommunicationInterfaces/Devices
ConfigureHACMPPersistentNodeIPLabel/Addresses
ConfigureHACMPGlobalNetworks
ConfigureHACMPNetworkModules
ConfigureTopologyServicesandGroupServices
ShowHACMPTopology
MovecursortodesireditemandpressEnter.
AddaNetworktotheHACMPCluster
Change/ShowaNetworkintheHACMPCluster
RemoveaNetworkfromtheHACMPCluster
SelectaNetworktoChange/Show
MovecursortodesireditemandpressEnter.
net_ether_01(2.2.2.0/24)
net_ether_02(10.66.8.0/24172.1.1.0/24)
Change/ShowanIP-BasedNetworkintheHACMPCluster
Typeorselectvaluesinentryfields.
PressEnterAFTERmakingalldesiredchanges.
[EntryFields]
*NetworkNamenet_ether_01
NewNetworkName[]
*NetworkType[ether]
*Netmask[255.255.255.0]
*EnableIPAddressTakeoverviaIPAliases[No]
IPAddressOffsetforHeartbeatingoverIPAliases[]
*Networkattributeprivate
Change/ShowanIP-BasedNetworkintheHACMPCluster
Typeorselectvaluesinentryfields.
PressEnterAFTERmakingalldesiredchanges.
[EntryFields]
*NetworkNamenet_ether_02
NewNetworkName[]
*NetworkType[ether]
*Netmask[255.255.255.0]
*EnableIPAddressTakeoverviaIPAliases[No]
IPAddressOffsetforHeartbeatingoverIPAliases[]
*Networkattributepublic(不变)
5.3.2.3增加串口NetWork
ExtendedTopologyConfiguration
MovecursortodesireditemandpressEnter.
ConfigureanHACMPCluster
ConfigureHACMPNodes
ConfigureHACMPSites
ConfigureHACMPNetworks
ConfigureHACMPCommunicationInterfaces/Devices
ConfigureHACMPPersistentNodeIPLabel/Addresses
ConfigureHACMPGlobalNetworks
ConfigureHACMPNetworkModules
ConfigureTopologyServicesandGroupServices
ShowHACMPTopology
#Pre-definedSerialDeviceTypes
XD_rs232
diskhb
rs232
AddaSerialNetworktotheHACMPCluster
Typeorselect
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- HACMP52 Oracle9iRAC 配置 文档