• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 649
  • Last Modified:

SQL Server 2008 R2 Mirroring Failover Question

Hi,

When SQL Server 2008 R2 is setup with two servers that are in an automatic failover configuration, what happens when you fail over the database?

We have a web app that we need to be highly-available... does the mirror server take over the principal server's IP for queries? How does this work? Do they share an IP that sends queries to the right server? What happens?

I can't find any info on this. Let me know!
0
Pugglewuggle
Asked:
Pugglewuggle
  • 7
  • 5
  • 2
  • +1
1 Solution
 
chapmandewCommented:
You can alter your connection string so that the connection is mirror aware:

http://www.mssqltips.com/tip.asp?tip=1289

Failover Partner is what you set in the connection string.
0
 
SushiFritoCommented:
You need two servers in failover clusterservice.
When you install the SQLServer 2008, you need to select a storage disk, an IP address and a network name for this instance.

When you fail some resource in this group, every resource member of this group will fail over to another node.

So, you connection string need to connect to this IP or network name.
0
 
SushiFritoCommented:
You need two servers in failover clusterservice.
When you install the SQLServer 2008, you need to select a storage disk, an IP address and a network name for this instance.

When you fail some resource in this group, every resource member of this group will fail over to another node.

So, you connection string need to connect to this IP or network name.
0
Transaction-level recovery for Oracle database

Veeam Explore for Oracle delivers low RTOs and RPOs with agentless transaction log backup and transaction-level recovery of Oracle databases. You can restore the database to a precise point in time, even to a specific transaction.

 
chapmandewCommented:
SushiFrito, this is not a question on server clustering - it is a question on sql database mirroring.  Two completely different things.
0
 
PugglewuggleAuthor Commented:
Ha,

I think Sushi was telling me what he thinks I need. Is there any way to accomplish what I mentioned with mirroring and not clustering? I understand clustering is optimal for hot failover, but can I do this with mirroring/how does mirroring's failover work?
0
 
chapmandewCommented:
I already explained how you can make your connection string issue work w/ mirroring.
0
 
PugglewuggleAuthor Commented:
Okay, I got that. What I'm asking is this: is there any way to do this on the server side and not rely on the SQL client to go to the right server, so that for apps that don't have a connection string, but only one field for a SQL server address, they will still be highly available in the event of a DB failover?
0
 
chapmandewCommented:
ah, gotcha.  I would guess it would be possible to point to the correct server through some sort of DNS trickery, but I am not sure of the best way to go about doing it.
0
 
PugglewuggleAuthor Commented:
darn. so there's no way to to NLB or something then for just one IP to be highly available... only custering works for that then, huh?
0
 
chapmandewCommented:
nope, not for mirroring (currently, that is).  

clustering works for a virtual server - and is a huge expenditure.  connection strings are likely your best option here.
0
 
PugglewuggleAuthor Commented:
What is the huge expenditure/what is the big deal? Can you just setup two servers in a cluster and they work better than if you had mirroring?
0
 
PugglewuggleAuthor Commented:
Hello>?
0
 
PugglewuggleAuthor Commented:
Double hello? No answer?
0
 
Marten RuneCommented:
Happend to look at this. Don't know it its of interest anymore.

I recon the expidenture thats being referenced is the SAN where the clustered disk comes from. I e, a cluster needs a san disk that can move from one node to another. Thats usually pretty expensive.

Hope this clarifyes this question.

Regards Marten
0
 
PugglewuggleAuthor Commented:
Okay, I'm just going to use a clustered setup. I wish SQL Server had a multi-master replication setup like MySQL.
0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

  • 7
  • 5
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now