This post is more than 5 years old
17 Posts
0
2460
August 8th, 2012 02:00
Mirror view /sync setup for Oracle DB
Hi all,
It is new project requirement. Recently setup one RHEL system per each site. And Configured 4 luns for DB and 1 lun for Archive logs,
To set the mirror view/sync across sites,what would be the best practice..
Create 2 consistency groups ,one for DB luns and one for archive logs ? or shall we go ahead with each lun setup..?
It is setup as Geo-cluster, means VCS mirror view agent will failover automatically if any failures observed in production host....
No Events found!
Storagesavvy
474 Posts
0
August 24th, 2012 10:00
Reading the documentation for VCS 5SP2 it seems that there is no way to guarantee multi-LUN consistency using VCS and MirrorView/Sync. As long as all mirrors are in-sync (normal state) you’d be fine, but if something caused some of the mirrors to become out of sync, while others were still syncing, you’d have data consistency problems if the primary site failed suddenly. Consistency groups would help but you have to use Mirrorview/Async in order for VCS to support it. The scenario when this will matter is if the primary site goes down, while at the same time there was some sort of issue with one of the mirrors causing it to not be in sync. VCS will see that not all of the mirrors were in-sync and will fail to promote the secondary site to come online, waiting for admin action. At that point you’d need to restore from backup or some other copy.
You could probably use scheduled clones or snaps on the target side to create a gold copy. That way if the primary site failed and the mirrors were not all in-sync, you could roll the mirrors back to a known good point in time from the clones or snaps and come online.
The issue with using clones/snaps to guarantee your consistency is the potential of how much data would be lost in that scenario. If you had clones every hour you could lose up to 1 hour of data if you had to roll back. Using MirrorView/Async would get the consistency group functionality but you’d ALWAYS have some data loss in an unplanned disaster. How much depends on how often MV/A updates the secondary copy, which could be as low as a few minutes.
In a coordinated failover, where both arrays are online and seeing each other, VCS will make sure that the failover keeps data consistent, whether using Synch or Async, it’s only the case of sudden primary site outage where VCS can’t guarantee consistency, since it’ can’t ask the primary array to update the secondary before coming online.
Richard J Anderson
AnkitMehta
1.4K Posts
0
August 9th, 2012 14:00
When you mentioned Geo Cluster, I am assuming WAN link is in the picture and distance is large.
Mirrorview/S is not applicable for large distances, for large distances, you will need to use Mirrorview/A.
So if you decide to use Mirrorview/A then set up would be with Consistency Group.
Refer Diagram:
Refer attached Mirrorview knowledge book, Page 40
Something about, Geo Clustering (Googled):
1 Attachment
mirrorview_knowledgebook-flare30-wp.pdf
Ram_Emc
17 Posts
0
August 9th, 2012 19:00
Hi Ankit,
Thanks for reply.. But the distance is not much large.. So it was set up using MV/S already for exisitng geo clusters.
This is new setup.. My point is whether it is MV/S or MV/A, for DB luns to be consistent during failover , we need to create a consistency group and place all the LUNs (DB+Archive) in that group.. Is this setup is correct?
AnkitMehta
1.4K Posts
0
August 10th, 2012 15:00
Mirrorview/A is required for this site. If we are using M/V S during failover it may cause Data Loss or corruption, reason being it a database LUN IOPS will be constant.
Is this a banking sector site?
Storagesavvy
474 Posts
0
August 17th, 2012 12:00
Not sure why there would be data loss/corruption using MV/S. Since it is synchronous, all write IOs are sent to both arrays before acknowledgement to the host, so they are literally mirror images of each other. At a very base level, when using Synchronous mirroring, you almost don't need a consistency group, but it's a good idea anyway. If site A was lost unexpectedly, the failover to site B would look like a power outage as far as database consistency goes. When Oracle restarts on the second array, it will perform transaction replay/rollback as necessary and come online. If the failover is graceful, ie: administrator invoked, then Oracle will stop on one side, VCS will instruct MV/S to promote the target devices, then Oracle will start at the other side. There would be no data loss in this scenario.
You are using VCS, so you are likely using VxVM/VxFS as well right? Be sure ALL LUNs that are part of the LVM group are in a single consistency group. If a single database instance spans multiple LVM volumes, then all of the LUNs for all LVMs involved need to be in the same consistency group. Other LUNs like for Archive Logs, Redo, etc should also be in the consistency group.
This technically applies whether you are using MV/Sync or MV/Async. The consistency group guarantees that every LUN in that group is write-order consistent with each other at the replication target. This is required for ACID compliant databases (Oracle, MSSQL, etc) to recover from a failure.
christopher_ime
2K Posts
0
August 20th, 2012 01:00
I would go as far as suggesting that consistency groups are mandatory even for MV/S. However, Richard, I do get your points about "at a very base level" and "amost don't need". While you provide an example where an entire site goes down, we need to consider individual SP A or B communication failures and to ensure a consistent fracture occurs if for instance one LUN is owned by SP A and another LUN is owned by SP B.
Storagesavvy
474 Posts
0
August 20th, 2012 09:00
Ah.. yes. Totally agree!
Ram_Emc
17 Posts
0
August 24th, 2012 02:00
Thanks for the response.. But it is configured Keeping in mind during SP failure also, consistency should be maintened.
It is well documented in EMC white paper... But the scenario now is:
It is VCS cluster across sites on Linux systems.. Accroding to VCS documentation, for MV/Sync consistency group is not supported...(For MV/aysnc it is supported).. So question raised to Symantec already ,will it take care of the consistency if individual mirrors are provided (instead of Consistency group) for VCS config during SP failures...
Please let me know your ideas if you have come across this kind of setup already....
Ram_Emc
17 Posts
0
August 28th, 2012 21:00
Hi Anderson,
Thanks for the clear explanation... I am surprised when i see the Symantec has not commented on it.. Symantec is implementing this new project setup... But it is setup by MV/Synchronous.
Anyway thanks for the knowledge share...