SlideShare a Scribd company logo
1 of 12
Download to read offline
DB2 pureScale
Availability & Recovery
© 2010 IBM CorporationOctober 13, 2010
Aamer Sachedina (aamers@ca.ibm.com)
Kelly Schlamb (kschlamb@ca.ibm.com)
Information Management
Continuous Availability
Protect from infrastructure outages
Automatic workload balancing
Duplexed secondary global lock
© 2009 IBM Corporation2
Automatically recovers from
component failures
Tolerates multiple node failures
Duplexed secondary global lock
and memory manager
Information Management
DB2 Cluster Services Overview
DB2DB2 DB2 DB2 DB2
Integrated DB2 component
Single install as part of DB2 installation
Upgrades and maintenance through DB2 fixpack
© 2009 IBM Corporation3
C
F
DB2 Cluster Services:
Cluster File System
(GPFS)
DB2 Cluster Services:
Cluster Manager (RSCT) Cluster Automation (Tivoli SA MP)
DB2DB2 DB2 DB2 DB2
C
F
Information Management
DB2 Cluster Services
DB2 Cluster Services
Reliable Scalable Cluster Technology
Tivoli Systems Automation for Multi-Platforms
IBM General Parallel File System
© 2009 IBM Corporation4
DB2 CS tightly integrates these IBM products into DB2
pureScale
DB2 instance creation creates RSCT and GPFS domains
across hosts
Single command used to add hosts to the instance:
db2iupdt –add -m newhost.acme.com db2inst1
Information Management
DB2 pureScale HA Architecture
Member
DB2 CS
Member
DB2 CS
Member
DB2 CS
Member
DB2 CS
© 2009 IBM Corporation5
Cluster Interconnect
GPFS
2nd-ary
CS
CS
Primary
Secondary
Information Management
Application Servers
and
DB2 Clients
Virtually Instantaneous Recovery From Node Failure
Protect from
infrastructure
related outages
– Automatically
redistribute workload to
© 2009 IBM Corporation6
redistribute workload to
surviving nodes
– Automatically recover
in-flight transactions in
as little as 15-20
seconds including
detection
of the problem
Information Management
Minimize the Impact of Planned Outages
Bring node
Keep your system up
– During OS fixes
– HW updates
– Administration
© 2009 IBM Corporation7
Identify MemberDo Maintenance
Bring node
back online
Information Management
Member Hardware Failure
Clients
Power cord tripped over accidentally
DB2 Cluster Services looses heartbeat
and declares member down
– Informs other members & CF servers
– Fences member from logs and data
– Initiates automated member restart on another
(“guest”) host
> Using reduced, and pre-allocated memory model
– Member restart is like a database crash
recovery in a single system database, but is
much faster
• Redo limited to inflight transactions (due to FAC)
• Benefits from page cache in CF
In the mean-time, client connections
Single Database View
Automatic;
© 2009 IBM Corporation8
Log
CS
CS
DB2
Shared Data
In the mean-time, client connections
are automatically re-routed to healthy
members
– Based on least load (by default), or,
– Pre-designated failover member
Other members remain fully available
throughout – “Online Failover”
– Primary retains update locks held by member
at the time of failure
– Other members can continue to read and
update data not locked for write access by
failed member
Member restart completes
– Retained locks released and all data fully
available
CS
DB2
CS
DB2
CS
Updated Pages
Global Locks
LogLogLog
PrimarySecondary
Updated Pages
Global Locks
CS
DB2
DB2
Ultra Fast;
Online
Almost all data remains available. Affected connections transparently re-routed to other members.
Information Management
Member Failback
ClientsPower restored and system re-
booted
DB2 Cluster Services
automatically detects system
availability
– Informs other members and
Single Database View
© 2009 IBM Corporation9
Log
CS
CS
DB2
Shared Data
– Informs other members and
PowerHA pureScale servers
– Removes fence
– Brings up member on home host
Client connections automatically
re-routed back to member
CS
DB2
CS
CS
Updated Pages
Global Locks
LogLogLog
PrimarySecondary
Updated Pages
Global Locks
CS
DB2
DB2
DB2
Information Management
Member Hardware Failure and Failback
> db2instance -list
ID TYPE STATE HOME_HOST CURRENT_HOST ALERT
0 MEMBER STARTED host0 host0 NO
1 MEMBER STARTED host1 host1 NO
2 MEMBER STARTED host2 host2 NO
3 MEMBER STARTED host3 host3 NO
4 CF PRIMARY host4 host4 NO
5 CF PEER host5 host5 NO
DB2 DB2 DB2 DB2
host1host0 host3host2
> db2instance -list
ID TYPE STATE HOME_HOST CURRENT_HOST ALERT
0 MEMBER STARTED host0 host0 NO
1 MEMBER STARTED host1 host1 NO
2 MEMBER STARTED host2 host2 NO
3 MEMBER RESTARTING host3 host2 NO
4 CF PRIMARY host4 host4 NO
5 CF PEER host5 host5 NOCS
> db2instance -list
ID TYPE STATE HOME_HOST CURRENT_HOST ALERT
0 MEMBER STARTED host0 host0 NO
1 MEMBER STARTED host1 host1 NO
2 MEMBER STARTED host2 host2 NO
3 MEMBER WAITING_FOR_FAILBACK host3 host2 NO
4 CF PRIMARY host4 host4 NO
5 CF PEER host5 host5 NO
© 2009 IBM Corporation10
5 CF PEER host5 host5 NO
HOST_NAME STATE INSTANCE_STOPPED ALERT
host0 ACTIVE NO NO
host1 ACTIVE NO NO
host2 ACTIVE NO NO
host3 ACTIVE NO NO
host4 ACTIVE NO NO
host5 ACTIVE NO NO
0 host0 0 - MEMBER
1 host1 0 - MEMBER
2 host2 0 - MEMBER
3 host3 0 - MEMBER
4 host4 0 - CF
5 host5 0 - CF
db2nodes.cfg
Shared Data
host4
PrimarySecondary
5 CF PEER host5 host5 NO
HOST_NAME STATE INSTANCE_STOPPED ALERT
host0 ACTIVE NO NO
host1 ACTIVE NO NO
host2 ACTIVE NO NO
host3 INACTIVE NO YES
host4 ACTIVE NO NO
host5 ACTIVE NO NO
Log
DB2
CS
LogLogLog
DB2
5 CF PEER host5 host5 NO
HOST_NAME STATE INSTANCE_STOPPED ALERT
host0 ACTIVE NO NO
host1 ACTIVE NO NO
host2 ACTIVE NO NO
host3 INACTIVE NO YES
host4 ACTIVE NO NO
host5 ACTIVE NO NO
host5
Shared Data
Failure Mode
DB2 DB2
DB2 DB2
CF CF
Member
Other
Members
Remain
Online ?
Automatic &
Transparent ? Comments
Only data that was in-
flight on failed member
remains locked temporarily.
Connections to failed
member transparently
Summary : Single Failure
DB2 DB2
DB2 DB2
CF CF
DB2 DB2
DB2 DB2
CF CF
Primary
CF
Secondary
CF
member transparently
move to another member
Momentary “blip” in CF service.
Transparent to members
(In-flight CCF
requests just take a few more
seconds before completing
normally.)
.
Momentary “blip” in CF service.
Transparent to members
(In-flight CF
requests just take a few more
seconds before completing
normally.)
.
DB2 DB2 DB2 DB2
CF CF
Failure Mode
Other
Members
Remain
Online ?
Automatic &
Transparent ? Comments
Only data that was in-
flight on failed members
remains locked temporarily.
Recoveries done in parallel.Connections to failed
member transparently
Summary : Multiple Failures
DB2 DB2 DB2 DB2
CF CF
DB2 DB2 DB2 DB2
CF CF
.
Same as member failure.
Momentary, transparent, “blip”
in CF service.
.
.
Same as member failure.
Momentary, transparent, “blip”
in CF service.
.
member transparently
move to another member
Connections to failed
member transparently
move to another member
Connections to failed
member transparently
move to another member

More Related Content

What's hot

DB2 for z/OS - Starter's guide to memory monitoring and control
DB2 for z/OS - Starter's guide to memory monitoring and controlDB2 for z/OS - Starter's guide to memory monitoring and control
DB2 for z/OS - Starter's guide to memory monitoring and controlFlorence Dubois
 
ALL ABOUT DB2 DSNZPARM
ALL ABOUT DB2 DSNZPARMALL ABOUT DB2 DSNZPARM
ALL ABOUT DB2 DSNZPARMIBM
 
Using Release(deallocate) and Painful Lessons to be learned on DB2 locking
Using Release(deallocate) and Painful Lessons to be learned on DB2 lockingUsing Release(deallocate) and Painful Lessons to be learned on DB2 locking
Using Release(deallocate) and Painful Lessons to be learned on DB2 lockingJohn Campbell
 
DB2 11 for z/OS Migration Planning and Early Customer Experiences
DB2 11 for z/OS Migration Planning and Early Customer ExperiencesDB2 11 for z/OS Migration Planning and Early Customer Experiences
DB2 11 for z/OS Migration Planning and Early Customer ExperiencesJohn Campbell
 
Educational seminar lessons learned from customer db2 for z os health check...
Educational seminar   lessons learned from customer db2 for z os health check...Educational seminar   lessons learned from customer db2 for z os health check...
Educational seminar lessons learned from customer db2 for z os health check...John Campbell
 
DB2 for z/OS and DASD-based Disaster Recovery - Blowing away the myths
DB2 for z/OS and DASD-based Disaster Recovery - Blowing away the mythsDB2 for z/OS and DASD-based Disaster Recovery - Blowing away the myths
DB2 for z/OS and DASD-based Disaster Recovery - Blowing away the mythsFlorence Dubois
 
DB2 for z/OS Real Storage Monitoring, Control and Planning
DB2 for z/OS Real Storage Monitoring, Control and PlanningDB2 for z/OS Real Storage Monitoring, Control and Planning
DB2 for z/OS Real Storage Monitoring, Control and PlanningJohn Campbell
 
High Availability Options for DB2 Data Centre
High Availability Options for DB2 Data CentreHigh Availability Options for DB2 Data Centre
High Availability Options for DB2 Data Centreterraborealis
 
Universal Table Spaces for DB2 10 for z/OS - IOD 2010 Seesion 1929 - favero
 Universal Table Spaces for DB2 10 for z/OS - IOD 2010 Seesion 1929 - favero Universal Table Spaces for DB2 10 for z/OS - IOD 2010 Seesion 1929 - favero
Universal Table Spaces for DB2 10 for z/OS - IOD 2010 Seesion 1929 - faveroWillie Favero
 
DB2 for z/OS Bufferpool Tuning win by Divide and Conquer or Lose by Multiply ...
DB2 for z/OS Bufferpool Tuning win by Divide and Conquer or Lose by Multiply ...DB2 for z/OS Bufferpool Tuning win by Divide and Conquer or Lose by Multiply ...
DB2 for z/OS Bufferpool Tuning win by Divide and Conquer or Lose by Multiply ...John Campbell
 
Db2 for z os trends
Db2 for z os trendsDb2 for z os trends
Db2 for z os trendsCuneyt Goksu
 
Efficient Monitoring & Tuning of Dynamic SQL in DB2 for z/OS by Namik Hrle ...
Efficient Monitoring & Tuning of Dynamic SQL in DB2 for z/OS  by  Namik Hrle ...Efficient Monitoring & Tuning of Dynamic SQL in DB2 for z/OS  by  Namik Hrle ...
Efficient Monitoring & Tuning of Dynamic SQL in DB2 for z/OS by Namik Hrle ...Surekha Parekh
 
Best Practices For Optimizing DB2 Performance Final
Best Practices For Optimizing DB2 Performance FinalBest Practices For Optimizing DB2 Performance Final
Best Practices For Optimizing DB2 Performance FinalDatavail
 

What's hot (14)

DB2 for z/OS - Starter's guide to memory monitoring and control
DB2 for z/OS - Starter's guide to memory monitoring and controlDB2 for z/OS - Starter's guide to memory monitoring and control
DB2 for z/OS - Starter's guide to memory monitoring and control
 
ALL ABOUT DB2 DSNZPARM
ALL ABOUT DB2 DSNZPARMALL ABOUT DB2 DSNZPARM
ALL ABOUT DB2 DSNZPARM
 
Using Release(deallocate) and Painful Lessons to be learned on DB2 locking
Using Release(deallocate) and Painful Lessons to be learned on DB2 lockingUsing Release(deallocate) and Painful Lessons to be learned on DB2 locking
Using Release(deallocate) and Painful Lessons to be learned on DB2 locking
 
DB2 11 for z/OS Migration Planning and Early Customer Experiences
DB2 11 for z/OS Migration Planning and Early Customer ExperiencesDB2 11 for z/OS Migration Planning and Early Customer Experiences
DB2 11 for z/OS Migration Planning and Early Customer Experiences
 
Educational seminar lessons learned from customer db2 for z os health check...
Educational seminar   lessons learned from customer db2 for z os health check...Educational seminar   lessons learned from customer db2 for z os health check...
Educational seminar lessons learned from customer db2 for z os health check...
 
DB2 for z/OS and DASD-based Disaster Recovery - Blowing away the myths
DB2 for z/OS and DASD-based Disaster Recovery - Blowing away the mythsDB2 for z/OS and DASD-based Disaster Recovery - Blowing away the myths
DB2 for z/OS and DASD-based Disaster Recovery - Blowing away the myths
 
DB2 for z/OS Real Storage Monitoring, Control and Planning
DB2 for z/OS Real Storage Monitoring, Control and PlanningDB2 for z/OS Real Storage Monitoring, Control and Planning
DB2 for z/OS Real Storage Monitoring, Control and Planning
 
IMSDB - DBRC
IMSDB - DBRCIMSDB - DBRC
IMSDB - DBRC
 
High Availability Options for DB2 Data Centre
High Availability Options for DB2 Data CentreHigh Availability Options for DB2 Data Centre
High Availability Options for DB2 Data Centre
 
Universal Table Spaces for DB2 10 for z/OS - IOD 2010 Seesion 1929 - favero
 Universal Table Spaces for DB2 10 for z/OS - IOD 2010 Seesion 1929 - favero Universal Table Spaces for DB2 10 for z/OS - IOD 2010 Seesion 1929 - favero
Universal Table Spaces for DB2 10 for z/OS - IOD 2010 Seesion 1929 - favero
 
DB2 for z/OS Bufferpool Tuning win by Divide and Conquer or Lose by Multiply ...
DB2 for z/OS Bufferpool Tuning win by Divide and Conquer or Lose by Multiply ...DB2 for z/OS Bufferpool Tuning win by Divide and Conquer or Lose by Multiply ...
DB2 for z/OS Bufferpool Tuning win by Divide and Conquer or Lose by Multiply ...
 
Db2 for z os trends
Db2 for z os trendsDb2 for z os trends
Db2 for z os trends
 
Efficient Monitoring & Tuning of Dynamic SQL in DB2 for z/OS by Namik Hrle ...
Efficient Monitoring & Tuning of Dynamic SQL in DB2 for z/OS  by  Namik Hrle ...Efficient Monitoring & Tuning of Dynamic SQL in DB2 for z/OS  by  Namik Hrle ...
Efficient Monitoring & Tuning of Dynamic SQL in DB2 for z/OS by Namik Hrle ...
 
Best Practices For Optimizing DB2 Performance Final
Best Practices For Optimizing DB2 Performance FinalBest Practices For Optimizing DB2 Performance Final
Best Practices For Optimizing DB2 Performance Final
 

Viewers also liked

Episode 2 DB2 pureScale Installation, Instance Management & Monitoring
Episode 2 DB2 pureScale Installation, Instance Management & MonitoringEpisode 2 DB2 pureScale Installation, Instance Management & Monitoring
Episode 2 DB2 pureScale Installation, Instance Management & MonitoringLaura Hood
 
Herd your chickens: Ansible for DB2 configuration management
Herd your chickens: Ansible for DB2 configuration managementHerd your chickens: Ansible for DB2 configuration management
Herd your chickens: Ansible for DB2 configuration managementFrederik Engelen
 
A DBA’s guide to using TSA
A DBA’s guide to using TSAA DBA’s guide to using TSA
A DBA’s guide to using TSAFrederik Engelen
 
UKGSE DB2 pureScale
UKGSE DB2 pureScaleUKGSE DB2 pureScale
UKGSE DB2 pureScaleLaura Hood
 
DB2 V 10 HADR Multiple Standby
DB2 V 10 HADR Multiple StandbyDB2 V 10 HADR Multiple Standby
DB2 V 10 HADR Multiple StandbyDale McInnis
 
Blue Coat Internet Gateway
Blue Coat Internet GatewayBlue Coat Internet Gateway
Blue Coat Internet GatewayItalo Daffra
 

Viewers also liked (9)

Episode 2 DB2 pureScale Installation, Instance Management & Monitoring
Episode 2 DB2 pureScale Installation, Instance Management & MonitoringEpisode 2 DB2 pureScale Installation, Instance Management & Monitoring
Episode 2 DB2 pureScale Installation, Instance Management & Monitoring
 
Herd your chickens: Ansible for DB2 configuration management
Herd your chickens: Ansible for DB2 configuration managementHerd your chickens: Ansible for DB2 configuration management
Herd your chickens: Ansible for DB2 configuration management
 
A DBA’s guide to using TSA
A DBA’s guide to using TSAA DBA’s guide to using TSA
A DBA’s guide to using TSA
 
Db2 v10.5 An Overview
Db2 v10.5 An OverviewDb2 v10.5 An Overview
Db2 v10.5 An Overview
 
UKGSE DB2 pureScale
UKGSE DB2 pureScaleUKGSE DB2 pureScale
UKGSE DB2 pureScale
 
DB2 9.7 Overview
DB2 9.7 OverviewDB2 9.7 Overview
DB2 9.7 Overview
 
D02 Evolution of the HADR tool
D02 Evolution of the HADR toolD02 Evolution of the HADR tool
D02 Evolution of the HADR tool
 
DB2 V 10 HADR Multiple Standby
DB2 V 10 HADR Multiple StandbyDB2 V 10 HADR Multiple Standby
DB2 V 10 HADR Multiple Standby
 
Blue Coat Internet Gateway
Blue Coat Internet GatewayBlue Coat Internet Gateway
Blue Coat Internet Gateway
 

Similar to Episode 3 DB2 pureScale Availability And Recovery [Read Only] [Compatibility Mode]

DB2 for z/O S Data Sharing
DB2 for z/O S  Data  SharingDB2 for z/O S  Data  Sharing
DB2 for z/O S Data SharingSurekha Parekh
 
DB2 Design for High Availability and Scalability
DB2 Design for High Availability and ScalabilityDB2 Design for High Availability and Scalability
DB2 Design for High Availability and ScalabilitySurekha Parekh
 
DB2UDB_the_Basics Day 4
DB2UDB_the_Basics Day 4DB2UDB_the_Basics Day 4
DB2UDB_the_Basics Day 4Pranav Prakash
 
[db tech showcase Tokyo 2018] #dbts2018 #B17 『オラクル パフォーマンス チューニング - 神話、伝説と解決策』
[db tech showcase Tokyo 2018] #dbts2018 #B17 『オラクル パフォーマンス チューニング - 神話、伝説と解決策』[db tech showcase Tokyo 2018] #dbts2018 #B17 『オラクル パフォーマンス チューニング - 神話、伝説と解決策』
[db tech showcase Tokyo 2018] #dbts2018 #B17 『オラクル パフォーマンス チューニング - 神話、伝説と解決策』Insight Technology, Inc.
 
DB2UDB_the_Basics Day 6
DB2UDB_the_Basics Day 6DB2UDB_the_Basics Day 6
DB2UDB_the_Basics Day 6Pranav Prakash
 
Showdown: IBM DB2 versus Oracle Database for OLTP
Showdown: IBM DB2 versus Oracle Database for OLTPShowdown: IBM DB2 versus Oracle Database for OLTP
Showdown: IBM DB2 versus Oracle Database for OLTPcomahony
 
1049: Best and Worst Practices for Deploying IBM Connections - IBM Connect 2016
1049: Best and Worst Practices for Deploying IBM Connections - IBM Connect 20161049: Best and Worst Practices for Deploying IBM Connections - IBM Connect 2016
1049: Best and Worst Practices for Deploying IBM Connections - IBM Connect 2016panagenda
 
Windows Server 2008 (Active Directory Yenilikleri)
Windows Server 2008 (Active Directory Yenilikleri)Windows Server 2008 (Active Directory Yenilikleri)
Windows Server 2008 (Active Directory Yenilikleri)ÇözümPARK
 
Sql 2012 always on
Sql 2012 always onSql 2012 always on
Sql 2012 always ondilip nayak
 
DBA Basics guide
DBA Basics guideDBA Basics guide
DBA Basics guideazoznasser1
 
Optimize DR and Cloning with Logical Hostnames in Oracle E-Business Suite (OA...
Optimize DR and Cloning with Logical Hostnames in Oracle E-Business Suite (OA...Optimize DR and Cloning with Logical Hostnames in Oracle E-Business Suite (OA...
Optimize DR and Cloning with Logical Hostnames in Oracle E-Business Suite (OA...Andrejs Prokopjevs
 
Debugging IBM Connections for the Impatient Admin - Social Connections VII
Debugging IBM Connections for the Impatient Admin - Social Connections VIIDebugging IBM Connections for the Impatient Admin - Social Connections VII
Debugging IBM Connections for the Impatient Admin - Social Connections VIIMartin Leyrer
 
70-410 Practice Test
70-410 Practice Test70-410 Practice Test
70-410 Practice Testwrailebo
 
Load Balancing, Failover and Scalability with ColdFusion
Load Balancing, Failover and Scalability with ColdFusionLoad Balancing, Failover and Scalability with ColdFusion
Load Balancing, Failover and Scalability with ColdFusionColdFusionConference
 
IBM Lotusphere 2012 Show301: Leveraging the Sametime Proxy to support Mobile ...
IBM Lotusphere 2012 Show301: Leveraging the Sametime Proxy to support Mobile ...IBM Lotusphere 2012 Show301: Leveraging the Sametime Proxy to support Mobile ...
IBM Lotusphere 2012 Show301: Leveraging the Sametime Proxy to support Mobile ...William Holmes
 
Connect2013 id506 hadr ideas for social business
Connect2013 id506 hadr ideas for social businessConnect2013 id506 hadr ideas for social business
Connect2013 id506 hadr ideas for social businessLuis Guirigay
 
TWS 8.6 new features (from the 2013 European Tour)
TWS 8.6 new features (from the 2013 European Tour)TWS 8.6 new features (from the 2013 European Tour)
TWS 8.6 new features (from the 2013 European Tour)Nico Chillemi
 

Similar to Episode 3 DB2 pureScale Availability And Recovery [Read Only] [Compatibility Mode] (20)

DB2 for z/O S Data Sharing
DB2 for z/O S  Data  SharingDB2 for z/O S  Data  Sharing
DB2 for z/O S Data Sharing
 
DB2UDB_the_Basics
DB2UDB_the_BasicsDB2UDB_the_Basics
DB2UDB_the_Basics
 
MAINVIEW for DB2.ppt
MAINVIEW for DB2.pptMAINVIEW for DB2.ppt
MAINVIEW for DB2.ppt
 
DB2 Design for High Availability and Scalability
DB2 Design for High Availability and ScalabilityDB2 Design for High Availability and Scalability
DB2 Design for High Availability and Scalability
 
DB2UDB_the_Basics Day 4
DB2UDB_the_Basics Day 4DB2UDB_the_Basics Day 4
DB2UDB_the_Basics Day 4
 
[db tech showcase Tokyo 2018] #dbts2018 #B17 『オラクル パフォーマンス チューニング - 神話、伝説と解決策』
[db tech showcase Tokyo 2018] #dbts2018 #B17 『オラクル パフォーマンス チューニング - 神話、伝説と解決策』[db tech showcase Tokyo 2018] #dbts2018 #B17 『オラクル パフォーマンス チューニング - 神話、伝説と解決策』
[db tech showcase Tokyo 2018] #dbts2018 #B17 『オラクル パフォーマンス チューニング - 神話、伝説と解決策』
 
DB2UDB_the_Basics Day 6
DB2UDB_the_Basics Day 6DB2UDB_the_Basics Day 6
DB2UDB_the_Basics Day 6
 
Showdown: IBM DB2 versus Oracle Database for OLTP
Showdown: IBM DB2 versus Oracle Database for OLTPShowdown: IBM DB2 versus Oracle Database for OLTP
Showdown: IBM DB2 versus Oracle Database for OLTP
 
1049: Best and Worst Practices for Deploying IBM Connections - IBM Connect 2016
1049: Best and Worst Practices for Deploying IBM Connections - IBM Connect 20161049: Best and Worst Practices for Deploying IBM Connections - IBM Connect 2016
1049: Best and Worst Practices for Deploying IBM Connections - IBM Connect 2016
 
Windows Server 2008 (Active Directory Yenilikleri)
Windows Server 2008 (Active Directory Yenilikleri)Windows Server 2008 (Active Directory Yenilikleri)
Windows Server 2008 (Active Directory Yenilikleri)
 
Sql 2012 always on
Sql 2012 always onSql 2012 always on
Sql 2012 always on
 
DBA Basics guide
DBA Basics guideDBA Basics guide
DBA Basics guide
 
Optimize DR and Cloning with Logical Hostnames in Oracle E-Business Suite (OA...
Optimize DR and Cloning with Logical Hostnames in Oracle E-Business Suite (OA...Optimize DR and Cloning with Logical Hostnames in Oracle E-Business Suite (OA...
Optimize DR and Cloning with Logical Hostnames in Oracle E-Business Suite (OA...
 
Debugging IBM Connections for the Impatient Admin - Social Connections VII
Debugging IBM Connections for the Impatient Admin - Social Connections VIIDebugging IBM Connections for the Impatient Admin - Social Connections VII
Debugging IBM Connections for the Impatient Admin - Social Connections VII
 
Oracle Database 12c : Multitenant
Oracle Database 12c : MultitenantOracle Database 12c : Multitenant
Oracle Database 12c : Multitenant
 
70-410 Practice Test
70-410 Practice Test70-410 Practice Test
70-410 Practice Test
 
Load Balancing, Failover and Scalability with ColdFusion
Load Balancing, Failover and Scalability with ColdFusionLoad Balancing, Failover and Scalability with ColdFusion
Load Balancing, Failover and Scalability with ColdFusion
 
IBM Lotusphere 2012 Show301: Leveraging the Sametime Proxy to support Mobile ...
IBM Lotusphere 2012 Show301: Leveraging the Sametime Proxy to support Mobile ...IBM Lotusphere 2012 Show301: Leveraging the Sametime Proxy to support Mobile ...
IBM Lotusphere 2012 Show301: Leveraging the Sametime Proxy to support Mobile ...
 
Connect2013 id506 hadr ideas for social business
Connect2013 id506 hadr ideas for social businessConnect2013 id506 hadr ideas for social business
Connect2013 id506 hadr ideas for social business
 
TWS 8.6 new features (from the 2013 European Tour)
TWS 8.6 new features (from the 2013 European Tour)TWS 8.6 new features (from the 2013 European Tour)
TWS 8.6 new features (from the 2013 European Tour)
 

More from Laura Hood

Top 10 DB2 Support Nightmares #10
Top 10 DB2 Support Nightmares  #10Top 10 DB2 Support Nightmares  #10
Top 10 DB2 Support Nightmares #10Laura Hood
 
Top 10 DB2 Support Nightmares #9
Top 10 DB2 Support Nightmares  #9Top 10 DB2 Support Nightmares  #9
Top 10 DB2 Support Nightmares #9Laura Hood
 
Top 10 DB2 Support Nightmares #8
Top 10 DB2 Support Nightmares  #8Top 10 DB2 Support Nightmares  #8
Top 10 DB2 Support Nightmares #8Laura Hood
 
Top 10 DB2 Support Nightmares #7
Top 10 DB2 Support Nightmares  #7 Top 10 DB2 Support Nightmares  #7
Top 10 DB2 Support Nightmares #7 Laura Hood
 
Top 10 db2 support nightmares #6
Top 10 db2 support nightmares #6Top 10 db2 support nightmares #6
Top 10 db2 support nightmares #6Laura Hood
 
Consultancy on Demand - Infographic
Consultancy on Demand - InfographicConsultancy on Demand - Infographic
Consultancy on Demand - InfographicLaura Hood
 
A Time Traveller's Guide to DB2: Technology Themes for 2014 and Beyond
A Time Traveller's Guide to DB2: Technology Themes for 2014 and BeyondA Time Traveller's Guide to DB2: Technology Themes for 2014 and Beyond
A Time Traveller's Guide to DB2: Technology Themes for 2014 and BeyondLaura Hood
 
Top 10 DB2 Support Nightmares #1
Top 10 DB2 Support Nightmares  #1Top 10 DB2 Support Nightmares  #1
Top 10 DB2 Support Nightmares #1Laura Hood
 
Db2 10 memory management uk db2 user group june 2013 [read-only]
Db2 10 memory management   uk db2 user group june 2013 [read-only]Db2 10 memory management   uk db2 user group june 2013 [read-only]
Db2 10 memory management uk db2 user group june 2013 [read-only]Laura Hood
 
DB2 10 Security Enhancements
DB2 10 Security EnhancementsDB2 10 Security Enhancements
DB2 10 Security EnhancementsLaura Hood
 
DbB 10 Webcast #3 The Secrets Of Scalability
DbB 10 Webcast #3   The Secrets Of ScalabilityDbB 10 Webcast #3   The Secrets Of Scalability
DbB 10 Webcast #3 The Secrets Of ScalabilityLaura Hood
 
DB2 10 Webcast #2 - Justifying The Upgrade
DB2 10 Webcast #2  - Justifying The UpgradeDB2 10 Webcast #2  - Justifying The Upgrade
DB2 10 Webcast #2 - Justifying The UpgradeLaura Hood
 
DB2 10 Webcast #1 - Overview And Migration Planning
DB2 10 Webcast #1 - Overview And Migration PlanningDB2 10 Webcast #1 - Overview And Migration Planning
DB2 10 Webcast #1 - Overview And Migration PlanningLaura Hood
 
Time Travelling With DB2 10 For zOS
Time Travelling With DB2 10 For zOSTime Travelling With DB2 10 For zOS
Time Travelling With DB2 10 For zOSLaura Hood
 
DB2DART - DB2Night Show October 2011
DB2DART - DB2Night Show October 2011DB2DART - DB2Night Show October 2011
DB2DART - DB2Night Show October 2011Laura Hood
 
DB2 z/OS & Java - What\'s New?
DB2 z/OS & Java - What\'s New?DB2 z/OS & Java - What\'s New?
DB2 z/OS & Java - What\'s New?Laura Hood
 
Temporal And Other DB2 10 For Z Os Highlights
Temporal And Other DB2 10 For Z Os HighlightsTemporal And Other DB2 10 For Z Os Highlights
Temporal And Other DB2 10 For Z Os HighlightsLaura Hood
 
DB210 Smarter Database IBM Tech Forum 2011
DB210 Smarter Database   IBM Tech Forum 2011DB210 Smarter Database   IBM Tech Forum 2011
DB210 Smarter Database IBM Tech Forum 2011Laura Hood
 
UKCMG DB2 pureScale
UKCMG DB2 pureScaleUKCMG DB2 pureScale
UKCMG DB2 pureScaleLaura Hood
 
Episode 2 Installation Triton Slides
Episode 2 Installation Triton SlidesEpisode 2 Installation Triton Slides
Episode 2 Installation Triton SlidesLaura Hood
 

More from Laura Hood (20)

Top 10 DB2 Support Nightmares #10
Top 10 DB2 Support Nightmares  #10Top 10 DB2 Support Nightmares  #10
Top 10 DB2 Support Nightmares #10
 
Top 10 DB2 Support Nightmares #9
Top 10 DB2 Support Nightmares  #9Top 10 DB2 Support Nightmares  #9
Top 10 DB2 Support Nightmares #9
 
Top 10 DB2 Support Nightmares #8
Top 10 DB2 Support Nightmares  #8Top 10 DB2 Support Nightmares  #8
Top 10 DB2 Support Nightmares #8
 
Top 10 DB2 Support Nightmares #7
Top 10 DB2 Support Nightmares  #7 Top 10 DB2 Support Nightmares  #7
Top 10 DB2 Support Nightmares #7
 
Top 10 db2 support nightmares #6
Top 10 db2 support nightmares #6Top 10 db2 support nightmares #6
Top 10 db2 support nightmares #6
 
Consultancy on Demand - Infographic
Consultancy on Demand - InfographicConsultancy on Demand - Infographic
Consultancy on Demand - Infographic
 
A Time Traveller's Guide to DB2: Technology Themes for 2014 and Beyond
A Time Traveller's Guide to DB2: Technology Themes for 2014 and BeyondA Time Traveller's Guide to DB2: Technology Themes for 2014 and Beyond
A Time Traveller's Guide to DB2: Technology Themes for 2014 and Beyond
 
Top 10 DB2 Support Nightmares #1
Top 10 DB2 Support Nightmares  #1Top 10 DB2 Support Nightmares  #1
Top 10 DB2 Support Nightmares #1
 
Db2 10 memory management uk db2 user group june 2013 [read-only]
Db2 10 memory management   uk db2 user group june 2013 [read-only]Db2 10 memory management   uk db2 user group june 2013 [read-only]
Db2 10 memory management uk db2 user group june 2013 [read-only]
 
DB2 10 Security Enhancements
DB2 10 Security EnhancementsDB2 10 Security Enhancements
DB2 10 Security Enhancements
 
DbB 10 Webcast #3 The Secrets Of Scalability
DbB 10 Webcast #3   The Secrets Of ScalabilityDbB 10 Webcast #3   The Secrets Of Scalability
DbB 10 Webcast #3 The Secrets Of Scalability
 
DB2 10 Webcast #2 - Justifying The Upgrade
DB2 10 Webcast #2  - Justifying The UpgradeDB2 10 Webcast #2  - Justifying The Upgrade
DB2 10 Webcast #2 - Justifying The Upgrade
 
DB2 10 Webcast #1 - Overview And Migration Planning
DB2 10 Webcast #1 - Overview And Migration PlanningDB2 10 Webcast #1 - Overview And Migration Planning
DB2 10 Webcast #1 - Overview And Migration Planning
 
Time Travelling With DB2 10 For zOS
Time Travelling With DB2 10 For zOSTime Travelling With DB2 10 For zOS
Time Travelling With DB2 10 For zOS
 
DB2DART - DB2Night Show October 2011
DB2DART - DB2Night Show October 2011DB2DART - DB2Night Show October 2011
DB2DART - DB2Night Show October 2011
 
DB2 z/OS & Java - What\'s New?
DB2 z/OS & Java - What\'s New?DB2 z/OS & Java - What\'s New?
DB2 z/OS & Java - What\'s New?
 
Temporal And Other DB2 10 For Z Os Highlights
Temporal And Other DB2 10 For Z Os HighlightsTemporal And Other DB2 10 For Z Os Highlights
Temporal And Other DB2 10 For Z Os Highlights
 
DB210 Smarter Database IBM Tech Forum 2011
DB210 Smarter Database   IBM Tech Forum 2011DB210 Smarter Database   IBM Tech Forum 2011
DB210 Smarter Database IBM Tech Forum 2011
 
UKCMG DB2 pureScale
UKCMG DB2 pureScaleUKCMG DB2 pureScale
UKCMG DB2 pureScale
 
Episode 2 Installation Triton Slides
Episode 2 Installation Triton SlidesEpisode 2 Installation Triton Slides
Episode 2 Installation Triton Slides
 

Episode 3 DB2 pureScale Availability And Recovery [Read Only] [Compatibility Mode]

  • 1. DB2 pureScale Availability & Recovery © 2010 IBM CorporationOctober 13, 2010 Aamer Sachedina (aamers@ca.ibm.com) Kelly Schlamb (kschlamb@ca.ibm.com)
  • 2. Information Management Continuous Availability Protect from infrastructure outages Automatic workload balancing Duplexed secondary global lock © 2009 IBM Corporation2 Automatically recovers from component failures Tolerates multiple node failures Duplexed secondary global lock and memory manager
  • 3. Information Management DB2 Cluster Services Overview DB2DB2 DB2 DB2 DB2 Integrated DB2 component Single install as part of DB2 installation Upgrades and maintenance through DB2 fixpack © 2009 IBM Corporation3 C F DB2 Cluster Services: Cluster File System (GPFS) DB2 Cluster Services: Cluster Manager (RSCT) Cluster Automation (Tivoli SA MP) DB2DB2 DB2 DB2 DB2 C F
  • 4. Information Management DB2 Cluster Services DB2 Cluster Services Reliable Scalable Cluster Technology Tivoli Systems Automation for Multi-Platforms IBM General Parallel File System © 2009 IBM Corporation4 DB2 CS tightly integrates these IBM products into DB2 pureScale DB2 instance creation creates RSCT and GPFS domains across hosts Single command used to add hosts to the instance: db2iupdt –add -m newhost.acme.com db2inst1
  • 5. Information Management DB2 pureScale HA Architecture Member DB2 CS Member DB2 CS Member DB2 CS Member DB2 CS © 2009 IBM Corporation5 Cluster Interconnect GPFS 2nd-ary CS CS Primary Secondary
  • 6. Information Management Application Servers and DB2 Clients Virtually Instantaneous Recovery From Node Failure Protect from infrastructure related outages – Automatically redistribute workload to © 2009 IBM Corporation6 redistribute workload to surviving nodes – Automatically recover in-flight transactions in as little as 15-20 seconds including detection of the problem
  • 7. Information Management Minimize the Impact of Planned Outages Bring node Keep your system up – During OS fixes – HW updates – Administration © 2009 IBM Corporation7 Identify MemberDo Maintenance Bring node back online
  • 8. Information Management Member Hardware Failure Clients Power cord tripped over accidentally DB2 Cluster Services looses heartbeat and declares member down – Informs other members & CF servers – Fences member from logs and data – Initiates automated member restart on another (“guest”) host > Using reduced, and pre-allocated memory model – Member restart is like a database crash recovery in a single system database, but is much faster • Redo limited to inflight transactions (due to FAC) • Benefits from page cache in CF In the mean-time, client connections Single Database View Automatic; © 2009 IBM Corporation8 Log CS CS DB2 Shared Data In the mean-time, client connections are automatically re-routed to healthy members – Based on least load (by default), or, – Pre-designated failover member Other members remain fully available throughout – “Online Failover” – Primary retains update locks held by member at the time of failure – Other members can continue to read and update data not locked for write access by failed member Member restart completes – Retained locks released and all data fully available CS DB2 CS DB2 CS Updated Pages Global Locks LogLogLog PrimarySecondary Updated Pages Global Locks CS DB2 DB2 Ultra Fast; Online Almost all data remains available. Affected connections transparently re-routed to other members.
  • 9. Information Management Member Failback ClientsPower restored and system re- booted DB2 Cluster Services automatically detects system availability – Informs other members and Single Database View © 2009 IBM Corporation9 Log CS CS DB2 Shared Data – Informs other members and PowerHA pureScale servers – Removes fence – Brings up member on home host Client connections automatically re-routed back to member CS DB2 CS CS Updated Pages Global Locks LogLogLog PrimarySecondary Updated Pages Global Locks CS DB2 DB2 DB2
  • 10. Information Management Member Hardware Failure and Failback > db2instance -list ID TYPE STATE HOME_HOST CURRENT_HOST ALERT 0 MEMBER STARTED host0 host0 NO 1 MEMBER STARTED host1 host1 NO 2 MEMBER STARTED host2 host2 NO 3 MEMBER STARTED host3 host3 NO 4 CF PRIMARY host4 host4 NO 5 CF PEER host5 host5 NO DB2 DB2 DB2 DB2 host1host0 host3host2 > db2instance -list ID TYPE STATE HOME_HOST CURRENT_HOST ALERT 0 MEMBER STARTED host0 host0 NO 1 MEMBER STARTED host1 host1 NO 2 MEMBER STARTED host2 host2 NO 3 MEMBER RESTARTING host3 host2 NO 4 CF PRIMARY host4 host4 NO 5 CF PEER host5 host5 NOCS > db2instance -list ID TYPE STATE HOME_HOST CURRENT_HOST ALERT 0 MEMBER STARTED host0 host0 NO 1 MEMBER STARTED host1 host1 NO 2 MEMBER STARTED host2 host2 NO 3 MEMBER WAITING_FOR_FAILBACK host3 host2 NO 4 CF PRIMARY host4 host4 NO 5 CF PEER host5 host5 NO © 2009 IBM Corporation10 5 CF PEER host5 host5 NO HOST_NAME STATE INSTANCE_STOPPED ALERT host0 ACTIVE NO NO host1 ACTIVE NO NO host2 ACTIVE NO NO host3 ACTIVE NO NO host4 ACTIVE NO NO host5 ACTIVE NO NO 0 host0 0 - MEMBER 1 host1 0 - MEMBER 2 host2 0 - MEMBER 3 host3 0 - MEMBER 4 host4 0 - CF 5 host5 0 - CF db2nodes.cfg Shared Data host4 PrimarySecondary 5 CF PEER host5 host5 NO HOST_NAME STATE INSTANCE_STOPPED ALERT host0 ACTIVE NO NO host1 ACTIVE NO NO host2 ACTIVE NO NO host3 INACTIVE NO YES host4 ACTIVE NO NO host5 ACTIVE NO NO Log DB2 CS LogLogLog DB2 5 CF PEER host5 host5 NO HOST_NAME STATE INSTANCE_STOPPED ALERT host0 ACTIVE NO NO host1 ACTIVE NO NO host2 ACTIVE NO NO host3 INACTIVE NO YES host4 ACTIVE NO NO host5 ACTIVE NO NO host5 Shared Data
  • 11. Failure Mode DB2 DB2 DB2 DB2 CF CF Member Other Members Remain Online ? Automatic & Transparent ? Comments Only data that was in- flight on failed member remains locked temporarily. Connections to failed member transparently Summary : Single Failure DB2 DB2 DB2 DB2 CF CF DB2 DB2 DB2 DB2 CF CF Primary CF Secondary CF member transparently move to another member Momentary “blip” in CF service. Transparent to members (In-flight CCF requests just take a few more seconds before completing normally.) . Momentary “blip” in CF service. Transparent to members (In-flight CF requests just take a few more seconds before completing normally.) .
  • 12. DB2 DB2 DB2 DB2 CF CF Failure Mode Other Members Remain Online ? Automatic & Transparent ? Comments Only data that was in- flight on failed members remains locked temporarily. Recoveries done in parallel.Connections to failed member transparently Summary : Multiple Failures DB2 DB2 DB2 DB2 CF CF DB2 DB2 DB2 DB2 CF CF . Same as member failure. Momentary, transparent, “blip” in CF service. . . Same as member failure. Momentary, transparent, “blip” in CF service. . member transparently move to another member Connections to failed member transparently move to another member Connections to failed member transparently move to another member