2015-12-19 13:21:28
来 源
中存储网
双机热备
IBM AIX 6.1上安装hacmp7.1的详细指南,本文的环境是在AIX6.1操作系统下安装配置hacmp7.1.1.1的步骤,其它版本的系统安装配置基本类似,不同之处,请参考IBM的官方文档。

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

声明: 此文观点不代表本站立场;转载须要保留原文链接;版权疑问请联系我们。