Disaster Recovery
DR Planning
Read aloud is unavailable in this browser.
When Disaster Strikes
On September 11, 2001, Morgan Stanley lost its primary data center at the World Trade Center. Yet within hours, the company resumed trading operations from backup facilities. This wasn't luck—it was the result of meticulous Disaster Recovery (DR) Planning.
Contrast this with countless organizations that have lost years of data, millions in revenue, or even ceased to exist following disasters they could have survived with proper planning. The difference between recovery and ruin often comes down to a single question: Did you plan for this?
Disaster recovery planning is not about preventing disasters—that's often impossible. It's about ensuring your organization can continue operating when the unthinkable happens. For database systems that hold the lifeblood of modern enterprises, DR planning is not optional—it's existential.
By the end of this page, you will understand the complete lifecycle of disaster recovery planning, from initial risk assessment through ongoing maintenance. You'll learn to create DR strategies that balance cost against risk, ensuring your database systems can survive and recover from any disaster scenario.
Understanding Disaster Recovery
Disaster Recovery (DR) is the set of policies, tools, and procedures designed to enable the recovery or continuation of vital technology infrastructure and systems following a natural or human-induced disaster. For database systems specifically, DR encompasses strategies to restore data availability and resume normal database operations after a catastrophic event.
DR vs. High Availability:
It's crucial to distinguish between High Availability (HA) and Disaster Recovery. While related, they address different scenarios:
- High Availability focuses on minimizing planned and unplanned downtime through redundancy and automatic failover, typically within a single data center or region
- Disaster Recovery addresses scenarios where the primary site is completely unavailable, requiring recovery at a geographically separate location
A mature database infrastructure requires both HA for routine resilience and DR for catastrophic scenarios.
| Aspect | High Availability | Disaster Recovery |
|---|---|---|
| Scope | Component/server failures | Site-level disasters |
| Geography | Same site/region | Geographically separate sites |
| Failover time | Seconds to minutes | Minutes to hours |
| Data loss tolerance | Near-zero (synchronous) | Configurable (sync/async) |
| Primary goal | Continuous operation | Business survival |
| Cost model | Always-on redundancy | Standby capacity |
The Disaster Spectrum:
Disasters exist on a spectrum from localized incidents to regional catastrophes. Effective DR planning must account for all scenarios:
- Component Failure — Single disk, server, or network component fails (addressed by HA)
- Rack/Cluster Failure — Multiple related components fail simultaneously
- Data Center Failure — Complete loss of a physical facility (fire, flood, power)
- Regional Disaster — Natural disaster affecting multiple facilities (earthquake, hurricane)
- Extended Outage — Prolonged unavailability due to legal, civil, or infrastructure issues
Your DR plan must specify how each level of disaster triggers specific recovery procedures and resources.
Database failures rarely occur in isolation. A power outage might corrupt storage, which triggers replication failure, which causes application errors, which generates support tickets that overwhelm operations. DR planning must anticipate these cascading effects and address root causes, not just symptoms.
The DR Planning Framework
A comprehensive DR planning framework consists of five interconnected phases that form a continuous improvement cycle. Each phase builds upon the previous and feeds back into ongoing refinement.
Phase 1: Risk Assessment and Business Impact Analysis
Before designing any technical solution, you must understand what you're protecting and why. This phase identifies:
- Critical business processes dependent on database systems
- Potential threats and their likelihood
- Impact of database unavailability on business operations
- Tolerance for data loss and downtime
Phase 2: Strategy Development
Based on the assessment, develop a DR strategy that balances protection against cost. This includes selecting:
- Recovery objectives (RTO/RPO)
- Replication technologies
- DR site type and location
- Staffing and escalation procedures
Phase 3: Implementation
Translate strategy into operational reality through:
- Infrastructure provisioning
- Replication configuration
- Monitoring setup
- Runbook development
Phase 4: Testing and Validation
Validate that the plan actually works through:
- Tabletop exercises
- Simulation tests
- Full failover drills
- Recovery time measurements
Phase 5: Maintenance and Continuous Improvement
Keep the plan current through:
- Regular reviews and updates
- Post-incident analysis
- Technology refresh cycles
- Training and awareness programs
Many organizations treat DR as a one-time project that produces a document filed away and forgotten. Effective DR is a continuous process that evolves with your business, technology, and threat landscape. The plan you created last year may be dangerously obsolete today.
Business Impact Analysis (BIA)
The Business Impact Analysis (BIA) is the foundation of effective DR planning. It quantifies the business consequences of database unavailability, providing the data needed to justify DR investments and prioritize recovery efforts.
Purpose of BIA:
BIA transforms vague concerns about downtime into concrete business metrics:
- Financial Impact: Revenue loss per hour/day of downtime
- Operational Impact: Processes that cannot function without database access
- Legal/Regulatory Impact: Compliance violations and penalties
- Reputational Impact: Customer trust and brand damage
- Contractual Impact: SLA breaches and associated penalties
Key BIA Metrics:
For each critical database, the BIA should establish:
-
Maximum Tolerable Downtime (MTD): The longest period the business can survive without the system before suffering unacceptable consequences
-
Recovery Time Objective (RTO): Target time to restore service (must be less than MTD)
-
Recovery Point Objective (RPO): Maximum acceptable data loss measured in time
-
Work Recovery Time (WRT): Time needed to verify system functionality and catch up on backlog after technical recovery
| System | MTD | Target RTO | Target RPO | Financial Impact/Hour |
|---|---|---|---|---|
| Core Banking Database | 1 hour | 15 minutes | 0 (zero loss) | $2.5M |
| E-Commerce Platform | 4 hours | 1 hour | 5 minutes | $500K |
| Customer CRM | 24 hours | 4 hours | 1 hour | $50K |
| HR/Payroll System | 72 hours | 24 hours | 24 hours | $10K |
| Development Database | 1 week | 72 hours | 24 hours | $2K |
BIA Process Steps:
Step 1: Identify Critical Business Processes
Work with business stakeholders to understand which processes drive revenue, serve customers, or maintain regulatory compliance. Map each process to its database dependencies.
Step 2: Quantify Downtime Impact
For each critical database, calculate:
- Direct revenue loss (e.g., transactions not processed)
- Labour costs during downtime (staff idle or in recovery mode)
- Recovery costs (overtime, emergency contracts)
- Penalty costs (SLA breaches, regulatory fines)
- Opportunity costs (customers who switch to competitors)
Step 3: Establish Recovery Priorities
Not all systems are equally critical. Tier your databases based on business impact:
- Tier 1: Mission-critical, no tolerance for downtime (e.g., trading systems)
- Tier 2: Business-critical, limited downtime acceptable (e.g., customer-facing applications)
- Tier 3: Important but recoverable within days (e.g., reporting systems)
- Tier 4: Non-critical, can be rebuilt if necessary (e.g., development environments)
Step 4: Document Dependencies
Databases don't exist in isolation. Map:
- Upstream dependencies (what must be working for this database to function)
- Downstream dependencies (what fails if this database is unavailable)
- Cross-database dependencies (foreign keys, replication, data feeds)
Technical teams often underestimate business impact or overestimate system importance. Always involve business stakeholders in BIA activities. They provide crucial context about revenue impact, customer expectations, and regulatory requirements that technical teams may not fully understand.
Risk Assessment
While BIA examines the consequences of downtime, Risk Assessment examines the threats that could cause it. Together, they answer: "What could go wrong, how likely is it, and what would it cost?"
Threat Categories:
Database systems face threats from multiple categories:
Natural Disasters:
- Earthquakes, floods, hurricanes, tornadoes
- Fire (natural or structural)
- Extreme weather (heat, cold, storms)
- Pandemic/health emergencies
Technical Failures:
- Hardware failure (servers, storage, network)
- Software bugs (OS, DBMS, application)
- Data corruption (silent or detected)
- Capacity exhaustion (disk, memory, connections)
Human Factors:
- Operator error (misconfigurations, accidental deletion)
- Malicious insiders (data theft, sabotage)
- Skill gaps (improper maintenance, missed issues)
- Process failures (missed backups, expired certificates)
External Threats:
- Cyber attacks (ransomware, DDoS, SQL injection)
- Supply chain disruption (vendor bankruptcy, cloud outages)
- Utility failures (power, telecommunications, cooling)
- Civil disruption (strikes, protests, conflict)
Risk Quantification:
For each identified threat, assess:
Likelihood (Annual Rate of Occurrence - ARO):
- Rare: Less than once in 10 years (0.1)
- Unlikely: Once in 5-10 years (0.15)
- Possible: Once in 2-5 years (0.3)
- Likely: Once per year (1.0)
- Frequent: Multiple times per year (2.0+)
Impact (based on BIA):
- Catastrophic: Business survival threatened
- Major: Significant financial/operational impact
- Moderate: Notable but manageable impact
- Minor: Limited impact, easily recovered
- Negligible: Minimal impact, routine recovery
Risk Priority Number = Likelihood × Impact × Detection Difficulty
This formula helps prioritize which risks demand immediate attention and investment.
| Threat | Likelihood | Impact | Detection | Priority |
|---|---|---|---|---|
| Ransomware Attack | Likely | Catastrophic | Medium | Critical |
| Hardware Failure | Likely | Moderate | Easy | High |
| Operator Error | Frequent | Moderate | Medium | High |
| Regional Disaster | Rare | Catastrophic | Easy | High |
| Silent Corruption | Possible | Major | Hard | High |
| Cloud Provider Outage | Possible | Major | Easy | Medium |
| Power Outage | Possible | Moderate | Easy | Medium |
| Network Partition | Possible | Minor | Easy | Low |
The most insidious threat is silent data corruption—errors that go undetected until they've propagated to backups. By the time you discover the problem, your recovery options may be limited. This is why integrity checking and point-in-time recovery capabilities are essential components of DR planning.
DR Strategy Components
A complete DR strategy for database systems encompasses multiple interrelated components. Each must be designed, implemented, and maintained as part of a cohesive plan.
Component 1: Data Protection
This addresses how data is copied and preserved:
- Backup Strategy: Full, incremental, and differential backup schedules
- Replication Strategy: Synchronous, asynchronous, or semi-synchronous replication
- Archive Strategy: Long-term retention for compliance and historical analysis
- Encryption: Protection for data at rest and in transit
Component 2: Infrastructure
This addresses where recovery occurs:
- DR Site Selection: Hot, warm, or cold standby facilities
- Network Connectivity: Dedicated links, VPNs, or internet-based
- Compute Resources: Physical servers, virtual machines, or cloud instances
- Storage Systems: Replicated storage, cloud storage, or tape archives
Component 3: Process and Procedures
This addresses how recovery is executed:
- Runbooks: Step-by-step procedures for common scenarios
- Escalation Paths: Clear chains of command and communication
- Decision Criteria: When to declare disaster and initiate recovery
- Communication Plans: How stakeholders are notified and updated
Component 4: People and Organization
This addresses who performs recovery:
- DR Team Composition: Technical, management, and communication roles
- Training Programs: Ensuring staff can execute procedures under stress
- On-Call Schedules: 24/7 coverage for critical systems
- Vendor Contacts: Pre-established relationships with emergency support
Component 5: Testing and Validation
This addresses how we know it works:
- Test Schedule: Regular exercises at appropriate intervals
- Test Types: Tabletop, simulation, partial failover, full failover
- Success Criteria: Measurable outcomes that validate readiness
- Improvement Process: Incorporating lessons learned
- •Documented RTO/RPO objectives
- •Tiered recovery priorities
- •Tested backup/restore procedures
- •Validated replication configuration
- •Current runbooks and contact lists
- •Regular testing schedule
- •Executive sponsorship and funding
- •Untested backup restores
- •Outdated contact information
- •Missing application dependencies
- •Unclear decision authority
- •Insufficient DR site capacity
- •No practice failovers
- •Forgotten credential updates
DR Documentation
Documentation is the nervous system of DR—without it, even the best-designed strategy fails under pressure. During an actual disaster, stress is high, key personnel may be unavailable, and there's no time for improvisation. Well-structured documentation enables reliable execution.
The DR Documentation Hierarchy:
Level 1: DR Plan (Strategic)
The master document that provides executive overview:
- Purpose and scope of the DR program
- Roles, responsibilities, and governance
- Recovery objectives and priorities
- Activation criteria and authority
- Communication protocols
- Plan maintenance schedule
Level 2: Runbooks (Tactical)
Detailed procedures for specific scenarios:
- Step-by-step recovery instructions
- Decision trees for common situations
- Verification checklists
- Rollback procedures
- Troubleshooting guides
Level 3: Configuration Records (Operational)
Technical reference information:
- System inventories and configurations
- Network diagrams and connection details
- Credential locations (not the credentials themselves)
- Vendor contact information
- License and contract references
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
# DR Runbook: Database Failover to DR Site ## Document Control- Version: 3.2- Last Updated: 2024-01-15- Owner: Database Operations Team- Review Cycle: Quarterly ## Activation CriteriaInitiate this runbook when:1. Primary data center is declared unavailable2. Database cluster health check fails for > 15 minutes3. Directed by Incident Commander or VP Operations ## Pre-Requisites- [ ] DR site network connectivity confirmed- [ ] DR database server accessible via SSH/RDP- [ ] Replication lag < 5 minutes before failure- [ ] Application team notified and standing by ## Recovery Procedure ### Phase 1: Assessment (Estimated: 10 minutes)1.1 Confirm primary site status via: - Monitoring dashboard: https://monitor.corp/dr-status - Network connectivity test: ping primary-db.corp.local - Storage health: check SAN console 1.2 Verify DR site readiness: - Replication status: SELECT * FROM pg_stat_replication; - Last transaction LSN: SELECT pg_last_wal_receive_lsn(); - Application connectivity from DR app servers ### Phase 2: Failover Execution (Estimated: 15 minutes)2.1 Promote DR database to primary: $ pg_ctl promote -D /var/lib/postgresql/data 2.2 Verify promotion success: $ psql -c "SELECT pg_is_in_recovery();" -- Should return 'f' (false) 2.3 Update DNS/load balancer: - Modify DNS: db.corp.com -> dr-db-vip.corp.com - Or update load balancer: [link to procedure] ### Phase 3: Application Recovery (Estimated: 20 minutes)3.1 Notify application teams to restart connections3.2 Verify application connectivity and functionality3.3 Monitor for errors in application logs ### Phase 4: Validation (Estimated: 15 minutes)4.1 Execute validation queries: - Record count verification - Latest transaction timestamp check - Critical data integrity checks 4.2 Confirm with business stakeholders ## Rollback Procedure[If failover must be reversed...] ## Escalation Contacts| Role | Primary | Backup | Phone ||------|---------|--------|-------|| DBA On-Call | [Name] | [Name] | [Phone] || Network Team | [Name] | [Name] | [Phone] || VP Operations | [Name] | [Name] | [Phone] |Keep it simple: If you need more than one sentence to explain a step, break it down. Keep it current: Schedule quarterly reviews at minimum. Keep it accessible: Documentation locked in a facility you can't reach during disaster is useless. Store copies at DR sites and in the cloud. Keep it tested: Every test exercise should use the actual documentation—not institutional knowledge.
DR Governance
DR planning is not purely a technical exercise—it requires organizational governance to ensure sustained investment, clear accountability, and executive support. Without governance, DR programs wither through budget cuts, staff turnover, and competing priorities.
Governance Structure:
Executive Sponsor:
- Provides budget authority and organizational priority
- Champions DR in executive meetings
- Makes final decisions on risk acceptance
- Signs off on DR policy and major changes
DR Coordinator/Manager:
- Owns the DR program day-to-day
- Maintains documentation and schedules
- Coordinates testing activities
- Reports on DR readiness metrics
DR Team:
- Technical staff who execute recovery procedures
- Subject matter experts for specific systems
- Available for on-call rotation during incidents
Business Process Owners:
- Define recovery priorities for their domains
- Validate recovery success during testing
- Participate in BIA reviews
DR Governance Activities:
Regular Reviews:
- Annual comprehensive DR strategy review
- Quarterly DR documentation review
- Monthly DR metrics review
- Post-incident reviews within 72 hours
Testing Cadence:
- Annual full failover test (actual DR invocation)
- Semi-annual simulation exercise (walkthrough with actions)
- Quarterly tabletop exercise (discussion-based)
- Monthly backup restoration verification
Audit and Compliance:
- Internal audit of DR controls annually
- External audit as required by regulations
- Compliance mapping (SOX, HIPAA, PCI-DSS, etc.)
- Evidence collection and retention
Budget and Resource Planning:
- Annual DR budget allocation
- Multi-year capacity planning
- Training budget for DR skills
- Vendor contract management
| Metric | Target | Current | Status |
|---|---|---|---|
| RTO capability (validated) | < 1 hour | 45 minutes | ✅ Green |
| RPO capability (validated) | < 5 minutes | 3 minutes | ✅ Green |
| DR documentation currency | < 90 days old | 45 days | ✅ Green |
| Last full DR test | < 365 days | 290 days | ✅ Green |
| Backup success rate | 99.9% | 99.7% | 🟡 Yellow |
| Replication lag (max) | < 10 seconds | 2 seconds | ✅ Green |
| DR team training current | 100% | 85% | 🟡 Yellow |
| DR site capacity match | 100% | 100% | ✅ Green |
DR programs often succeed because of a single passionate champion. When that person leaves, the program declines. Build institutional commitment through executive sponsorship, documented procedures, and multiple trained personnel. DR should survive any single departure.
KEEP LEARNING
There’s more to understand.
You’re reading the introduction. Create a free account to read the complete lesson, save notes and keep track of your progress.