Adding SQL Server AlwaysOn to existing Failover Clusters
Hello,
We use two seperate ms sql server 2012 clusters. We have two sites. All nodes are in same domain.
In the first site, NOD1 and NOD2 are in SITE A cluster group. (INSTANCE A) They have a shared SAN storage.
In the second site, NOD3 and NOD3 are SITE B cluster group. (INSTANCE B) They have a shared SAN storage too.
Can we use alwayson between two sites? If it is possible , how can we do it? and documents, web site etc.
Thank you.
Hi,
Windows cluster can straddle multi sites. If they are in the
same WSFC cluster, you can.
Please download the “AlwaysOn Architecture Guide: Building a High Availability and Disaster Recovery Solution by Using Failover Cluster Instances and Availability Groups”
Word document from the following link.
http://msdn.microsoft.com/en-us/library/jj215886.aspx
Thanks.
Tracy Cai
TechNet Community Support
Similar Messages
-
Alter IP address of SQL Server AlwaysOn Failover clustering Iistener
Hi,
Is there a possibility to change the IP address of SQL Server AlwaysOn Failover clustering Listener IP address without deleting the exiting one and also retaining the same DNS name.
NOTE: Only the IP address needs to be altered rest all (DNS, port) should remain the same.
Regards
VijayHi Karthikkk,
As your description, you want to modify the listener IP address in AlwaysOn availability group without changing other settings including DNS and port. To achieve this, you could modify a listener IP address on primary replica using the following statement:
ALTER AVAILABILITY GROUP group_name
MODIFY LISTENER ‘dns_name’
ADD IP { (‘four_part_ipv4_address’, ‘four_part_ipv4_mask’) | (‘dns_nameipv6_address’) }
For more information about the process, please refer to the article:
http://msdn.microsoft.com/en-us/library/ff878601.aspx
Regards,
Michelle Li -
SQL Server AlwaysOn Failover threshold and Lease Timeout
Hi experts,
I found each time when I were building/restoring another log shipping(standby) server. It would cause ERR [RES] SQL Server Availability Group: [hadrag] Failure detected, diagnostics heartbeat is lost(in cluster log) and A connection timeout has occurred on a previously established connection to availability replica 'DL980-4' with id(in errorlog). I google and find a document (http://download.microsoft.com/download/0/F/B/0FBFAA46-2BFD-478F-8E56-7BF3C672DF9D/Troubleshooting%20SQL%20Server%20AlwaysOn.pdf ) indicated that “This may be a performance issue”. I run restore database and AlwaysOn synchronizing on the same 10GbE link at the same time.
Should I increase
leaseTimeout from 20000 to 100000 and
HealthCheckTimeout from 30000 to 300000?
Does it work to prevent unnecessary failover.
Please refer to
(http://blogs.msdn.com/b/psssql/archive/2012/09/07/how-it-works-sql-server-alwayson-lease-timeout.aspx )
parag
10-18-2013 3:19 AM
Hi Denzil
we seem to see lease expires very frequently when the server is under very high cpu pressure .. our failure condition level is 1
is it possible to prevent this situation . the problem is when lease expires,all the current connections seem to be dropped . wondering if there is a way to prevent this ..
Also is it possible to affitinize the always on health check process to a particular core
Thanks for your help!Hi Dennis
Should I increase
leaseTimeout from 20000 to 100000 and
HealthCheckTimeout from 30000 to 300000?
Does it work to prevent unnecessary failover.
1. you can increase the timeout parameter, but when the fail-over time slight delay will be there (its a work around solution)
2. You may require to check the Network connections. (Cluster Heartbeat & public network)
3. Have you update the latest patches of OS & DB?
4. If possible raise the ticket to Microsoft. they may give some update for Cluster resource update based on your issue
Regards
Sriram -
Help,
setup a new sql server 2012 on a windows 2012r2 server to replace old sql server 2005 on an old windows server 2003 machine. When i test the ODBC connection locally on the server it works fine, however when i try to connect via windows 7 client machine
i get the following error:
Connection failed:
SQLState:'01000'
SQL Server Error:67
[Microsoft]ODBC SQL Server Driver][DBNETLIB]ConnectionOpen
(Connect()).
Connection failed:
SQLState:'08001'
SQL Server Error:17
[Microsoft]ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or access denied
I think it must be a permissions thing, I've turned off the firewall for now and still no difference, 've also made sure remote connection is enabled. I can connect to the other sql server in studio manager on the new machine however, i can't go do
the same in the old server, says:
cannot connect to hbfsqlpro1\hbfsqlpro1
Additonal information a network related or instance specifc error occured while establising a connection to SQL server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL server is configured to
allow remote connections. (provider:SQL Network Interfaces, error 26 - error locationg server/instance specified) (Microsoft SQL server)
the instance is def correct, as that is what i use to connect locally on the new machine and what it comes up on the studio manager on the new machine. STarting to pull my hair out somewhat, i'm sure it's something really simple!Hello,
You are trying to connect to a named instance. Make sure the SQL Server Browser service is started on the SQL Server computer.
Make sure TCP/IP is enabled.
http://msdn.microsoft.com/en-us/library/ms191294(v=sql.110).aspx
Try to disable Windows Firewall or security software on both, SQL Server instance and client computer.
Test basic connectivity too. Try to ping from the client computer to the SQL Server computer.
Hope this helps.
Regards,
Alberto Morillo
SQLCoffee.com -
Hi there,
I am having a serious issue with The Power BI Data Management Gateway which I am hoping that someone can help me with.
Basically I am setting a connection between a Power BI demo site and a SQL 2012 Database based on Azure. The Data Management Gateway and is up and running, and Power BI has managed to connect to it successfuly.
By following the tutorials at
here I was able to successful create my Data Connection Gateway with a self-signed certificate.
However, when trying to create the data source I come into problems. The Data Source Manager manages to successfully resolve the hostname, as per the screenshot below:
Bear in mind that I exposed the require ports in Azure as endpoints and I managed to modify my hosts file on my local machine so I could access the SQL server hosted in Azure using its internal name -- otherwise I would not be able to get this far.
However the creation of the data source also fails when trying to created it whilst logged in the SQL server in question:
The Data Source Manager returns the error when using the Microsoft OLE DB Provider for SQL Server:
Failed to test connection. [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied
I tried using the SQL Server Native Client 11.0 instead but I also get an error. This time the error is:
Failed to test connection. Login timeout expiredA network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online.Named Pipes Provider: Could not open a connection to SQL Server [53].
Some considerations
If I provide an invalid username/password, the Data Source Manager does say that the username and password is incorrect.
Firewall is turned off in the SQL Server (either way, this error also happens if I try top use the Data Source Manager whilst logged in the SQL Server itself).
SQL Profiler does not show any attempt of connection.
The SQL server instance in question is the default one.
The error happens regardless if I select the option to encrypt connection or not.
In SQL Configuration manager I can see that all protocols are enabled (TCP/IP, Named Pipes and Shared Memory.
The Event Viewer does not provide any further errors than the one I have copied in this post.
I'm at a loss here. Could someone please advise what might I be doing wrong?
Regards,
P.Here is what I had to do to solve this issue:
Basically I had to add the MSSQL TCP/IP port as an end-point in Azure. After I did that, then I was able to create the data-source. However, I was only able to authenticate with a SQL account, as any domain account would return me an error saying that the
domain isn't trusted.
What puzzles me here is how come the Data Source Manager would inform me that an account username/password was invalid, but it would fail/timeout if I provided valid credentials (!?!?!!?) -
SharePoint 2013 and SQL Server AlwaysOn - HA
Hi guys,
Please help!
I need to setup SP13 server on SQL 2012 AlwaysOn (on sql01 and sql02). The HA AlwaysOn group already configured by DB team on these 2 replica with and called SP_AOAG alias
My question is can I use this alias to setup SharePoint or I need to configure the HA AlwaysOn group for SgharePoint as suggested in the article below:
http://blogs.msdn.com/b/sambetts/archive/2013/04/24/sharepoint-2013-and-sql-server-alwayson-high-availability-sharepoint.aspx
Any advice greatly appreciated .
BalaiPYou do not want to use a SQL Alias with an AG Listener. Just point SharePoint straight at the AG Listener. You will need to manually add any accounts to non-primary instances. You do not need to add them to individual databases, of course. You will also
need to manually set MAXDOP to 1 on non-primary instances.
Trevor Seward
Follow or contact me at...
  
This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs. -
Hi, I've seen questions about this error posted elsewhere but I'm not sure if the same issues applied.
I'm trying to connect to SQL Server from a VBA macro in excel. I've managed to do this with the code below where my query is return to cells in my active worksheet but for another query I want to run the data to be return is too large for Excel to handle
and so I'd like to save it as a .csv file but using the second example of my code I get the message "[Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or access denied". Since I have access to this database from the first example
of the code, I assume my conn.ConnectionString line of code is letting me down.
Can anyone help me please?
'Code to return data to worksheet'
Sub macro2()
With ActiveSheet.ListObjects.Add(SourceType:=0, Source:=Array(Array( _
"ODBC;DSN=SQLRA - OPENBET;UID=user1;Trusted_Connection=Yes;APP=Microsoft Office 2013;WSID=pdfdf3001;DATABASE=open;Network=DBMSS" _
), Array("OCN;Address=SQLRA_DB,55455;ApplicationIntent=READONLY;")), _
Destination:=Range("$BG$1")).QueryTable
.CommandText = Array( _
"select A.ev_oc_id, B.ev_mkt_id, A.ev_id, D.start_Time, Upper(Replace(A.[desc],'|','')) , A.result, COALESCE(A.sp_num, A.lp_num) , ", _
"COALESCE(A.sp_Den, A.lp_Den) from open.reporting.tevoc A, open.reporting.tevmkt B, open.reporting.tevocgrp C, open.reporting.tev D ", _
"where A.ev_mkt_id = B.ev_mkt_id and B.ev_oc_grp_id = C.ev_oc_grp_id and D.ev_id = A.ev_id and Upper(Replace(D.[desc],'|','')) = 'home' and upper(B.name) = '|today|' and D.ev_type_id in (264, 289) and D.ev_class_id = 49
and D.start>= '" & Year & "-" & Month & "-" & Day & "'" _
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = True
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.PreserveColumnInfo = True
.ListObject.DisplayName = "Table_Query_from_SQLRA___OPEN_1"
.Refresh BackgroundQuery:=False
End With
End Sub
'Code that produces error'
Sub macro1()
Dim conn As ADODB.Connection
Set conn = New ADODB.Connection
Dim testSQL As String
Dim qd As DAO.QueryDef
Dim openbetdb As Database
conn.ConnectionString = "driver={SQL Server}; server= sqlra_db;uid=user1;APP=Microsoft Office 2013;WSID=pdfdf3001;database=openbet"
conn.Open
testSQL = "SELECT * FROM open.reporting.TevType where ev_class_id = 49 and ev_type_id in(289,330,518,13492);"
Set qd = Db.CreateQueryDef("tmpExport", testSQL)
DoCmd.TransferText acExportDelim, , "tmpExport", "C:\\export.csv"
End SubHello,
Are you connect to remote SQL Server? If so,
please make sure the target SQL Server is running and is listening on appropriate protocols. Please take a look at the following article about general steps to troubleshoot
SQL connectivity issues:
http://blogs.msdn.com/b/sql_protocols/archive/2008/04/30/steps-to-troubleshoot-connectivity-issues.aspx
Regards,
Elvis Long
TechNet Community Support -
I using SQL 2000 on Server 2012 in named instance. when i connect locally, it's ok, but when try to connect from network it generates error [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.
Hi Sayed Abdul Latif,
As other post, SQL Server 2000 was out of support since April,2013. You can try to install SQL Server 2005 or later version. In addition, since the issue regards SQL Server Data Access. I will help you post the question in the related forums. It is appropriate
and more experts will assist you.
According to your description, you can only connect to SQL Server locally, I recommend you check if the TCP/IP and Named Pipes are enabled in SQL Server Configuration Manager. And the SQL Server is set to allow remote connection. Then restart the SQL Service
and check if you can connect to SQL Server remotely.
Additionally, we also need to verify if the SQL Server named instance is in a cluster, and connect to it by using the "servername\instancename" syntax, then you receive the above error message. If yes, you have to hardcode the TCP port or the Named Pipe
of the SQL Server named instance. For more information, you can review the following article.http://support.microsoft.com/kb/888228/en-us
Thanks,
Sofiya Li
Sofiya Li
TechNet Community Support -
Sql server does not exist or access is denied.
Hi,
i am trying to connect a dadabase to the server from client pc. and i take the sql error [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied to the client pc.
i using .udl file and ia trying to connect with sql authentication.
please advice.the clients computers are in the workgroup network.
Hi Antonia,
Please ensure you specify the correct server name, and check SQL Serer instance was started.
A good article about UDL connect to SQL DB for your reference, please see:
Quick Database Connectivity Testing:
http://sqlblog.com/blogs/andy_leonard/archive/2011/08/26/quick-database-connectivity-testing.aspx
In addition, this issue also might be caused by the windows fire setting. Please also take a look at the following article regarding configure the Windows Firewall to allow SQL Server Access:
http://technet.microsoft.com/en-us/library/cc646023(v=sql.110).aspx
Reards,
Elvis Long
TechNet Community Support -
Hi,
Getting following error while trying to connect MySQL server to the MDM Import manager.
logon Error:[DBNETLIB][ConnectionOpen(Connect()).]SQL Server does not exist or access denied
i have supplied the following paramter values.
Type : SQL server
Remote System : MDM
DBMS server : localhost
Database Name : testing
user: < MySQL user name>
password : < MySQL password>
pls let me know how can i solve this problem.
thanksRefer the blog
/people/rupesh.kumar4/blog/2008/08/20/how-to-integrate-mdm-with-mysql-server-50
thanks
Rupesh -
SQL Server does not exist or access denied - periodic error
Hi There,
For the last week or so, I have been getting periodic errors on my sites powered by MSSQL databases. The error message is as follows:
Microsoft OLE DB Provider for SQL Server error '80004005'
[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.
Usually, a quick refresh, and everything works fine again.
My host doesn't know what has caused the issue, but has dug up this microsoft link: http://support.microsoft.com/kb/907264
Most of that tech speak is beyond me! I use Dreamweaver - does anybody know if the standard dreamweaver connections or cursors contravene the advice on that page, and if so how to fix it?
If not, does anybody know where to look to solve this issue?
Thanks,
DanI had this same problem and on a hunch I deleted the brackets
so that the connection string instead of being,
"Persist Security Info=False;Data
Source=[THESERVER\SQLEXPRESS];Initial Catalog=[AdventureWorks];User
ID=[ATEST];Password=[kjdkjdkjd]"
is now,
"Persist Security Info=False;Data
Source=THESERVER\SQLEXPRESS;Initial Catalog=AdventureWorks;User
ID=ATEST;Password=kjdkjdkjd"
This was in Dreamweaver 8. -
Hi,
I have one client and one server. In both hosts I created an OS-user named User1.
The user have been given various role under the prefix SQLServer2005.
The default instance of SQL Server and instance (background-process) of
Analysis Service are also run under User1.
I connected via Management Studio to Analysis Service directly in the
server. I set the permission to access Analysis Service to Everyone.
This means everyone should be able to use Analysis Service. I have set
ODBC data source to the server. Testing was successful.
I created a project to create a cube. The tables are fairly small (total 300 MB, biggest one 290).
On project setting (created at client) I set the server host as
deployment target. I managed to deploy project when all I have are Data
Source and Data Source Views.
But on deployment I always failed. The errors remain the same, begins with
OLE DB error: OLE DB or ODBC error: [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.; 08001.
I have tried 4 combinations of Impersonation :
(A) Use a specific username and password
* in which I supply User1 and the password of User1
(B) Use the service account
(C) Use the credentials of the current user
(D) Default
Why is this? The server does certainly exist. I think the error message is wrong.
I have seen 3 posting that seems related. One of them say the solution is giving the right impersonation, but gave no detail. About the privilege, User1 are granted the role of
SQLServer2005MSOLAP. What is the solution?
Thank you,
BernaridhoI just had this problem and solved it by creating an alias in SQL Server Configuration Manager, as below:
Scenario: My SQL server is accessible from the internet under my.domain.com, and from itself at ServerName. But the local network can't see itself through the router at my.domain.com, so the deployed project is unable to process the cube, since that would
require Analysis Services to be able to see the SQL Server at my.domain.com, which it can't do.
So I changed the server in my project from my.domain.com to ServerName, and I created a local alias to ServerName in SQL Server Configuration Manager, under SQL Native Client 11.0 Configuration, Aliases. In my case, I pointed it to localhost port 1333, and
used SSH -L 1333:my.domain.com:1433, but I could have pointed the alias directly to the server, just as well. (Verifying... yes, that worked too, so you can forget SSH if you have no interest in it.) -
Win App Deployment include SQL 2008 Express - Check if any SQL Server version already exist
Hi there
I have a application that is deploying and installing correctly (Setup and Deployment Project in VS 2008) and has SQL 2008 Express as a pre-requisite. SQL Express installs fine if not found but I don't want it to be installed if any other version of SQL
Server already exists on the target computer. What do I have to adjust in the Bootstrapper package (package.xml or product.xml) for SQL Express to do this check? Is the change done within the Bootstrapper package? Do I have to create a Custom Action
in my Deployment project for this check? Any help is appreciated.
Thanks
DweezilHi Dweezil,
If you use SQL Express Bootstrapper, you can add the SqlExpressChk.exe package file in the product.xml to check that if SQL Server is already exists.
However, please note that SqlExpressChk.exe is limited to only the default instance name, SQLEXPRESS, it won't detect other named instances. A registry check is required when detecting existing SQL Server with custom instance name.
For more details, please review this
blog.
There is also a similar thread for your reference.
https://dotnetinstaller.codeplex.com/discussions/245326
Thanks,
Lydia Zhang
If you have any feedback on our support, please click
here. -
DPM 2012 R2 CU4 protecting SQL 2014 AlwaysOn AG with Failover Cluster vs. DR location
Hello!
We have a problem protecting any Database of SQL 2014 AlwaysOn Availability Group with SQL Failover Cluster Instance when moved to DR location. Everything is protected using DPM 2012 R2 CU4 from Primary location.
FACTS
- all servers are Windows Server 2012 R2
- all servers are Virtual (except Hyper-V hosts obviously:)
- that means virtualization is based on Windows Server 2012 R2 Hyper-V
- all clusters (SQL, Exchange,...) are Guest Clusters on Hyper-V
- SQL 2014
- DPM 2012 R2 CU4
- Primary and DR location
SETUP
SQL
- Primary location: SQL 2014 Guest Cluster with SQL Failover Cluster Instance using Shared VHDX disks
- DR location: SQL 2014 Standalone using VHDX disks
- AlwaysOn Availability Group expands between the primary and DR location.
DPM
- Primary location: DPM 2012 R2 CU4
- DPM 2012 R2 CU4 Agents installed on every possible SQL 2014 Server.
SCENARIO
- DPM is backing up all the SQL Databases normally as long as they exist on any SQL Cluster Node on Primary location.
- As soon as any Database is moved to DR location, that Database is not backed up anymore with the following error.
DPM ERROR
Starting synchronization on SqlServerName\DatabaseName failed:
Error 104: An unexpected error occurred while the job was running.
Error details: The system cannot find the path specified (0x80070003)
Recommended action: Retry the operation.
TROUBLESHOOTING
- Tried to modify SQL Protection Group in DPM Server while Database was active on DR location
> error enumerating volumes or drives D:\, E:\, F:\ (I don't have exact error atm)
> this looks like DPM is not aware that DPM is active on DR location to me
- Checked Technet, blogs and forums; no useful information
QUESTION
Is this expected or by-design behavior? Is this a bug? I am aware there were quite some issues backing up AG's from DPM 2012 SP1 ans SQL 2012 on.
Does anybody have a lab of that kind to try it out?
Thank you!
Best Regards,
Damjan Grimšič
LpdOK. The issue has been resolved. Issue was related to possible Disks Owners in Failover Cluster Manager Console for SQL Cluster.
In Primary's site SQL Cluster Failover Manager Console / Storage / Disks.
SQL Server(s) from Secondary location need(s) to be unchecked as Possible owner(s) in Advanced Policies for all relevant Volumes.
Lpd -
Good device to put Instance root directory on a SQL Server 2012 Always On Failover Cluster ?
Hello, I'm currently testing SQL Server 2012 AlwaysOn Failover Cluster.
I wonder if I installed it correctly : I installed the software on both server with the instance root directory set to a directory on a cluster shared module.
The reason why I'm not sure is because, when I wanted to upgrade from SP1 to SP2, I wanted to do it first on the passive node, but it failed for most of the components it had to upgrade. So I first upgraded the active node then failover and upgraded the
newly active node.
I installed SQL Server this way because our system admins don't like us to install in on C:\ for their own reasons (maybe backup, or something ...)
I'm pretty sure there is something wrong. What's your point ?
Thanks in advance.>I wonder if I installed it correctly : I installed the software on both server with the instance root directory set to a directory on a cluster shared module.
Nope.
SQL Server 2012 and earlier don't support data files on CSV volumes (SQL 2014 does).
And for any version of SQL Server the SQL Server instance directory should not be on a clustered disk. The Installation is local to each node, so should be on a non-clustered disk. It may be supported to put the instances in different locations
on the same clustered disk, but I wouldn't recommend it.
Installing the SQL Binaries on C:\ is fine. If you have another local volume you can also install them there.
David
David http://blogs.msdn.com/b/dbrowne/
Maybe you are looking for
-
How to add exactly 2 NON XML caracters at the end of a SOAP body
Hello all I am trying to add two (and only two) extra non xml caracters "AA" at the END of a SOAP body using the JAXWS handlers as so: HTTP/1.1 200 OK Content-Type: text/xml;charset=UTF-8 Content-Length: 131 Content-Length: 131 Server: Jetty(7.x.y-SN
-
PO: Error while entering Charge account in Distributions line
Hi All, We are getting below error while creating Requisition, +++++++++++++++++++ APP-PO-14082: A PO Charge Account is mandatory and could not be determined. Review your account generator setup. +++++++++++++++++++ We are getting this error after I
-
8.1.7 on Redhat 7.3 Installation Problem with IP
I get an error during the install that states "Thrown when the IP address of a host cannot be determined." I'm not sure why this happens or if there is a work around for it. It happens first during the processing Apache web server files 1.3.12.0.0a a
-
Hi, I'm using sql*loader to load some files into tables and I'd like to know if there is a way to force a date column to load sysdate. Can someone provide sample code ? Tks, Helena.
-
How to find lost iPod touch 1gen in house
It is 1 ggen