HACMP修改配置信息

一、
HACMP原配置信息收集
1.
Hosts文件信息

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

2.
网卡配置信息

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

3.
Cluster基本配置信息

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拓扑配置信息

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

5.
资源组信息

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


6.
Application Servers配置信息

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

参与25

24同行回答

yyt609yyt609系统运维工程师宁波国研软件技术有限公司
沙发啊沙发,学习了,谢谢楼主分享。显示全部
沙发啊沙发,学习了,谢谢楼主分享。收起
系统集成 · 2012-11-02
浏览1437
yinxinyinxin系统管理员银信长远
五、配置验证1.检验并同步设置信息执行:smit hacmp      Extended ConfigurationExtended Verification and Synchronization * Verify, Synchronize or Both[Both] +* Automatically correct errors found during[Interactively] +verification?* Fo...显示全部
五、
配置验证1.
检验并同步设置信息

执行: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关机,查看xx2资源状况

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

2.
启动xx1,查看资源状态

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


3.
xx2关机,查看xx1资源

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


4.
启动启动xx2,查看资源

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

收起
金融其它 · 2012-11-02
浏览1347
yinxinyinxin系统管理员银信长远
四、重新配置HACMP1.删除资源组执行:smit hacmp Extended ConfigurationExtended Resource ConfigurationHACMP Extended Resources ConfigurationRemove a Resource Group选择ora / ora1 2.删除nodes执行:smit hacmpExtended ConfigurationExtended Topology Configuratio...显示全部
四、
重新配置HACMP1.
删除资源组

执行:smit hacmp


Extended Configuration


Extended Resource Configuration


HACMP Extended Resources Configuration


Remove a Resource Group


选择ora / ora1


2.
删除nodes

执行:smit hacmp


Extended Configuration


Extended Topology Configuration

                         Configure HACMP Nodes


Remove a Node in the HACMP Cluster

3.
删除cluster

执行:smit hacmp


Extended Configuration


Extended Topology Configuration


Configure an HACMP Cluster


Remove an HACMP Cluster

4.
新建cluster

执行:smit hacmp


Extended Configuration


Extended Topology Configuration



Configure an HACMP Cluster



Add/Change/Show an HACMP Cluster


* Cluster Name
[nxdx]
#新建cluster

5.
添加node

执行: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

6.
创建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 []

7.
创建心跳网络

执行: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

8.
检测串口通讯

分别在两台机器输入: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]
+
#选择设备所在节点


10.
创建Applications Servers

执行: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]

11.
创建Service IP

执行: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


12.
创建资源组

执行: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
[]+

收起
金融其它 · 2012-11-02
浏览1443
yinxinyinxin系统管理员银信长远
二、变更前系统准备1.停止HACMP服务执行:smitty clstop * Stop now, on system restart or bothnow+Stop Cluster Services on these nodes[xx2xx1] +BROADCAST cluster shutdown?true+*Select an Action on Resource GroupsMove Resource Groups+ 2.检查HACMP服务是否关...显示全部
二、
变更前系统准备
1.
停止HACMP服务

执行: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.
检查HACMP服务是否关闭

执行:smitty hacmp


Problem Determination Tools


View Current State

执行:lssrc –g cluster



Lssrc –g topsvcs



lssrc -g emsvcs



lsha

当进程状态为inoperative时说明服务已停止,当为active时,说明服务在运行中。

3.
修改网卡IP地址

执行:smit mktcpip ,IP地址如下表修改:


[td=1,1,94]

主机

[td=1,1,54]

网卡

[td=1,1,167]

IP 地址

[td=1,1,147]

子网掩码

[td=1,1,133]

网管


[td=1,2,94]

xx1

[td=1,1,54]

en0

[td=1,1,167]

135.160.24.202

[td=1,1,147]

255.255.255.192

[td=1,1,133]

135.160.24.254


[td=1,1,54]

en1

[td=1,1,167]

172.16.1.11

[td=1,1,147]

255.255.255.192

[td=1,1,133]

135.160.24.254


[td=1,2,94]

xx2

[td=1,1,54]

en0

[td=1,1,167]

172.16.1.12

[td=1,1,147]

255.255.255.192

[td=1,1,133]

135.160.24.254


[td=1,1,54]

en1

[td=1,1,167]

135.160.24.203

[td=1,1,147]

255.255.255.192

[td=1,1,133]

135.160.24.254


4.
修改hosts文件

以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


三、
更新配置1.
更新Service IP

执行: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.
更新boot IP

执行: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。

3.
更新standby 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


收起
金融其它 · 2012-11-02
浏览1350

提问者

yinxin
系统管理员银信长远
擅长领域: 服务器存储虚拟化

相关问题

相关资料

相关文章

问题状态

  • 发布时间:2012-11-02
  • 关注会员:1 人
  • 问题浏览:19088
  • 最近回答:2014-05-30
  • X社区推广