390 likes | 405 Views
A Comparison of VERITAS Replication Technologies. Marty Ward Matt Fairbanks HanCheng Hsiung VERITAS Software. Database Replication Option. Marty Ward VERITAS Software mward@veritas.com. Goals. Without impacting performance, how can I: Backup my production server
E N D
A Comparison of VERITAS Replication Technologies Marty Ward Matt Fairbanks HanCheng Hsiung VERITAS Software
Database Replication Option Marty Ward VERITAS Software mward@veritas.com
Goals • Without impacting performance, how can I: • Backup my production server • Run ERP reports or Decision Support queries • Protect against corruption of my production database • Maintain multiple ONLINE versions of my database for near instant access • When my: • Production systems are overloaded • Operations are 24x7x365
Database Replication Option • Point-in-time Replication • Uses Storage Checkpoints to Track Changed Blocks for Optimal Replication • Maintain Multiple Versions of Database Online for Near Instant Access • Each Storage Checkpoint Corresponds to a Version of the Database at a Point-in-time • Minimal Storage Required for the Changed Blocks
Public Network Private Network Primary Server Secondary Server Applications • Backup/Restore • ERP Report Server • Recover from DB Corruption • Test System • Training System
Public Network Private Network Primary Server Secondary Server A B D H Database Replication Option
Benefit Summary • Saves time and money (less data to move over the network, less data to store on disk) • High Availability of Data • Secondary copies always online • Multiple copies available with minimal extra storage via Storage Checkpoints • Replicated Databases are always accessible Read/Write • Manageability • Can user over LAN or WAN • Customizable parameters
Storage Replicator Matt Fairbanks VERITAS Software
Effects of Disaster • Few organizations that sustain major data loss remain in business • World Trade Center bombing example • University of Texas study • Is your IT organization prepared for a site disaster? How much data would you lose? • Value of the data, not prices, drives storage decisions
“Site” Failures • Power Outage • Broken Telecommunication Links • Natural Disasters • Flood, Hurricane, Tornado, Ice Storm, Earthquake, Fire, Chemical, etc... • Man-made Disasters • Act of War, Terrorism, Fire, Sabotage, etc...
Real-time Replication • Two copies are better than one • Consistent image of application storage • Changes transmitted to secondary site in real time • Entire environment replicated • Foundation for Disaster Recovery
Replication Modes SYNCHRONOUS ASYNCHRONOUS • Maximum data currency (up to date) • May have greater performance impact • Two phase commit across all nodes • Write commit latency across nodes • Maximum performance • Lower overhead than synchronous • Data on secondary may “get behind” • Uses logs to avoid two-phase commit and write latency
Write Order Fidelity SYNCHRONOUS ASYNCHRONOUS Storage Replicator maintains write ordering for complete DATA INTEGRITY/CONSISTENCY at secondary
Storage Replicator for Volume Manager (SRVM) • Block-level mirror of Primary data to Secondary • Synchronous or Async modes • Entire volume replication • Scalable to 32 sites • Storage hardware independent • Complete DBMS support • Part of VxVM (3.0.x) • Auto sync (over wire) • Log overflow protection • Solaris/HP-UX support
Storage Replicator for Volume Manager (SRVM) • Data integrity always maintained at Secondary • Secondary sites may be behind (async) • Log queues write requests in case of • Insufficient network bandwidth • Network failure • Secondary failure • Information on Secondary is not available until promotion
Disaster Recovery • Replicate critical information to a disaster-safe location • Replicate data over WAN • Current data at remote hot site • Replicate entire environment (not just logs) • Data ALWAYS consistent (integrity)
GeoCluster WAN Wide Area Failover/Migration • Total solution based on VERITAS core technology • VM/SRVM, VCS, GeoCluster • Implements “Cluster of Clusters” • Single point of administration for multiple geographically distributed clusters
Comparison of VERITAS Replication Technologies HanCheng Hsiung VERITAS hancheng@VERITAS.com
Outline • Review VERITAS Replication Technologies • Disaster Recovery Solution Consideration • Using VERITAS Data Replication solutions for disaster recovery – Replicating the enterprise database • Comparison of the different VERITAS solutions
VERITAS Replication Technologies • DRO (Database Replication Option) • SRVM (Storage Replicator for Volume Manager) • SRVM + DRO work together
Primary Server Remote Replica Only Changed BlocksSince LastStorage Checkpoint Backup Request to replicate data DRO (Database Replication Option) • Delayed, On-demand based replication of only changed blocks. VERITAS File System with Storage Checkpoints
DRO (Database Replication Option) • Storage Checkpoint • A persistent snapshot of all user files in a VxFS file system at a moment in time. • Track the changed file system blocks between two storage checkpoints • Replica System can be used for a variety of workload (Off-host processing) • Reporting, backup, and data mining • Replica system is always behind the Primary
Primary Server Remote Replica Writes SRVM • Real-time disaster recovery solution • Replicate every write done to a volume to the remote replica system in real-time
SRVM • Fast synchronous replication • One to many replication • Data writes to SRL (Storage Replicator Log) first • Secondary volumes cannot be used during the replication • Support asynchronous replication mode for less critical environment
Disaster Recovery Solution Consideration • How to make up-to-date production data available in the secondary system • Cost to make data available in the secondary system • Time to re-start the production workload on the secondary system • Usability of the secondary system – can the secondary be used while it is standing by ?
Primary Server Remote Replica Network SAP R/3 with Oracle In Solaris 2.6 Disaster Recovery using Data Replication Technologies for enterprise database • A study done in the following environment • Running SAP transactions from client workstation. Use SAP transaction va01 to generate 40,000 sales documents.
Disaster Recovery using Data Replication Technologies for the enterprise database • Different VERITAS replication technologies are used: • SRVM – Replicate entire database instance • DRO + shipping Oracle Archived logs( via remote copy or NFS mounting etc.). Replication interval is set to 16 hours( the entire test time) • Using SRVM and DRO together
Oracle Database Instance • Database Files • On-line redo logs • Control files • Archived logs ( off-line redo logs)
Disaster Recovery using Data Replication Technologies for the enterprise database • Using SRVM and DRO together Copy the online redo logs and control file before the recover SRVM Online Redo logs, archived logs, and Oracle Control file A, C & R D D D A C R DRO Replication Data files Oracle instance D Primary Machine network Secondary Machine
Data Transfer CostTotal Data Replicated during the Test Run • SRVM • 8.59GB (47% online redo logs, 23% archived logs, 28% data files, and 2% control files) • SRVM + DRO • 6.17 GB via SRVM (65% online redo logs, 32% archived logs, and 3% control files) • 351.15 MB via DRO ( all in data files ) • DRO • 351.15 MB via DRO ( all in data files ) • 1.91GB archived log files via remote copy
Extra Disk writes on the Primary • SRVM • 8.59 GB writes to SRL(Storage Replicator Log) • DRO + SRVM • 6.17 GB writes to SRL • DRO • Small amount of data writes while creating storage checkpoints
RecoverabilityHow up to date the data is • SRVM • Up-to-date recoverability • SRVM + DRO • Up-to-date recoverability • DRO • Transactions in the current redo logs will be lost. Transactions in any archived log not yet copy to secondary will be lost.
Speed of Recovery • SRVM • Fast, the only time spent will be the time to mount and possible check all the file systems. Such time can be eliminated if using raw partitions. • SRVM + DRO • Depends on how many archived logs need to replay during the recovery time. The longer the replication interval is, the longer the recovery time will be. • DRO • The recovery time of DRO is similar to SRVM + DRO
Usability of the Secondary system • SRVM • Cannot use the secondary volume directly • SRVM + DRO • Secondary database is always available except when the replication is in progress. • DRO • Secondary database is always available except when the replication is in progress.