幸运彩快三

幸运彩快三官网

/ 幸运彩快三平台网

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