Sie sind auf Seite 1von 31

HACMP High Availability

Design and Configuration November, 2005

2005 Mt Xia Technical Consulting Group - All Rights Reserved.

Introduction
Scope HACMP Cluster Design HACMP Redundant Architecture HACMP Single Points of Failure (SPOF's) Preparing for HACMP Configuration HACMP Configuration

HACMP Design
2005 Mt Xia Technical Consulting Group - All Rights Reserved.

Scope
Scope This presentation covers HACMP standards, design and concepts in an example environment. This presentation is designed as a step by step procedure for the configuration of a 1-way cascading HACMP cluster running a database and application.

HACMP Design
2005 Mt Xia Technical Consulting Group - All Rights Reserved.

HACMP Cluster Design


1-way Cascading Failover Two Node cluster, both nodes running One active node, one hot-standby node Both nodes running HACMP Active node is running database and application

Second node is waiting to takeover application processing if necessary

HACMP Design
2005 Mt Xia Technical Consulting Group - All Rights Reserved.

HACMP Hot-standby configuration

HACMP Design
2005 Mt Xia Technical Consulting Group - All Rights Reserved.

HACMP Redundant Architecture


Redundant network adapters on each node Gigabit ethernet adapter dedicated to database traffic Gigabit ethernet adapter dedicated to application traffic Gigabit ethernet standby adapter for failover of failed adapter Systems One active node One standby node Power Multiple connections to power source Disk Array Raid 10 level protection of data Application Multiple systems to provide business function

HACMP Design
2005 Mt Xia Technical Consulting Group - All Rights Reserved.

HACMP Single Points of Failure

Example SPOF's Network switch (single network design) Switch failure will result in business function outage until switch is fixed or replaced Single storage communication adapter per node Adapter failure will cause node fail over with short outage to business function

HACMP Design
2005 Mt Xia Technical Consulting Group - All Rights Reserved.

Preparing for HACMP Configuration


Identify cluster name and node names Identify boot IP address for database adapter Identify service IP address for database Identify boot IP address for application adapter Identify service IP address for application Identify standby IP address for standby adapter Create boot and service DNS names for database Create boot and service DNS names for application Create standby DNS name Create service DNS alias name for database Create service DNS alias name for application

HACMP Design
2005 Mt Xia Technical Consulting Group - All Rights Reserved.

Preparing for HACMP Configuration (cont)


Review database startup script /usr/local/scripts/whmpctt0_appl01_start.sh Review database shutdown script /usr/local/scripts/whmpctt0_appl01_stop.sh Review application startup script /usr/local/scripts/whmpctt0_appl02_start.sh Review application shutdown script /usr/local/scripts/whmpctt0_appl02_stop.sh

HACMP Design
2005 Mt Xia Technical Consulting Group - All Rights Reserved.

Preparing for HACMP Configuration (cont)


Download all latest fixes for the AIX operating system and HACMP via suma smitty suma Download All latest fixes Commit all applied updates of current system smitty commit Update the AIX operating system and HACMP with all downloaded updates smitty update_all Do not commit updates Save copy Accept all license agreements

HACMP Design
2005 Mt Xia Technical Consulting Group - All Rights Reserved.

Preparing for HACMP Configuration (cont)


Modify /etc/hosts on both nodes to contain IP Addresses Fully Qualified Domain Names (FQDN's) hostnames 172.19.30.17 172.19.30.33 172.19.30.1 172.19.30.2 172.19.30.3 172.19.30.4 172.19.30.5 172.19.30.6 ttc520-1a.mtxia.com ttc520-1b.mtxia.com ttc520-1a-boot.mtxia.com ttc520-1b-boot.mtxia.com ttc520-1c-boot.mtxia.com ttc520-2a-boot.mtxia.com ttc520-2b-boot.mtxia.com ttc520-2c-boot.mtxia.com ttc520-1a ttc520-1b ttc520-1a-boot ttc520-1b-boot ttc520-1c-boot ttc520-2a-boot ttc520-2b-boot ttc520-2c-boot

HACMP Design
2005 Mt Xia Technical Consulting Group - All Rights Reserved.

Preparing for HACMP Configuration (cont)


Modify /.rhosts on both nodes to allow root access via service and boot hostnames (short names) service and boot Fully Qualified Domain Names (FQDN's) Boot IP addresses Service IP addresses
ttc520-1a ttc520-1a.mtxia.com ttc520-1b ttc520-1b.mtxia.com 172.19.30.1 172.19.30.2 ttc520-1a-boot ttc520-1a-boot.mtxia.com ttc520-1b-boot ttc520-1b-boot.mtxia.com 172.19.30.17 172.19.30.33 ttc520-2a-boot ttc520-2a-boot.mtxia.com ttc520-2b-boot ttc520-2b-boot.mtxia.com 172.19.30.4 172.19.30.5 root root root root root root root root root root root root root root root root root root

HACMP Design
2005 Mt Xia Technical Consulting Group - All Rights Reserved.

Preparing for HACMP Configuration (cont)


Modify /etc/netsvc.confon both nodes to resolve in the following order Local Bind

hosts = local, bind

HACMP Design
2005 Mt Xia Technical Consulting Group - All Rights Reserved.

Preparing for HACMP Configuration (cont)


Modify /usr/es/sbin/cluster/etc/rhosts on both nodes to contain the following service names for all resource groups in cluster boot names for both nodes in cluster

ttc520-1a ttc520-1a-boot ttc520-1b ttc520-1b-boot ttc520-2a-boot ttc520-2b-boot

HACMP Design
2005 Mt Xia Technical Consulting Group - All Rights Reserved.

HACMP Configuration

Create cluster and identify participating nodes smitty hacmp Initialization and Standard Configuration Add Nodes to an HACMP Cluster Cluster name: ttc520-cl01 Node names: ttc520-1 ttc520-2

HACMP Design
2005 Mt Xia Technical Consulting Group - All Rights Reserved.

HACMP Configuration

Create service IP labels smitty hacmp Initialization and Standard Configuration Configure Resources to Make Highly Available Add a Service IP/Label Address IP/Label Address: ttc520-1a Network Name: Press F4 and Select

HACMP Design
2005 Mt Xia Technical Consulting Group - All Rights Reserved.

HACMP Configuration

Synchronize the HACMP configuration to ensure correctness up to this point. smitty hacmp Extended Configuration Extended Verification and Synchronizatoin

HACMP Design
2005 Mt Xia Technical Consulting Group - All Rights Reserved.

HACMP Configuration

Create resource group for database and application volume groups smitty hacmp Extended Configuration Extended Resource Configuration HACMP Extended Resource Group Configuration Add a Resource Group Resource Group Name: whmpctt0 Participating Nodes: ttc520-1a ttc520-2a Startup Policy: Online on Home Node Only Fallover Policy: Fallover to Next Priority Node Fallback Policy: Fallback to Higher Priority Node

HACMP Design
2005 Mt Xia Technical Consulting Group - All Rights Reserved.

HACMP Configuration

Create resource group for the database service IP label smitty hacmp Extended Configuration Extended Resource Configuration HACMP Extended Resource Group Configuration Add a Resource Group Resource Group Name: whmpctta Participating Nodes: ttc520-1a ttc520-2a Startup Policy: Online on Home Node Only Fallover Policy: Fallover to Next Priority Node Fallback Policy: Fallback to Higher Priority Node

HACMP Design
2005 Mt Xia Technical Consulting Group - All Rights Reserved.

HACMP Configuration

Create resource group for the application service IP label smitty hacmp Extended Configuration Extended Resource Configuration HACMP Extended Resource Group Configuration Add a Resource Group Resource Group Name: whmpcttb Participating Nodes: ttc520-1a ttc520-2a Startup Policy: Online on Home Node Only Fallover Policy: Fallover to Next Priority Node Fallback Policy: Fallback to Higher Priority Node

HACMP Design
2005 Mt Xia Technical Consulting Group - All Rights Reserved.

HACMP Configuration

Configure the database and application resource group smitty hacmp Extended Configuration Extended Resource Configuration HACMP Extended Resource Group Configuration Change/Show Resources and Attributes... Select from list: whmpctt0 Volume Groups: whmpctt000vg

HACMP Design
2005 Mt Xia Technical Consulting Group - All Rights Reserved.

HACMP Configuration

Configure the database service IP label resource group smitty hacmp Extended Configuration Extended Resource Configuration HACMP Extended Resource Group Configuration Change/Show Resources and Attributes... Select from list: whmpctta Service IP Labels/Addresses: ttc520-1a

HACMP Design
2005 Mt Xia Technical Consulting Group - All Rights Reserved.

HACMP Configuration

Configure the application service IP label resource group smitty hacmp Extended Configuration Extended Resource Configuration HACMP Extended Resource Group Configuration Change/Show Resources and Attributes... Select from list: whmpcttb Service IP Labels/Addresses: ttc520-1b

HACMP Design
2005 Mt Xia Technical Consulting Group - All Rights Reserved.

HACMP Configuration

Arrange resource group activation in the following order whmpctt0 whmpctta whmpcttb This will start up the database and application then activate the database service label, and lastly, activate the application service label

HACMP Design
2005 Mt Xia Technical Consulting Group - All Rights Reserved.

HACMP Configuration

Synchronize the HACMP configuration to ensure correctness up to this point. smitty hacmp Extended Configuration Extended Verification and Synchronization

HACMP Design
2005 Mt Xia Technical Consulting Group - All Rights Reserved.

HACMP Configuration

Add an application server to startup and shutdown the database smitty hacmp Extended Configuration Extended Resource Configuration HACMP Extended Resources Configuration Configure HACMP Applications Configure HACMP Application Servers Add an Application Server Server Name: whmpctt0_appl01 Start Script: /usr/local/scripts/whmpctt0_appl01_start.sh Stop Script: /usr/local/scripts/whmpctt0_appl01_stop.sh

HACMP Design
2005 Mt Xia Technical Consulting Group - All Rights Reserved.

HACMP Configuration

Add an application server to startup and shutdown the application smitty hacmp Extended Configuration Extended Resource Configuration HACMP Extended Resources Configuration Configure HACMP Applications Configure HACMP Application Servers Add an Application Server Server Name: whmpctt0_appl02 Start Script: /usr/local/scripts/whmpctt0_appl02_start.sh Stop Script: /usr/local/scripts/whmpctt0_appl02_stop.sh

HACMP Design
2005 Mt Xia Technical Consulting Group - All Rights Reserved.

HACMP Configuration

Modify the database and interface application resource group to include the application servers smitty hacmp Extended Configuration Extended Resource Configuration HACMP Extended Resource Group Configuration Change/Show Resources and Attributes... Select from List: whmpctt0 Application Servers: whmpctt0_appl01 whmpctt0_appl02

HACMP Design
2005 Mt Xia Technical Consulting Group - All Rights Reserved.

HACMP Configuration

Synchronize the HACMP configuration to ensure correctness up to this point. smitty hacmp Extended Configuration Extended Verification and Synchronization Automatically Correct Errors: Yes

HACMP Design
2005 Mt Xia Technical Consulting Group - All Rights Reserved.

HACMP Configuration

Start HACMP on both nodes, one node at a time, allowing the cluster to stabilize in between smitty hacmp System Management Manage HACMP Services Start Cluster Services Start now, on system restart, or both: now Start Cluster services on these nodes: ttc520-1a Broadcast message at startup: True Startup cluster information daemon: True Reacquire resources after forced down: False Ignore verification errors: False Automatically correct errors...: Interactively

HACMP Design
2005 Mt Xia Technical Consulting Group - All Rights Reserved.

HACMP Configuration

Start HACMP on both nodes, one node at a time, allowing the cluster to stabilize in between smitty hacmp System Management Manage HACMP Services Start Cluster Services Start now, on system restart, or both: now Start Cluster services on these nodes: ttc520-2a Broadcast message at startup: True Startup cluster information daemon: True Reacquire resources after forced down: False Ignore verification errors: False Automatically correct errors...: Interactively

HACMP Design
2005 Mt Xia Technical Consulting Group - All Rights Reserved.

Das könnte Ihnen auch gefallen