xx1:
127.0.0.1 loopback localhost # loopback (lo0) name/address
135.160.24.13 xx1
135.160.24.14 xx2
135.160.24.13
xx1_boot
135.160.24.11
xx1_serv
172.16.1.11
xx1_stdy
135.160.24.14
xx2_boot
135.160.24.12
xx2_serv
172.16.1.12
xx2_stdy
135.160.24.7
135.161.24.138
nbuserver
xx2
127.0.0.1 loopback localhost # loopback (lo0) name/address
135.160.24.13 xx1
135.160.24.14 xx2
135.160.24.13
xx1_boot
135.160.24.11
xx1_serv
172.16.1.11
xx1_stdy
135.160.24.14
xx2_boot
135.160.24.12
xx2_serv
172.16.1.12
xx2_stdy
135.161.24.138
nbuserver
xx1:
en0: flags=5e080863,c0
inet 135.160.24.11 netmask 0xffffffc0 broadcast 135.160.24.63
tcp_sendspace 131072 tcp_recvspace 65536
en1: flags=5e080863,c0
inet 172.16.1.11 netmask 0xffffffc0 broadcast 172.16.1.63
tcp_sendspace 131072 tcp_recvspace 65536
en2: flags=5e080863,c0
inet 192.168.0.2 netmask 0xffffff00 broadcast 192.168.0.255
tcp_sendspace 131072 tcp_recvspace 65536
lo0: flags=e08084b
inet 127.0.0.1 netmask 0xff000000 broadcast 127.255.255.255
inet6 ::1/0
tcp_sendspace 131072 tcp_recvspace 131072 rfc1323 1
xx2
en0: flags=5e080863,c0
inet 172.16.1.12 netmask 0xffffffc0 broadcast 172.16.1.63
tcp_sendspace 131072 tcp_recvspace 65536
en1: flags=5e080863,c0
inet 135.160.24.12 netmask 0xffffffc0 broadcast 135.160.24.63
tcp_sendspace 131072 tcp_recvspace 65536
en2: flags=5e080863,c0
inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255
tcp_sendspace 131072 tcp_recvspace 65536
lo0: flags=e08084b
inet 127.0.0.1 netmask 0xff000000 broadcast 127.255.255.255
inet6 ::1/0
tcp_sendspace 131072 tcp_recvspace 131072 rfc1323 1
Cluster Name: nxdx
Cluster Connection Authentication Mode: Standard
Cluster Message Authentication Mode: None
Cluster Message Encryption: None
Use Persistent Labels for Communication: No
There are 2 node(s) and 3 network(s) defined
4.NODE xx1:
Network net_ether_01
xx1_serv
135.160.24.11
xx1_boot
135.160.24.13
xx1_stdy
172.16.1.11
Network net_rs232_01
Network net_rs232_02
xx1_tty0_01
/dev/tty0
NODE xx2:
Network net_ether_01
xx2_serv
135.160.24.12
xx2_boot
135.160.24.14
xx2_stdy
172.16.1.12
Network net_rs232_01
Network net_rs232_02
xx2_tty0_01
/dev/tty0
ORA
Resource Group Name
ora
Participating Node Name(s)
xx1 xx2
Startup Policy
Online On Home Node Only
Fallover Policy
Fallover To Next Priority Node In The List
Fallback Policy
Fallback To Higher Priority Node In The List
Site Relationship
ignore
Dynamic Node Priority
Service IP Label
xx1_serv
Filesystems
ALL
Filesystems Consistency Check
fsck
Filesystems Recovery Method
sequential
Filesystems/Directories to be exported
Filesystems to be NFS mounted
Network For NFS Mount
Volume Groups
dlmvg01
Concurrent Volume Groups
Use forced varyon for volume groups, if necessaryfalse
Disks
GMD Replicated Resources
PPRC Replicated Resources
ERCMF Replicated Resources
SVC PPRC Replicated Resources
Connections Services
Fast Connect Services
Shared Tape Resources
Application Servers
app
Highly Available Communication Links
Primary Workload Manager Class
Secondary Workload Manager Class
Delayed Fallback Timer
Miscellaneous Data
Automatically Import Volume Groups
false
Inactive Takeover
SSA Disk Fencing
false
Filesystems mounted before IP configured
false
Run Time Parameters:
Node Name
xx1
Debug Level
high
Format for hacmp.out
Standard
Node Name
xx2
Debug Level
high
Format for hacmp.out
Standard
ORA1
Resource Group Name
ora1
Participating Node Name(s)
xx2 xx1
Startup Policy
Online On Home Node Only
Fallover Policy
Fallover To Next Priority Node In The List
Fallback Policy
Fallback To Higher Priority Node In The List
Site Relationship
ignore
Dynamic Node Priority
Service IP Label
xx2_serv
Filesystems
ALL
Filesystems Consistency Check
fsck
Filesystems Recovery Method
sequential
Filesystems/Directories to be exported
Filesystems to be NFS mounted
Network For NFS Mount
Volume Groups
dlmvg02
Concurrent Volume Groups
Use forced varyon for volume groups, if necessaryfalse
Disks
GMD Replicated Resources
PPRC Replicated Resources
ERCMF Replicated Resources
SVC PPRC Replicated Resources
Connections Services
Fast Connect Services
Shared Tape Resources
Application Servers
app1
Highly Available Communication Links
Primary Workload Manager Class
Secondary Workload Manager Class
Delayed Fallback Timer
Miscellaneous Data
Automatically Import Volume Groups
false
Inactive Takeover
SSA Disk Fencing
false
Filesystems mounted before IP configured
false
Run Time Parameters:
Node Name
xx2
Debug Level
high
Format for hacmp.out
Standard
Node Name
xx1
Debug Level
high
Format for hacmp.out
Standard
app
Server Name
app
Start Script
/home/start.sh
Stop Script
/home/stop.sh
app1
Server Name
app1
Start Script
/home/start1.sh
Stop Script
/home/stop1.sh
执行:smit hacmp
Extended Configuration
Extended Verification and Synchronization
* Verify, Synchronize or Both
[Both] +
* Automatically correct errors found during
[Interactively] +
verification?
* Force synchronization if verification fails?
[No] +
* Verify changes only?
[No] +
* Logging
[Standard] +
六、
1. 在xx1上操作:shutdown –F
2. 在xx2上查看资源组状态:
-
执行lsvg –o,输出如下:
dlmvg01
dlmvg02
rootvg
-
执行ifconfig –a,输出如下:
en0: flags=5e080863,c0
inet 172.16.1.12 netmask 0xffffffc0 broadcast 172.16.1.63
tcp_sendspace 131072 tcp_recvspace 65536
en1: flags=5e080863,c0
inet 135.160.24.200 netmask 0xffffffc0 broadcast 135.160.24.63
tcp_sendspace 131072 tcp_recvspace 65536
inet 135.160.24.201 netmask 0xffffffc0 broadcast 135.160.24.63
tcp_sendspace 131072 tcp_recvspace 65536
en2: flags=5e080863,c0
inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255
tcp_sendspace 131072 tcp_recvspace 65536
lo0: flags=e08084b
inet 127.0.0.1 netmask 0xff000000 broadcast 127.255.255.255
inet6 ::1/0
tcp_sendspace 131072 tcp_recvspace 131072 rfc1323 1
1. 查看xx1资源:
-
执行lsvg –o,输出如下:
dlmvg01
rootvg
-
执行ifconfig –a,输出如下:
en0: flags=5e080863,c0
inet 135.160.24.200 netmask 0xffffffc0 broadcast 135.160.24.63
tcp_sendspace 131072 tcp_recvspace 65536
en1: flags=5e080863,c0
inet 172.16.1.11 netmask 0xffffffc0 broadcast 172.16.1.63
tcp_sendspace 131072 tcp_recvspace 65536
en2: flags=5e080863,c0
inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255
tcp_sendspace 131072 tcp_recvspace 65536
lo0: flags=e08084b
inet 127.0.0.1 netmask 0xff000000 broadcast 127.255.255.255
inet6 ::1/0
tcp_sendspace 131072 tcp_recvspace 131072 rfc1323 1
2. 查看xx2资源:
-
执行lsvg –o,输出如下:
dlmvg02
rootvg
-
执行ifconfig –a,输出如下:
en0:
flags=5e080863,c0
inet 172.16.1.12 netmask 0xffffffc0 broadcast 172.16.1.63
tcp_sendspace 131072 tcp_recvspace 65536
en1:
flags=5e080863,c0
inet 135.160.24.201 netmask 0xffffffc0 broadcast 135.160.24.63
tcp_sendspace 131072 tcp_recvspace 65536
en2: flags=5e080863,c0
inet 192.168.0.2 netmask 0xffffff00 broadcast 192.168.0.255
tcp_sendspace 131072 tcp_recvspace 65536
lo0: flags=e08084b
inet 127.0.0.1 netmask 0xff000000 broadcast 127.255.255.255
inet6 ::1/0
tcp_sendspace 131072 tcp_recvspace 131072 rfc1323 1
1. 在xx2上操作:shutdown –F
2. 在xx1上查看资源组状态:
-
执行lsvg –o,输出如下:
dlmvg01
dlmvg02
rootvg
-
执行ifconfig –a,输出如下:
en0:
flags=5e080863,c0
inet 135.160.24.201 netmask 0xffffffc0 broadcast 135.160.24.63
tcp_sendspace 131072 tcp_recvspace 65536
inet 135.160.24.200 netmask 0xffffffc0 broadcast 135.160.24.63
tcp_sendspace 131072 tcp_recvspace 65536
en1:
flags=5e080863,c0
inet 172.16.1.11 netmask 0xffffffc0 broadcast 172.16.1.63
tcp_sendspace 131072 tcp_recvspace 65536
en2: flags=5e080863,c0
inet 192.168.0.2 netmask 0xffffff00 broadcast 192.168.0.255
tcp_sendspace 131072 tcp_recvspace 65536
lo0: flags=e08084b
inet 127.0.0.1 netmask 0xff000000 broadcast 127.255.255.255
inet6 ::1/0
tcp_sendspace 131072 tcp_recvspace 131072 rfc1323 1
1. 查看xx1资源:
-
执行lsvg –o,输出如下:
dlmvg01
rootvg
-
执行ifconfig –a,输出如下:
en0: flags=5e080863,c0
inet 135.160.24.200 netmask 0xffffffc0 broadcast 135.160.24.63
tcp_sendspace 131072 tcp_recvspace 65536
en1: flags=5e080863,c0
inet 172.16.1.11 netmask 0xffffffc0 broadcast 172.16.1.63
tcp_sendspace 131072 tcp_recvspace 65536
en2: flags=5e080863,c0
inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255
tcp_sendspace 131072 tcp_recvspace 65536
lo0: flags=e08084b
inet 127.0.0.1 netmask 0xff000000 broadcast 127.255.255.255
inet6 ::1/0
tcp_sendspace 131072 tcp_recvspace 131072 rfc1323 1
2. 查看xx2资源:
-
执行lsvg –o,输出如下:
dlmvg02
rootvg
-
执行ifconfig –a,输出如下:
en0:
flags=5e080863,c0
inet 172.16.1.12 netmask 0xffffffc0 broadcast 172.16.1.63
tcp_sendspace 131072 tcp_recvspace 65536
en1:
flags=5e080863,c0
inet 135.160.24.201 netmask 0xffffffc0 broadcast 135.160.24.63
tcp_sendspace 131072 tcp_recvspace 65536
en2: flags=5e080863,c0
inet 192.168.0.2 netmask 0xffffff00 broadcast 192.168.0.255
tcp_sendspace 131072 tcp_recvspace 65536
lo0: flags=e08084b
inet 127.0.0.1 netmask 0xff000000 broadcast 127.255.255.255
inet6 ::1/0
tcp_sendspace 131072 tcp_recvspace 131072 rfc1323 1
执行:smit hacmp
Extended Configuration
Extended Resource Configuration
HACMP Extended Resources Configuration
Remove a Resource Group
选择ora / ora1
执行:smit hacmp
Extended Configuration
Extended Topology Configuration
Configure HACMP Nodes
Remove a Node in the HACMP Cluster
3.
执行:smit hacmp
Extended Configuration
Extended Topology Configuration
Configure an HACMP Cluster
Remove an HACMP Cluster
执行:smit hacmp
Extended Configuration
Extended Topology Configuration
Configure an HACMP Cluster
Add/Change/Show an HACMP Cluster
* Cluster Name
[nxdx]
#新建cluster
执行:smit hacmp
Extended Configuration
Extended Topology Configuration
Configure HACMP Nodes
Add a Node to the HACMP Cluste
*NodeName
[xx1 / xx2]
#设置node name
Communication Path to Node
[xx1_boot / xx2_boot] +
#选择相应的boot IP
执行:smit hacmp
Extended Configuration
Extended Topology Configuration
Configure HACMP Networks
Add a Network to the HACMP Cluster
* NetworkName
[net_ether_01]
* NetworkType
ether
* Netmask
[255.255.255.0] +
* Enable IP Address Takeover via IP Aliases
[NO]
+
IP Address Offset for Heartbeating over IP Aliases []
执行:smit hacmp
Extended Configuration
Extended Topology Configuration
Configure HACMP Networks
Add a Network to the HACMP Cluster
* Network Name
[net_rs232_02]
* Network Type
rs232
分别在两台机器输入:stty9.
添加网络到Cluster
执行:smit hacmp
Extended Configuration
Extended Topology Configuration
Configure HACMP Networks
Configure HACMP Communication Interfaces/Devices
Add Communication Interfaces/Device
Add Pre-defined Communication Interfaces and Devices
Communication Interfaces
* IP Label/Address
[xx1_boot / xx2_boot] +
#选择设备的IP lable
* Network Type
ether
* Network Name
net_ether_01
* Node Name
[xx1 / xx2]
+
选择设备所在节点
Network Interface
[]
执行:smit hacmp
Extended Configuration
Extended Topology Configuration
Configure HACMP Networks
Configure HACMP Communication Interfaces/Devices
Add Communication Interfaces/Device
Add Pre-defined Communication Interfaces and Devices
Communication Devices
* Device Name
[xx1_tty0_01 / xx2_tty0_01]
#输入设备名称
* Network Type
rs232
* Network Name
net_rs232_02
* Device Path
[/dev/tty0]
* Node Name
[xx1 / xx2]
+
#选择设备所在节点
执行:smit hacmp
Extended Configuration
Extended Resource Configuration
HACMP Extended Resources Configuration
Configure HACMP Applications Servers
Add an Application Server
* Server Name
[app / app1]
* Start Script
[/home/start.sh / /home/start1.sh]
* Stop Script
[/home/stop.sh / /home/stop1.sh]
执行:smit hacmp
Extended Configuration
Extended Resource Configuration
HACMP Extended Resources Configuration
Configure HACMP Service IP Labels/Addresses
Add a Service IP Label/Address
Configurable on Multiple Nodes
* IP Label/Address
xx1_serv / xx2_serv
+
* Network Name
net_ether_01
执行:smit hacmp
Extended Configuration
Extended Resource Configuration
Add a Resource Group
* Resource Group Name
[ora / ora1]
Participating Nodes (Default Node Priority)
[xx1 xx2 / xx2 xx1]
Startup Policy
Online On Home Node O> +
Fallover Policy
Fallover To Next Prio> +
Fallback Policy
Fallback To Higher Pr> +
执行:smit hacmp
Extended Configuration
Extended Resource Configuration
Change/Show Resources and Attributes for a Resource Group
Resource Group Name
ora / ora1
Participating Nodes (Default Node Priority)
xx1 xx2 / xx2 xx1
Startup Policy
Online On Home Node O>
Fallover Policy
Fallover To Next Prio>
Fallback Policy
Fallback To Higher Pr>
Fallback Timer Policy (empty is immediate)
[]+
Service IP Labels/Addresses
[xx1_serv / xx2_serv] +
Application Servers
[app / app1] +
Volume Groups
[dlmvg01 / dlmvg02]+
Use forced varyon of volume groups, if necessary
false+
Automatically Import Volume Groups
false+
Filesystems (empty is ALL for VGs specified)
[]+
Filesystems Consistency Check
fsck+
Filesystems Recovery Method
sequential+
Filesystems mounted before IP configured
false+
Filesystems/Directories to Export
[]+
Filesystems/Directories to NFS Mount
[]
Network For NFS Mount
[]+
Tape Resources
[]+
Raw Disk PVIDs
[]+
Fast Connect Services
[]+
Communication Links
[]+
Primary Workload Manager Class
[]+
Secondary Workload Manager Class
[]+
执行:smitty clstop
* Stop now, on system restart or both
now+
Stop Cluster Services on these nodes
[xx2
xx1] +
BROADCAST cluster shutdown?
true+
*Select an Action on Resource Groups
Move Resource Groups+
2.
执行:smitty hacmp
Problem Determination Tools
View Current State
执行:lssrc –g cluster
Lssrc –g topsvcs
lssrc -g emsvcs
lsha
当进程状态为inoperative时说明服务已停止,当为active时,说明服务在运行中。
执行:smit mktcpip ,IP地址如下表修改:
以root用户登录,执行 vi /etc/hosts,hosts文件修改后如下:
xx1:
127.0.0.1 loopback localhost # loopback (lo0) name/address
135.160.24.202 xx1
135.160.24.203 xx2
135.160.24.202
xx1_boot
135.160.24.200
xx1_serv
172.16.1.11
xx1_stdy
135.160.24.203
xx2_boot
135.160.24.201
xx2_serv
172.16.1.12
xx2_stdy
135.160.24.7
ljcj-66
135.161.24.138
nbuserver
xx2
127.0.0.1 loopback localhost # loopback (lo0) name/address
135.160.24.202 xx1
135.160.24.203 xx2
135.160.24.202
xx1_boot
135.160.24.200
xx1_serv
172.16.1.11
xx1_stdy
135.160.24.203
xx2_boot
135.160.24.201
xx2_serv
172.16.1.12
xx2_stdy
135.161.24.138
nbuserver
执行:smit hacmp
Extended Configuration
Extended Resource Configuration
HACMP Extended Resources Configuration
Configure HACMP Service IP Labels/Addresses
Remove Service IP Label(s)/Address(es)
来删除原有service IP Lable
执行:smit hacmp
Extended Configuration
Extended Resource Configuration
HACMP Extended Resources Configuration
Configure HACMP Service IP Labels/Addresses
Add a Service IP Label/Address
Configurable on Multiple Nodes
来添加新的service IP
2.执行:smit hacmp
Extended Configuration
Extended Topology Configuration
Configure HACMP Nodes
Change/Show a Node in the HACMP Cluster
选择xx1 / xx2
Communication Path to Node选择新的boot IP
来更新boot IP。
执行:smit hacmp
Extended Configuration
Extended Topology Configuration
Configure HACMP Communication Interfaces/Devices
Remove Communication Interfaces/Devices
来删除原有的standby IP
执行:smit hacmp
Extended Configuration
Extended Topology Configuration
Configure HACMP Communication Interfaces/Devices
Add Communication Interfaces/Devices
Add Pre-defined Communication Interfaces and Devices
Communication Interfaces
选择网络net_ether_01
来配置新的standby IP