310 likes | 992 Views
Introduction. ScopeHACMP ? Cluster Design HACMP ? Redundant ArchitectureHACMP ? Single Points of Failure (SPOF's)Preparing for HACMP ConfigurationHACMP Configuration. Scope. ScopeThis presentation covers HACMP standards, design and concepts in an example environment.This presentation
E N D
1. HACMP – High Availability Design and Configuration
November, 2005
2. Introduction Scope
HACMP – Cluster Design
HACMP – Redundant Architecture
HACMP – Single Points of Failure (SPOF's)
Preparing for HACMP Configuration
HACMP Configuration
3. 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.
4. 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 – Cluster Design
5. HACMP – Hot-standby configuration
6. 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 – Redundant Architecture
7. 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 – Single Points of Failure
8. 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
9. 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
10. 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
11. 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 ttc520-1a.mtxia.com ttc520-1a
172.19.30.33 ttc520-1b.mtxia.com ttc520-1b
172.19.30.1 ttc520-1a-boot.mtxia.com ttc520-1a-boot
172.19.30.2 ttc520-1b-boot.mtxia.com ttc520-1b-boot
172.19.30.3 ttc520-1c-boot.mtxia.com ttc520-1c-boot
172.19.30.4 ttc520-2a-boot.mtxia.com ttc520-2a-boot
172.19.30.5 ttc520-2b-boot.mtxia.com ttc520-2b-boot
172.19.30.6 ttc520-2c-boot.mtxia.com ttc520-2c-boot
12. 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 root
ttc520-1a.mtxia.com root
ttc520-1b root
ttc520-1b.mtxia.com root
172.19.30.1 root
172.19.30.2 root
ttc520-1a-boot root
ttc520-1a-boot.mtxia.com root
ttc520-1b-boot root
ttc520-1b-boot.mtxia.com root
172.19.30.17 root
172.19.30.33 root
ttc520-2a-boot root
ttc520-2a-boot.mtxia.com root
ttc520-2b-boot root
ttc520-2b-boot.mtxia.com root
172.19.30.4 root
172.19.30.5 root
13. Preparing for HACMP Configuration (cont) Modify “/etc/netsvc.conf”on both nodes to resolve in the following order
Local
Bind
hosts = local, bind
14. 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
15. 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 Configuration
16. 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 Configuration
17. Synchronize the HACMP configuration to ensure correctness up to this point.
smitty hacmp
Extended Configuration
Extended Verification and Synchronizatoin HACMP Configuration
18. 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 Configuration
19. 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 Configuration
20. 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 Configuration
21. 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 Configuration
22. 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 Configuration
23. 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 Configuration
24. 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 Configuration
25. Synchronize the HACMP configuration to ensure correctness up to this point.
smitty hacmp
Extended Configuration
Extended Verification and Synchronization HACMP Configuration
26. 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 Configuration
27. 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 Configuration
28. 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 Configuration
29. Synchronize the HACMP configuration to ensure correctness up to this point.
smitty hacmp
Extended Configuration
Extended Verification and Synchronization
Automatically Correct Errors: Yes HACMP Configuration
30. 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 Configuration
31. 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 Configuration