幸运彩快三

幸运彩快三官网

/ 幸运彩快三平台网

IBM AIX 6.1上安装hacmp7.1的详细指南

2015-12-19 来源:幸运彩快三平台网

IBM AIX 6.1上安装hacmp7.1的详细指南

1说明

1.1.文档说明

1.2.注意事项

2安装环境

2.1.硬件,带HMC

2.2.软件

3规划

3.1.拓扑结构规划

3.2.应用服务器规划

3.3.资源组规划

4安装步骤

4.1.配置2台小机的IP地址。

4.2.安装Power Ha双机软件,并且升级双机软件。

4.3.编辑/etc/hosts与/etc/cluster/rhosts文件。

4.4.在主机的终端上输入:smitty hacmp

4.4.1.初始化一个群集

4.4.2.配置幸运彩快三平台库磁盘

4.4.3.群集和幸运彩快三平台库磁盘创建完成后,可以先同步下双机。

4.4.4.在幸运彩快三平台上分别映射2块数据盘过来,然后在HA主备机里面执行cfgmgr –v命令。

4.4.5.建立Persistent Node IP Addresses

4.4.6.创建资源组

4.4.7.配置服务IP

4.4.8.配置应用程序启停脚本

4.4.9.使双机可以发现幸运彩快三平台映射过去的磁盘

4.4.10. 幸运彩快三平台映射过去的盘添加到双机资源组中

4.4.11. 同步双机配置

5双机的基本操作

5.1.双机的启动

5.2.双机的停止

5.3.双机状态的查看

5.4.保存snapshot

6双机的切换测试

6.1.手工停服务器测试

6.2.切换资源组

6.2.1.Smitty cspoc

6.2.2.切换应用

6.3.模拟网卡故障测试

6.4.模拟服务器异常宕机测试

7双机的其他操作

7.1.lscluster –d命令

7.2.lscluster –m命令

7.3.usr/es/sbin/cluster/utilities/clmgr query cluster命令

7.4.usr/es/sbin/cluster/utilities/cltopinfo命令

7.5.usr/es/sbin/cluster/utilities/clmgr view report topology命令

7.6.更换心跳磁盘【心跳盘、repository disk】的命令

1. 说明

1.1.文档说明

幸运彩快三本文的环境是在AIX6.1操作系统下安装配置hacmp7.1.1.1的步骤,其它版本的系统安装配置基本类似,不同之处,请参考IBM的官方文档。

1.2.注意事项

幸运彩快三配置hacmp的一些注意事项:

幸运彩快三1.2.1安装的版本要符合数据中心的版本策略要求

幸运彩快三1.2.2安装前要做好规划,了解应用要实现什么样的高可靠性需求

1.2.3HA可以实现排除单点故障,但不是冗余,因此关键部件还要有冗余配置,如电源模块、双HBA卡、rootvg镜像等

幸运彩快三1.2.4配置为HA的主、备节点不能是同一台物理服务器上的两个逻辑分区

1.2.5幸运彩快三平台厂商在HA环境下有定制的磁盘解锁脚本,EMC、HDS幸运彩快三平台,在HA 的add custom disk methods中增加厂商自定义脚本。

幸运彩快三1.2.6编写的应用启停脚本要事先手工执行测试,并且确保停止脚本在系统异常时可以停止应用,以释放资源。

1.2.7HA配置完成后,不要将HA的服务设置为自启动模式,即HA服务的启动,要手工启动

幸运彩快三1.2.8HA配置完成后,要模拟各种故障场景,充分测试接管功能是否正常。

2. 安装环境

2.1.硬件,带HMC

Server1: IBM Power 730(8231 E2C)

Server2: IBM Power 730(8231 E2C)

2.2.软件

2.2.1.OS环境:6100-08-02-1316

2.2.2.HA环境:7.1.1.1

3. 规划

3.1.拓扑结构规划

幸运彩快三net_ether_01规划

群集名称

节点名称

网络名称

Boot Label

Persistent Label

Service Label

幸运彩快三hisserver_cluster

hisserver1

net_ether_01

hisserver1_boot2

幸运彩快三hisserver1_per

hisserver1_service

 

Hisserver2

hisserver2_boot2

幸运彩快三hisserver2_per

幸运彩快三hisserver2_service

3.2.应用服务器规划

应用服务器名称

应用服务器启动脚本路径

幸运彩快三应用服务器停止脚本路径

app1

/usr/es/script/start.sh

/usr/es/script/stop.sh

3.3.资源组规划

资源组名称

参入节点

应用服务器

幸运彩快三Service IP Label

卷组

rg1

hisserver1

app1

hisserver1_service

datavg

 

hisserver2

 

backupvg

4. 安装步骤

4.1.配置2台小机的IP地址。

名称

En0

En2

Hisserver1

10.52.1.1/24

10.52.2.1/24

Hisserver2

10.52.1.2/24

10.52.2.2/24

4.2.安装Power Ha双机软件,并且升级双机软件。

4.3.编辑/etc/hosts与/etc/cluster/rhosts文件。

/etc/hosts

幸运彩快三127.0.0.1loopback localhost

幸运彩快三10.52.1.1hisserver1

幸运彩快三10.52.1.2hisserver2

10.52.2.1hisserver1_boot2

10.52.2.2hisserver2_boot2

172.16.106.2hisserver1_per

幸运彩快三172.16.106.3hisserver2_per

172.16.106.1hisserver1_service

幸运彩快三172.16.106.4hisserver2_service

/etc/cluster/rhosts

hisserver1

hisserver2

hisserver1_boot2

hisserver2_boot2

hisserver1_per

hisserver2_per

4.4.在主机的终端上输入:smitty hacmp

4.4.1.初始化一个群集

4.4.1.1.

幸运彩快三Move cursor to desired item and press Enter.

Cluster Nodes and Networks

Cluster Applications and Resources

System Management (C-SPOC)

幸运彩快三Problem Determination Tools

幸运彩快三Custom Cluster Configuration

幸运彩快三Can't find what you are looking for ?

Not sure where to start ?

4.4.1.2.

幸运彩快三Move cursor to desired item and press Enter.

Initial Cluster Setup (Typical)

幸运彩快三Manage the Cluster

Manage Nodes

幸运彩快三Manage Networks and Network Interfaces

幸运彩快三Discover Network Interfaces and Disks

Verify and Synchronize Cluster Configuration

4.4.1.3.

Move cursor to desired item and press Enter.

幸运彩快三Setup a Cluster, Nodes and Networks

Define Repository Disk and Cluster IP Address

What are the repository disk and cluster IP address ?

4.4.1.4.

幸运彩快三Type or select values in entry fields.

Press Enter AFTER making all desired changes.

幸运彩快三[Entry Fields]

Cluster Namehisserver_cluster

Currently Configured Node(s)  hisserver1 hisserver2

当初始化完成群集之后,群集的网络、网络接口都已经自动配置好了。

幸运彩快三----------------------------------------------info--------------------------------------------------------------------------

---- start ----

幸运彩快三Warning: to complete this configuration, a repository disk must be defined.

幸运彩快三Cluster Name: hisserver_cluster

Cluster Connection Authentication Mode: Standard

Cluster Message Authentication Mode: None

Cluster Message Encryption: None

Use Persistent Labels for Communication: No

幸运彩快三Repository Disk: None

Cluster IP Address:

幸运彩快三There are 2 node(s) and 1 network(s) defined

幸运彩快三NODE hisserver1:

Network net_ether_01

hisserver110.52.1.1

hisserver1_boot210.52.2.1

NODE hisserver2:

幸运彩快三Network net_ether_01

幸运彩快三hisserver2_boot210.52.2.2

hisserver210.52.1.2

幸运彩快三No resource groups defined

幸运彩快三Initializing..

Gathering cluster information, which may take a few minutes...

幸运彩快三Processing...

Storing the following information in file

/usr/es/sbin/cluster/etc/config/clvg_config

幸运彩快三hisserver1:

Hdisk: hdisk0

PVID:  00f874e355ef7a89

VGname:rootvg

VGmajor:10

Conc-capable:No

VGactive:Yes

幸运彩快三Quorum-required:No

hisserver2:

Hdisk: hdisk0

PVID:  00f874e45588e2d4

幸运彩快三VGname:rootvg

VGmajor:10

幸运彩快三Conc-capable:No

VGactive:Yes

Quorum-required:No

幸运彩快三hisserver1:

Hdisk: hdisk1

幸运彩快三PVID:  00f874e3338b7141

幸运彩快三VGname:rootvg

VGmajor:10

Conc-capable:No

VGactive:Yes

Quorum-required:No

幸运彩快三hisserver2:

幸运彩快三Hdisk: hdisk1

幸运彩快三PVID:  00f874e43378f191

VGname:rootvg

VGmajor:10

Conc-capable:No

幸运彩快三VGactive:Yes

幸运彩快三Quorum-required:No

hisserver1:

Hdisk: hdisk2

PVID:  00f874e33239aab1

VGname:None

VGmajor:0

幸运彩快三Conc-capable:No

VGactive:No

幸运彩快三Quorum-required:No

幸运彩快三hisserver2:

Hdisk: hdisk2

PVID:  00f874e33239aab1

幸运彩快三VGname:None

VGmajor:0

Conc-capable:No

VGactive:No

幸运彩快三Quorum-required:No

幸运彩快三FREEMAJORS:51...

幸运彩快三FREEMAJORS:51...

幸运彩快三Warning: There is no cluster found.

cllsclstr: No cluster defined.

cllsclstr: Error reading configuration.

Communication path hisserver1 discovered a new node. Hostname is hisserver1. Adding it to the configuration with Nodename hisserver1.

幸运彩快三Communication path hisserver2 discovered a new node. Hostname is hisserver2. Adding it to the configuration with Nodename hisserver2.

Discovering IP Network Connectivity

Retrieving data from available cluster nodesThis could take a few minutes.

幸运彩快三Start data collection on node hisserver1

Start data collection on node hisserver2

幸运彩快三Collector on node hisserver1 completed

幸运彩快三Collector on node hisserver2 completed

Data collection complete

Completed 10 percent of the verification checks

Completed 20 percent of the verification checks

幸运彩快三Completed 30 percent of the verification checks

幸运彩快三Completed 40 percent of the verification checks

Completed 50 percent of the verification checks

幸运彩快三Completed 60 percent of the verification checks

幸运彩快三Completed 70 percent of the verification checks

幸运彩快三Discovered [6] interfaces

Completed 80 percent of the verification checks

Completed 90 percent of the verification checks

Completed 100 percent of the verification checks

幸运彩快三IP Network Discovery completed normally

Current cluster configuration:

幸运彩快三Discovering Volume Group Configuration

---- end ----

 

4.4.2.配置幸运彩快三平台库磁盘

4.4.2.1.

Move cursor to desired item and press Enter.

Cluster Nodes and Networks

Cluster Applications and Resources

System Management (C-SPOC)

幸运彩快三Problem Determination Tools

幸运彩快三Custom Cluster Configuration

Can't find what you are looking for ?

Not sure where to start ?

4.4.2.2.

幸运彩快三Move cursor to desired item and press Enter.

Initial Cluster Setup (Typical)

Manage the Cluster

Manage Nodes

Manage Networks and Network Interfaces

Discover Network Interfaces and Disks

Verify and Synchronize Cluster Configuration

4.4.2.3.

幸运彩快三Move cursor to desired item and press Enter.

幸运彩快三Setup a Cluster, Nodes and Networks

幸运彩快三Define Repository Disk and Cluster IP Address

幸运彩快三What are the repository disk and cluster IP address ?

4.4.2.4.

Type or select values in entry fields.

Press Enter AFTER making all desired changes.

[Entry Fields]

ClusterName  hisserver_cluster

幸运彩快三Repository Diskhdisk2

Cluster IP Address  228.168.1.1

4.4.3.群集和幸运彩快三平台库磁盘创建完成后,可以先同步下双机。

4.4.3.1.

Move cursor to desired item and press Enter.

幸运彩快三Cluster Nodes and Networks

幸运彩快三Cluster Applications and Resources

System Management (C-SPOC)

Problem Determination Tools

Custom Cluster Configuration

Can't find what you are looking for ?

幸运彩快三Not sure where to start ?

4.4.3.2.

幸运彩快三Move cursor to desired item and press Enter.

幸运彩快三Initial Cluster Setup (Typical)

Manage the Cluster

幸运彩快三Manage Nodes

幸运彩快三Manage Networks and Network Interfaces

幸运彩快三Discover Network Interfaces and Disks

Verify and Synchronize Cluster Configuration

同步完成后磁盘情况如下:

# lspv

hdisk0 00f874e355ef7a89  rootvg active

幸运彩快三hdisk1 00f874e3338b7141  rootvg active

hdisk2 00f874e33239aab1  caavg_privateactive

4.4.4.在幸运彩快三平台上分别映射2块数据盘过来,然后在HA主备机里面执行cfgmgr –v命令。

# lspv

幸运彩快三hdisk000f874e355ef7a89  rootvgactive

hdisk100f874e3338b7141  rootvgactive

hdisk200f874e33239aab1  caavg_privateactive

hdisk3

hdisk4

幸运彩快三主机上分别执行如下命令:

Chdev –l hdisk3 –a pv=yes

Chdev –l hdisk4 –a pv=yes

/usr/sbin/mkvg -y 'datavg' -s '128' '-f' '-n' -V'53' '-C' hdisk3

幸运彩快三/usr/sbin/mkvg -y 'backupvg' -s '128' '-f' '-n' -V'54' '-C' hdisk4

varyonvg datavg

varyonvg backupvg

幸运彩快三然后通过smitty jfs2建立文件系统。

备机上执行如下命令:

幸运彩快三/usr/sbin/importvg -y 'datavg' hdisk3

幸运彩快三/usr/sbin/importvg -y 'backupvg' hdisk4

4.4.5.建立Persistent Node IP Addresses

4.4.5.1.

Move cursor to desired item and press Enter.

幸运彩快三Cluster Nodes and Networks

幸运彩快三Cluster Applications and Resources

幸运彩快三System Management (C-SPOC)

Problem Determination Tools

幸运彩快三Custom Cluster Configuration

幸运彩快三Can't find what you are looking for ?

幸运彩快三Not sure where to start ?

4.4.5.2.

Move cursor to desired item and press Enter.

Initial Cluster Setup (Typical)

Manage the Cluster

Manage Nodes

幸运彩快三Manage Networks and Network Interfaces

Discover Network Interfaces and Disks

Verify and Synchronize Cluster Configuration

4.4.5.3.

Move cursor to desired item and press Enter.

幸运彩快三Show Topology Information by Node

Add a Node

Change/Show a Node

幸运彩快三Remove a Node

幸运彩快三Configure Persistent Node IP Label/Addresses

幸运彩快三Verify and Synchronize Cluster Configuration

4.4.5.4.

Move cursor to desired item and press Enter.

幸运彩快三Add a Persistent Node IP Label/Address

幸运彩快三Change / Show a Persistent Node IP Label/Address

Remove a Persistent Node IP Label/Address

配置完Persistent IP之后就可以利用Persistent IP登陆了。

4.4.6.创建资源组

4.4.6.1.

幸运彩快三Move cursor to desired item and press Enter.

幸运彩快三Cluster Nodes and Networks

Cluster Applications and Resources

幸运彩快三System Management (C-SPOC)

Problem Determination Tools

Custom Cluster Configuration

幸运彩快三Can't find what you are looking for ?

幸运彩快三Not sure where to start ?

4.4.6.2.

Move cursor to desired item and press Enter.

幸运彩快三Make Applications Highly Available (Use Smart Assists)

Resources

Resource Groups

Verify and Synchronize Cluster Configuration

4.4.6.3.

Move cursor to desired item and press Enter.

幸运彩快三Add a Resource Group

Change/Show Nodes and Policies for a Resource Group

Change/Show Resources and Attributes for a Resource Group

Remove a Resource Group

Configure Resource Group Run-Time Policies

Show All Resources by Node or Resource Group

Verify and Synchronize Cluster Configuration

Learn more about Resource Groups

4.4.6.4.

Type or select values in entry fields.

Press Enter AFTER making all desired changes.

幸运彩快三[Entry Fields]

* Resource Group Name [rg1]

* Participating Nodes (Default Node Priority)[hisserver1 hisserver2]  +

幸运彩快三Startup Policy  Online On First Available Node+

Fallover Policy Fallover To Next Priority Node In The List  +

Fallback Policy Never Fallback 

4.4.7.配置服务IP

执行如下命令:

/usr/es/sbin/cluster/utilities/clmgr add service_ip 'hisserver1_service' NETMASK='255.255.255.0' NETWORK='net_ether_01'

4.4.8.配置应用程序启停脚本

幸运彩快三执行如下 命令:

/usr/es/sbin/cluster/utilities/claddserv -s'app1' -b'/usr/es/script/start.sh' -e'/usr/es/script/stop.sh'

4.4.9.使双机可以发现幸运彩快三平台映射过去的磁盘

4.4.9.1.

幸运彩快三Move cursor to desired item and press Enter.

幸运彩快三Cluster Nodes and Networks

Cluster Applications and Resources

幸运彩快三System Management (C-SPOC)

Problem Determination Tools

Custom Cluster Configuration

幸运彩快三Can't find what you are looking for ?

Not sure where to start ?

4.4.9.2.

幸运彩快三Move cursor to desired item and press Enter.

Initial Cluster Setup (Typical)

幸运彩快三Manage the Cluster

Manage Nodes

幸运彩快三Manage Networks and Network Interfaces

Discover Network Interfaces and Disks

幸运彩快三Verify and Synchronize Cluster Configuration

4.4.10. 幸运彩快三平台映射过去的盘添加到双机资源组中

4.4.10.1.通过smitty hacmp实现

Cluster Nodes and Networks

幸运彩快三Cluster Applications and Resources

System Management (C-SPOC)

幸运彩快三Problem Determination Tools

幸运彩快三Custom Cluster Configuration

Make Applications Highly Available (Use Smart Assists)

Resources

Resource Groups

幸运彩快三Resource Group Name  rg1

Participating Nodes (Default Node Priority)hisserver1 hisserver2

幸运彩快三Startup Policy  Online On First Available Node

幸运彩快三Fallover Policy Fallover To Next Priority Node In The List

Fallback Policy Never Fallback

Service IP Labels/Addresses  [hisserver1_service]  +

Application Controllers [app1]+

幸运彩快三Volume Groups  [datavg backupvg ]+

幸运彩快三Use forced varyon of volume groups, if necessaryfalse+

Automatically Import Volume Groupsfalse+

Filesystems (empty is ALL for VGs specified)[ ] +

Filesystems Consistency Check fsck+

幸运彩快三Filesystems Recovery Methodsequential  +

Filesystems mounted before IP configuredfalse+

Filesystems/Directories to Export (NFSv2/3)[]  +

Filesystems/Directories to Export (NFSv4) []  +

Stable Storage Path (NFSv4)  []  +

Filesystems/Directories to NFS Mount  []  

Network For NFS Mount[]  +

Tape Resources []  +

Raw Disk PVIDs []  +

Primary Workload Manager Class[]  +

Secondary Workload Manager Class []  +

幸运彩快三Miscellaneous Data  []

幸运彩快三WPAR Name  []  +

幸运彩快三User Defined Resources  [ ] +

4.4.10.2.通过执行命令实现

执行如下命令:

/usr/es/sbin/cluster/utilities/claddres -g 'rg1' SERVICE_LABEL='hisserver1_service' APPLICATIONS='app1' VOLUME_GROUP='datavg backupvg' FORCED_VARYON='false' VG_AUTO_IMPORT='false' FILESYSTEM= FSCHECK_TOOL='fsck' RECOVERY_METHOD='sequential' FS_BEFORE_IPADDR='false' EXPORT_FILESYSTEM= EXPORT_FILESYSTEM_V4= STABLE_STORAGE_PATH= MOUNT_FILESYSTEM= NFS_NETWORK= SHARED_TAPE_RESOURCES= DISK= MISC_DATA= WPAR_NAME= USERDEFINED_RESOURCES=

4.4.11. 同步双机配置

4.4.11.1.Smitty hacmp

幸运彩快三Move cursor to desired item and press Enter.

Cluster Nodes and Networks

幸运彩快三Cluster Applications and Resources

System Management (C-SPOC)

幸运彩快三Problem Determination Tools

幸运彩快三Custom Cluster Configuration

Can't find what you are looking for ?

幸运彩快三Not sure where to start ?

4.4.11.2.同步双机配置

幸运彩快三Move cursor to desired item and press Enter.

幸运彩快三Initial Cluster Setup (Typical)

幸运彩快三Manage the Cluster

Manage Nodes

幸运彩快三Manage Networks and Network Interfaces

Discover Network Interfaces and Disks

Verify and Synchronize Cluster Configuration

幸运彩快三---------------------------------------------------info----------------------------------------------------------------

---- start ----

Verification to be performed on the following:

幸运彩快三Cluster Topology

幸运彩快三Cluster Resources

幸运彩快三Verification will interactively correct verification errors.

幸运彩快三Retrieving data from available cluster nodesThis could take a few minutes.

Start data collection on node hisserver1

Start data collection on node hisserver2

幸运彩快三Waiting on node hisserver1 data collection, 15 seconds elapsed

幸运彩快三Waiting on node hisserver2 data collection, 15 seconds elapsed

Collector on node hisserver2 completed

幸运彩快三Collector on node hisserver1 completed

幸运彩快三Data collection complete

幸运彩快三Verifying Cluster Topology...

幸运彩快三Completed 10 percent of the verification checks

幸运彩快三Completed 20 percent of the verification checks

WARNING: There are IP labels known to PowerHA SystemMirror and not listed

幸运彩快三in file /usr/es/sbin/cluster/etc/clhosts.client on node: hisserver1.

Verification can automatically populate this file to be used on a client

node, if executed in auto-corrective mode.

幸运彩快三WARNING: There are IP labels known to PowerHA SystemMirror and not listed

幸运彩快三in file /usr/es/sbin/cluster/etc/clhosts.client on node: hisserver2.

Verification can automatically populate this file to be used on a client

node, if executed in auto-corrective mode.

Starting Corrective Action: cl_topology_modify_clhosts_client_entry.

<01> WARNING: File /usr/es/sbin/cluster/etc/clhosts.client does not exist on node: hisserver1

幸运彩快三<02> WARNING: Backing up /usr/es/sbin/cluster/etc/clhosts.client on node hisserver1 to file /usr/es/sbin/cluster/etc/clhosts.client.11_08_2013: FAIL

<03> Adding entry(s) '172.16.106.1 #hisserver1_service

10.52.2.1  #hisserver1_boot2

10.52.1.1  #hisserver1

172.16.106.2#hisserver1_per

10.52.1.2  #hisserver2

10.52.2.2  #hisserver2_boot2

172.16.106.3#hisserver2_per

' to /usr/es/sbin/cluster/etc/clhosts.client on node hisserver1: PASS

幸运彩快三<04> WARNING: File /usr/es/sbin/cluster/etc/clhosts.client does not exist on node: hisserver2

幸运彩快三<05> WARNING: Backing up /usr/es/sbin/cluster/etc/clhosts.client on node hisserver2 to file /usr/es/sbin/cluster/etc/clhosts.client.11_09_2013: FAIL

<06> Adding entry(s) '172.16.106.1 #hisserver1_service

10.52.2.1  #hisserver1_boot2

10.52.1.1  #hisserver1

172.16.106.2#hisserver1_per

10.52.1.2  #hisserver2

幸运彩快三10.52.2.2  #hisserver2_boot2

172.16.106.3#hisserver2_per

' to /usr/es/sbin/cluster/etc/clhosts.client on node hisserver2: PASS

WARNING: Network option "nonlocsrcroute" is set to 0 on the following nodes:

hisserver1

hisserver2

WARNING: Network option "ipsrcrouterecv" is set to 0 on the following nodes:

hisserver1

hisserver2

幸运彩快三Starting Corrective Action: cl_resource_set_net_option.

幸运彩快三<01> Successfully set network option nonlocsrcroute="1" on node hisserver1

幸运彩快三<02> Successfully set network option ipsrcrouterecv="1" on node hisserver1

幸运彩快三<03> Successfully set network option nonlocsrcroute="1" on node hisserver2

幸运彩快三<04> Successfully set network option ipsrcrouterecv="1" on node hisserver2

幸运彩快三Completed 30 percent of the verification checks

幸运彩快三Verifying clcomd communication, please be patient.

幸运彩快三Verifying multicast communication with mping.

幸运彩快三setsockopt() failed while joining ipv4 multicast group in mping_multicast_join(): Can't assign requested address

幸运彩快三Verifying Cluster Resources...

Completed 40 percent of the verification checks

幸运彩快三setsockopt() failed while joining ipv4 multicast group in mping_multicast_join(): Can't assign requested address

/usr/sbin/mping version 1.1

幸运彩快三Connecting using IPv4.

幸运彩快三WARNING: Application monitors are required for detecting application failures

幸运彩快三in order for PowerHA SystemMirror to recover from themApplication monitors are started

by PowerHA SystemMirror when the resource group in which they participate is activated.

The following application(s), shown with their associated resource group,

do not have an application monitor configured:

Application ServerResource Group

--------------------------------  ---------------------------------

幸运彩快三app1rg1  

Completed 50 percent of the verification checks

Completed 60 percent of the verification checks

Completed 70 percent of the verification checks

WARNING: File collection Configuration_Files does not contain any files.

Completed 80 percent of the verification checks

幸运彩快三Completed 90 percent of the verification checks

幸运彩快三Completed 100 percent of the verification checks

WARNING: Node hisserver1 has cluster.es.nfs.rte installed however grace periods are not fully enabled on this node. Grace periods must be enabled before NFSv4 stable storage can be used.

幸运彩快三PowerHA SystemMirror will attempt to fix this opportunistically when acquiring NFS resources on this node however the change won't take effect until the next time that nfsd is started.

If this warning persists, the administrator should perform the following steps to enable grace periods on hisserver1 at the next planned downtime:

幸运彩快三1. stopsrc -s nfsd

2. smitty nfsgrcperiod

幸运彩快三3. startsrc -s nfsd

WARNING: Node hisserver2 has cluster.es.nfs.rte installed however grace periods are not fully enabled on this node. Grace periods must be enabled before NFSv4 stable storage can be used.

幸运彩快三PowerHA SystemMirror will attempt to fix this opportunistically when acquiring NFS resources on this node however the change won't take effect until the next time that nfsd is started.

If this warning persists, the administrator should perform the following steps to enable grace periods on hisserver2 at the next planned downtime:

1. stopsrc -s nfsd

2. smitty nfsgrcperiod

3. startsrc -s nfsd

幸运彩快三Remember to redo automatic error notification if configuration has changed.

Committing any changes, as required, to all available nodes...

幸运彩快三Adding any necessary PowerHA SystemMirror entries to /etc/inittab and /etc/rc.net for IPAT on node hisserver1.

Adding any necessary PowerHA SystemMirror entries to /etc/inittab and /etc/rc.net for IPAT on node hisserver2.

Verification has completed normally.

---- end ----

-------------------------------------------------info--------------------------------------------------------------

5. 双机的基本操作

5.1.双机的启动

Smitty clstart

5.2.双机的停止

Smitty clstop

5.3.双机状态的查看

/usr/es/sbin/cluster/utilities/clshowsrv -v

5.4.保存snapshot

幸运彩快三/usr/es/sbin/cluster/utilities/clsnapshot -c -i -n'haconf_20131126'  -d 'install_cache'

把.info、.odm下载到本地保存一份

幸运彩快三快照幸运彩快三平台路径:/usr/es/sbin/cluster/snapshots

6. 双机的切换测试

6.1.手工停服务器测试

在当前活动资源组的机器中执行

Smitty clstop

幸运彩快三* Start now, on system restart or bothnow+

幸运彩快三Start Cluster Services on these nodes [hisserver1] +

* Manage Resource GroupsAutomatically+

BROADCAST message at startup? true+

Startup Cluster Information Daemon?true+

Ignore verification errors?false+

幸运彩快三Automatically correct errors found during  Interactively+

cluster start?

幸运彩快三_SPOC_FORCE=Y /usr/es/sbin/cluster/cspoc/fix_args nop cl_rc.cluster '-N' -cspoc-n 'hisserver1' '-A' '-b' '-i'  '-C interactive'

6.2.切换资源组

6.2.1.Smitty cspoc

Storage

PowerHA SystemMirror Services

幸运彩快三Communication Interfaces

Resource Group and Applications

幸运彩快三PowerHA SystemMirror Logs

PowerHA SystemMirror File Collection Management

Security and Users

LDAP

Configure GPFS

幸运彩快三Open a SMIT Session on a Node

6.2.2.切换应用

幸运彩快三Show the Current State of Applications and Resource Groups

Bring a Resource Group Online

Bring a Resource Group Offline

Move Resource Groups to Another Node

Suspend/Resume Application Monitoring

幸运彩快三Application Availability Analysis

6.3.模拟网卡故障测试

6.4.模拟服务器异常宕机测试

7. 双机的其他操作

7.1.lscluster –d命令

幸运彩快三# lscluster -d

Storage Interface Query

幸运彩快三Cluster Name: hisserver_cluster

Cluster UUID: 7c8c4162-487b-11e3-b06b-5cf3fced3726

Number of nodes reporting = 2

幸运彩快三Number of nodes expected = 2

幸运彩快三Node hisserver1

Node UUID = 7c8fb2e8-487b-11e3-b06b-5cf3fced3726

幸运彩快三Number of disks discovered = 1

hdisk2:

State : UP

uDid : 332136005076802810C00900000000000000204214503IBMfcp

幸运彩快三uUid : 867a69f2-31a2-6c10-caa7-72fb7291e5c2

幸运彩快三Site uUid : 51735173-5173-5173-5173-517351735173

Type : REPDISK

Node hisserver2

幸运彩快三Node UUID = 7ca3bf5e-487b-11e3-b06b-5cf3fced3726

幸运彩快三Number of disks discovered = 1

hdisk2:

State : UP

uDid : 332136005076802810C00900000000000000204214503IBMfcp

幸运彩快三uUid : 867a69f2-31a2-6c10-caa7-72fb7291e5c2

幸运彩快三Site uUid : 51735173-5173-5173-5173-517351735173

幸运彩快三Type : REPDISK

#

7.2.lscluster –m命令

幸运彩快三# lscluster -m

Calling node query for all nodes...

Node query number of nodes examined: 2

Node name: hisserver1

Cluster shorthand id for node: 1

UUID for node: 7c8fb2e8-487b-11e3-b06b-5cf3fced3726

State of node: UP  NODE_LOCAL

Smoothed rtt to node: 0

Mean Deviation in network rtt to node: 0

幸运彩快三Number of clusters node is a member in: 1

幸运彩快三CLUSTER NAMESHIDUUID

幸运彩快三hisserver_cluster  07c8c4162-487b-11e3-b06b-5cf3fced3726

SITE NAME SHIDUUID 

幸运彩快三LOCAL 151735173-5173-5173-5173-517351735173

Points of contact for node: 0

----------------------------------------------------------------------------

幸运彩快三Node name: hisserver2

幸运彩快三Cluster shorthand id for node: 2

幸运彩快三UUID for node: 7ca3bf5e-487b-11e3-b06b-5cf3fced3726

State of node: UP

幸运彩快三Smoothed rtt to node: 7

Mean Deviation in network rtt to node: 3

Number of clusters node is a member in: 1

幸运彩快三CLUSTER NAMESHIDUUID

hisserver_cluster  07c8c4162-487b-11e3-b06b-5cf3fced3726

SITE NAME SHIDUUID

幸运彩快三LOCAL 151735173-5173-5173-5173-517351735173

幸运彩快三Points of contact for node: 2

幸运彩快三------------------------------------------

Interface State  ProtocolStatus 

------------------------------------------

en0  UP IPv4none

en2  UP IPv4none

#

7.3./usr/es/sbin/cluster/utilities/clmgr query cluster命令

# /usr/es/sbin/cluster/utilities/clmgr query cluster

幸运彩快三CLUSTER_NAME="hisserver_cluster"

CLUSTER_ID="1576049099"

幸运彩快三STATE="STABLE"

VERSION="7.1.1.1"

幸运彩快三VERSION_NUMBER="13"

幸运彩快三EDITION="STANDARD"

幸运彩快三CLUSTER_IP="228.168.1.1"

幸运彩快三REPOSITORIES="hdisk2"

REPOSITORY_PVIDS="00f874e33239aab1"

UNSYNCED_CHANGES="false"

SECURITY="Standard"

幸运彩快三FC_SYNC_INTERVAL="10"

RG_SETTLING_TIME="0"

RG_DIST_POLICY="node"

MAX_EVENT_TIME="180"

MAX_RG_PROCESSING_TIME="180"

DAILY_VERIFICATION="Enabled"

VERIFICATION_NODE="Default"

VERIFICATION_HOUR="0"

VERIFICATION_DEBUGGING="Enabled"

幸运彩快三LEVEL="DISABLED"

幸运彩快三ALGORITHM=""

GRACE_PERIOD_SEC=""

REFRESH=""

MECHANISM=""

幸运彩快三CERTIFICATE=""

PRIVATE_KEY=""

HEARTBEAT_FREQUENCY="0"

GRACE_PERIOD="0"

#

7.4./usr/es/sbin/cluster/utilities/cltopinfo命令

幸运彩快三# /usr/es/sbin/cluster/utilities/cltopinfo

Cluster Name: hisserver_cluster

Cluster Connection Authentication Mode: Standard

Cluster Message Authentication Mode: None

Cluster Message Encryption: None

Use Persistent Labels for Communication: No

Repository Disk: hdisk2

幸运彩快三Cluster IP Address: 228.168.1.1

There are 2 node(s) and 1 network(s) defined

NODE hisserver1:

幸运彩快三Network net_ether_01

幸运彩快三hisserver1_service  172.16.106.1

hisserver1_boot210.52.2.1

hisserver1  10.52.1.1

NODE hisserver2:

幸运彩快三Network net_ether_01

hisserver1_service  172.16.106.1

hisserver2  10.52.1.2

幸运彩快三hisserver2_boot210.52.2.2

Resource Group rg1

Startup PolicyOnline On First Available Node

Fallover Policy  Fallover To Next Priority Node In The List

幸运彩快三Fallback Policy  Never Fallback

Participating Nodes  hisserver1 hisserver2

Service IP Labelhisserver1_service

#

7.5./usr/es/sbin/cluster/utilities/clmgr view report topology命令

# /usr/es/sbin/cluster/utilities/clmgr view report topology

Cluster Name: hisserver_cluster

Cluster Connection Authentication Mode: Standard

Cluster Message Authentication Mode: None

Cluster Message Encryption: None

幸运彩快三Use Persistent Labels for Communication: No

Repository Disk: hdisk2

幸运彩快三Cluster IP Address: 228.168.1.1

幸运彩快三NODE hisserver1:

Network net_ether_01

hisserver1_service  172.16.106.1

幸运彩快三hisserver1_boot210.52.2.1

hisserver1  10.52.1.1

NODE hisserver2:

Network net_ether_01

hisserver1_service  172.16.106.1

幸运彩快三hisserver2  10.52.1.2

幸运彩快三hisserver2_boot210.52.2.2

NetworkAttribute  Alias  Monitor method  NodeAdapter(s)

net_ether_01public Enable Default monitoring hisserver1 hisserver1_boot2 hisserver1 hisserver1_service

幸运彩快三hisserver2 hisserver2 hisserver2_boot2 hisserver1_service

幸运彩快三Adapter TypeNetworkNet TypeAttribute  NodeIP AddressHardware Address Interface NameGlobal Name  Netmask Alias for HB Prefix Length

幸运彩快三hisserver1_boot2 bootnet_ether_01 ether  public hisserver1 10.52.2.1en2255.255.255.0  24

hisserver1  bootnet_ether_01 ether  public hisserver1 10.52.1.1en0255.255.255.0  24

幸运彩快三hisserver1_serviceservicenet_ether_01 ether  public hisserver1 172.16.106.1 255.255.255.0  24

幸运彩快三hisserver2  bootnet_ether_01 ether  public hisserver2 10.52.1.2en0255.255.255.0  24

幸运彩快三hisserver2_boot2 bootnet_ether_01 ether  public hisserver2 10.52.2.2en2255.255.255.0  24

hisserver1_serviceservicenet_ether_01 ether  public hisserver2 172.16.106.1 255.255.255.0  24

#

7.6.更换心跳磁盘【心跳盘、repository disk】的命令

幸运彩快三clmgr modify cluster <cluster name> REPOSITORY=hdisk2