Documente Academic
Documente Profesional
Documente Cultură
Local Replication
Chapter 13
Chapter Objective
After completing this chapter you will be able to: o Discuss local replication and the possible uses of local replicas
What is Replication
o Replica - An exact copy o Replication - The process of reproducing data
o Local replication - Replicating data within the same array or the same data center
REPLICATION
Source
2009 EMC Corporation. All rights reserved.
Replica (Target)
o Fast recovery
o Provide minimal RTO (recovery time objective)
o Decision support
o Use replicas to run decision support operations such as creating a report
o Reduce burden on production volumes
o Testing platform
o To test critical business data or applications
o Data Migration
o Use replicas to do data migration instead of production volumes
2009 EMC Corporation. All rights reserved.
Replication Considerations
o Types of Replica: choice of replica tie back into RPO (recovery point objective)
o Point-in-Time (PIT)
o non zero RPO
o Continuous
o near zero RPO
o Consistency
o Ensuring consistency is primary requirement for all the replication technologies
Understanding Consistency
o Ensure data buffered in the host is properly captured on the disk when replica is created
o Data is buffered in the host before written to disk
o Consistency is required to ensure the usability of replica o Consistency can be achieved in various ways:
o For file Systems
o Offline: Un-mount file system o Online: Flush host buffers
o For Databases
o Offline: Shutdown database
o Online: Database in hot backup mode
o Dependent Write I/O Principle o By Holding I/Os
2009 EMC Corporation. All rights reserved.
Source
Replica
Replica
Consistent
Inconsistent
Consistent
Lesson Summary
Key points covered in this lesson: o Possible uses of local replicas
o Alternate source for backup
o Fast recovery o Decision support o Testing platform o Data Migration
o Recoverability and Consistency o File system and database replication consistency o Dependent write I/O principle
2009 EMC Corporation. All rights reserved.
Host
Logical Volume
Logical Volume
Physical Volume 1
Physical Volume 2
o If host volumes are already storage array LUNs then the added redundancy provided by LVM mirroring is unnecessary
o The devices will have some RAID protection already
o Both replica and source are stored within the same volume group
o Replica cannot be accessed by another host o If server fails, both source and replica would be unavailable
o Requires a fraction of the space used by the original FS o Implemented by either FS itself or by LVM
Prod FS Metadata
1 Data a 2 Data b c 3 Data C d 4 Data D
New writes
N Data N
2009 EMC Corporation. All rights reserved.
Snap FS Metadata BLK 1-0 2-0 3-2 4-1 Bit 1-0 2-0 3-1 4-1
N Data N
2009 EMC Corporation. All rights reserved.
Array Source
Replica
Production Server
2009 EMC Corporation. All rights reserved.
BC Server
o Good for full backup, decision support, development, testing and restore to last PIT
Attached
Read/Write Not Ready
Source
Array
2009 EMC Corporation. All rights reserved.
Target
Source
Array
2009 EMC Corporation. All rights reserved.
Target
Attached/ Synchronization
Detached
Resynchronization
Source = Target
Source Target
Source = Target
Source
Target
Write to Target
Read/Write Read/Write
Source
Target
Source
2009 EMC Corporation. All rights reserved.
Target
o Typically recommended if the changes to the source are less than 30%
Source
Save Location
o Based on the vendor some level of granularity is chosen and a bit map is created (one for source and one for target)
o For example one could choose 32 KB as the granularity o If any change is made to any bit on one 32KB chunk the whole chunk is flagged as changed in the bit map
o For 1GB device, map would only take up 32768/8/1024 = 4KB space
At PIT
Target
After PIT
Source Target
1 0
0 0
0 1
1 1
0 0
1 0
0 0
0 1
0 = unchanged
2009 EMC Corporation. All rights reserved.
1 = changed
Restore/Restart Operation
o Source has a failure
o Logical Corruption o Physical failure of source devices o Failure of Production server
o Solution
o Restore data from target to source
o The restore would typically be done incrementally o Applications can be restarted even before synchronization is complete
Restore/Restart Considerations
o Before a Restore
o Stop all access to the Source and Target devices o Identify target to be used for restore
o Based on RPO and Data Consistency
o Perform Restore
o Pointers to the save location for data was written after PIT
o Thus to perform a restore to an alternate volume the source must be healthy to access data that has not yet been copied over to the target
No impact
At least same as the Small fraction of the At least same as the source source source Not required Only after synchronization and detachment from the source CoFA mode required Full copy not required Required
Accessibility to target
Immediately accessible
Immediately accessible
Source
12:00 P.M.
Point-In-Time
06:00 P.M.
12:00 A.M.
: 12 : 01 : 02 : 03 : 04 : 05 : 06 : 07 : 08 : 09 : 10 : 11 : 12 : 01 : 02 : 03 : 04 : 05 : 06 : 07 : 08 : 09 : 10 : 11 : A.M.
2009 EMC Corporation. All rights reserved.
P.M.
o GUI
Lesson Summary
Key points covered in this lesson: o Replication technologies
o Host based
o LVM based mirroring o File system snapshot
o Array based
o Full volume mirroring o Pointer-based full volume copy
o Pointer-based virtual replica
Chapter Summary
Key points covered in this chapter: o Definition and possible use of local replicas
o What is the key difference between full copy mode and deferred mode?
o What are the considerations when performing restore operations for each array replication technology?
#1 IT company
http://education.EMC.com