Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1945225
  • 博文数量: 424
  • 博客积分: 1291
  • 博客等级: 中尉
  • 技术积分: 2682
  • 用 户 组: 普通用户
  • 注册时间: 2012-08-13 01:34
个人简介

linux oracle 网络安全 编程

文章分类

全部博文(424)

文章存档

2016年(22)

2015年(53)

2014年(57)

2013年(242)

2012年(50)

分类: 服务器与存储

2013-01-23 17:47:21

四、HACMP的安装与配置(1)安装
HACMP软件的安装与AIX基本*作系统选项软件的安装相同,用户可以根据需要选择安装HACMP软件,一般HACMP软件光盘上的内容全选。
smit update_all
选择光驱
默认安装光盘上所有软件(2)配置1、/.rhosts
在两台主机上用VI建立 .rhosts文件,内容为:
m851_svc
m851_stb
m851_boot
m852_svc
m852_stb
m852_boot
在两台机器上分别改变 .rhosts文件的属性:
chmod 644 .rhosts2、/etc/hosts
在两台主机上的/etc/hosts文件中用VI编辑,内容为:
202.168.0.1 m851_svc
196.100.2.11 m851_stb 
172.17.0.1 m851_boot
202.168.0.1 m852_svc 
202.168.0.12 m852_stb
172.17.0.2 m852_boot3、配置网络拓扑结构
smit hacmp:
屏幕显示hacmp菜单:
HACMP
Cluster Configuration
Cluster Services
Cluster System Management
Cluster Recovery Aids
RAS Support
---------- end of screen ----------
选择Cluster Configuration,
Cluster Configuration
Cluster Topology
Cluster Security
Cluster Resources
Cluster Snapshots
Cluster Verification
Cluster Custom Modification
Restore System Default Configuration from Active Configuration
Advanced Performance Tuning Parameters
---------- end of screen ----------
选择Cluster Topology
Cluster Topology
Configure Cluster
Configure Nodes
Configure Networks
Configure Adapters
Configure Sites
Configure Global Networks
Configure Network Modules
Configure Topology Services and Group Services
Show Cluster Topology
Synchronize Cluster Topology
---------- end of screen ----------
选择Configure Cluster
Configure Cluster 
Add a Cluster Definition
Change / Show Cluster Definition
Remove Cluster Definition
---------- end of screen ----------
选择Add a Cluster Definition,并进行配置:
Add a Cluster Definition
[Entry Fields]
**NOTE: Cluster Manager MUST BE RESTARTED
in order for changes to be acknowledged.*** Cluster ID [188](输入) #
* Cluster Name [test](输入)
---------- end of screen ----------
添加成功后返回到Cluster Topology
Cluster Topology
Configure Cluster
Configure Nodes
Configure Networks
Configure Adapters
Configure Sites
Configure Global Networks
Configure Network Modules
Configure Topology Services and Group Services
Show Cluster Topology
Synchronize Cluster Topology
---------- end of screen ----------
选择Configure Nodes
Configure Nodes
Add Cluster Nodes
Change / Show Cluster Node Name
Remove a Cluster Node
---------- end of screen ----------
选择Add Cluster Nodes,并进行配置(添加两个Node,M851、M852):
Add Cluster Nodes
[Entry Fields]
Node Names [m851](输入 Node Name)
---------- end of screen ----------
Add Cluster Nodes
[Entry Fields]
Node Names [m852](输入 Node Name)
---------- end of screen ----------
添加成功后,返回到Cluster Topology
Cluster Topology
Configure Cluster
Configure Nodes
Configure Networks
Configure Adapters
Configure Sites
Configure Global Networks
Configure Network Modules
Configure Topology Services and Group Services
Show Cluster Topology
Synchronize Cluster Topology
---------- end of screen ----------
选择Configure Adapters
Configure Adapters
Adapters on IP-based network
Adapters on Non IP-based network
---------- end of screen ----------
选择Adapters on IP-based network
Adapters on IP-based network 
Discover Current Network Configuration
Add an Adapter
Change / Show an Adapter
Remove an Adapter
---------- end of screen ----------
选择Add an Adapter,配置m851_boot
Add an IP-based Adapter[Entry Fields]
Adapter IP Label m851_boot
New Adapter IP Label [] +
* Network Type [ether] +
* Network Name [test_eth] +
* Network Attribute [public] +
* Adapter Function [boot] +
Adapter IP address [202.168.0.11] 
Adapter Hardware Address [] 
Node Name [m851] +
Netmask [255.255.255.0] +---------- end of screen ----------
配置m851_stb
Add an IP-based Adapter[Entry Fields]
Adapter IP Label m851_stb
New Adapter IP Label [] +
* Network Type [ether] +
* Network Name [test_eth] +
* Network Attribute [public] +
* Adapter Function [standby] +
Adapter IP address [172.17.0.1] 
Adapter Hardware Address [] 
Node Name [m851] +
Netmask [255.255.255.0] +
---------- end of screen ----------
配置m851_svc
Add an IP-based Adapter[Entry Fields]
Adapter IP Label m851_svc
New Adapter IP Label [] +
* Network Type [ether] +
* Network Name [test_eth] +
* Network Attribute [public] +
* Adapter Function [service] +
Adapter IP address [202.168.0.1] 
Adapter Hardware Address [0x0002556affff] 
Node Name [m851] +
Netmask [255.255.255.0] +
---------- end of screen ----------
配置m852_boot
Add an IP-based Adapter[Entry Fields]
Adapter IP Label m852_boot
New Adapter IP Label [] +
* Network Type [ether] +
* Network Name [test_eth] +
* Network Attribute [public] +
* Adapter Function [boot] +
Adapter IP address [202.168.0.12] 
Adapter Hardware Address [] 
Node Name [m852] +
Netmask [255.255.255.0] +
---------- end of screen ----------
配置m852_stb
Add an IP-based Adapter[Entry Fields]
Adapter IP Label m852_stb
New Adapter IP Label [] +
* Network Type [ether] +
* Network Name [test_eth] +
* Network Attribute [public] +
* Adapter Function [standby] +
Adapter IP address [172.17.0.2] 
Adapter Hardware Address [] 
Node Name [m852] +
Netmask [255.255.255.0] +
---------- end of screen ----------
配置m852_svc
Add an IP-based Adapter
[Entry Fields]
Adapter IP Label m852_svc
New Adapter IP Label [] +
* Network Type [ether] +
* Network Name [test_eth] +
* Network Attribute [public] +
* Adapter Function [service] +
Adapter IP address [202.168.0.2] 
Adapter Hardware Address [0x0002556ad9ff] 
Node Name [m852] +
Netmask [255.255.255.0] +
---------- end of screen ----------

4)分别增加TTY在两台主机上:
smit tty
选择:Add a TTY
Add a TTY
Type or select values in entry fields.
Press Enter AFTER making all desired changes.[TOP] [Entry Fields]
TTY tty2
TTY type tty
TTY interface rs232
Description Asynchronous Terminal
Status Available
Location 01-S4-00-00
Parent adapter sa3 
PORT number [0] +
Enable LOGIN disable +
BAUD rate [9600] +
PARITY [none] +
BITS per character [8] +
Number of STOP BITS [1] +
[MORE...35] 在第二台主机上同样方法配置一个TTY。(5)配置心跳线TTY
Cluster Topology
Configure Cluster
Configure Nodes
Configure Networks
Configure Adapters
Configure Sites
Configure Global Networks
Configure Network Modules
Configure Topology Services and Group Services
Show Cluster Topology
Synchronize Cluster Topology
---------- end of screen ----------
选择Configure Adapters
Configure Adapters
Adapters on IP-based network
Adapters on Non IP-based network
---------- end of screen ----------
选择Adapters on Non IP-based network
Adapters on Non IP-based network
Add an Adapter 
Change / Show an Adapter 
Remove an Adapter 
---------- end of screen ----------
选择Add an Adapter,并进行配置
Add an Adapter[Entry Fields]
Adapter Label m851_tty
New Adapter Label []
Network Type [rs232] +
* Network Name [test_tty] +
* Device Name [/dev/tty2]
* Node Name [m851] +
---------- end of screen ----------Add an Adapter[Entry Fields]
Adapter Label m852_tty
New Adapter Label []
Network Type [rs232] +
* Network Name [test_tty] +
* Device Name [/dev/tty3]
* Node Name [m852] +
---------- end of screen ----------(6)配置资源组:
smit hacmp:
屏幕显示hacmp菜单:
HACMP
Cluster Configuration
Cluster Services
Cluster System Management
Cluster Recovery Aids
RAS Support
---------- end of screen ----------
选择Cluster Configuration,
Cluster Configuration
Cluster Topology
Cluster Security
Cluster Resources
Cluster Snapshots
Cluster Verification
Cluster Custom Modification
Restore System Default Configuration from Active Configuration
Advanced Performance Tuning Parameters
---------- end of screen ----------
选择Cluster Resources
Cluster ResourcesDefine Resource Groups
Define Application Servers
Configure Application Monitoring
Define Tape Resources
Define Highly Available Communication Links
Discover Current Volume Group Configuration
Configure Dynamic Node Priority Policies
Change/Show Resources/Attributes for a Resource Group
Cluster Events
Change/Show Run Time Parameters
Change/Show Cluster Lock Manager Resource Allocation
Show Cluster Resources
Synchronize Cluster Resources
---------- end of screen ----------(7)配置应用服务器
选择Define Application Servers
Define Application Servers
Add an Application Server
Change / Show an Application Server 
Remove an Application Server 
---------- end of screen ----------
1.选择Add an Application Server,并进行配置
Add an Application Server
[Entry Fields]
Server Name adata_app
Start script [/usr/sbin/cluster/appserver/startapp1]
Stop script [/usr/sbin/cluster/appserver/stopapp1]
---------- end of screen ----------Add an Application Server
[Entry Fields]
Server Name bdata_app
Start script [/usr/sbin/cluster/appserver/startapp2]
Stop script [/usr/sbin/cluster/appserver/stopapp2]
---------- end of screen ----------2.增加资源组
选择Define Resource Groups
Define Resource Groups
Add a Resource Group
Change / Show a Resource Group
Remove a Resource Group
---------- end of screen ----------
选择Add a Resource Group,并配置两个资源组
Add a Resource Group
[Entry Fields]
Resource Group Name resource1
Node Relationship cascading +
Participating Node Names / Default Node Priority [m851 m852] +
---------- end of screen ----------
Add a Resource Group
[Entry Fields]
Resource Group Name resource2
Node Relationship cascading +
Participating Node Names / Default Node Priority [m852 m851] +
---------- end of screen ----------

阅读(378) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~