Quantcast
Channel: SQL Server High Availability and Disaster Recovery forum
Viewing all 4689 articles
Browse latest View live

Windows 2012 R2 and SQL Server 2014 or 2016

$
0
0

Hi Please advise,

I've been asked to install three windows 2012 r2 server (data centre edition) and install server 2014 or server 2016 using always on feature but not part of a domain (three servers in workgroup format). ~Is this possible? I believe alway on would need active directory /<g class="gr_ gr_8 gr-alert gr_spell gr_run_anim ContextualSpelling ins-del multiReplace" data-gr-id="8" id="8">wfsc</g>/etc? Thanks. ND


ND




Primary not failing over to secondary in always on availabilty group in sql server 2012

$
0
0

Hi,

In lab I created always on Availability group in Sql Server 2012 with VMware

I created a domain controller and attached 2 sql2012 nodes to it(All in windows server 2008R2 with SP1). Had opened ports 1433 and 5022. But I could not connect the instance  in Sql01 from Sql02 thru SSMS . So I disabled the firewall in Sql01 and Sql02 and the always on availability group worked. Just added one database and on update of data into it found the database in the secondary fully synchronized.

In the cluster manager I moved the services which was in Sql01  to  Sql02 and was able to access the database from an application in another m/c through the listener. However when the primary was in Sql01, I shut down to see if proper failover would occur to Sql02. But in Sql02 I found that the 'recovery of the database was pending' and in the availability group , inventory was 'resolving'. Had ticked the checkbox of automatic failover (up to 2) in the specify replicas option while creating availability group through wizard. In this context my 2 questions are:

1) If I enable the firewall which all ports I have to open  for the always on availability group to function?

2) Why the primary is not failing over to the secondary when the primary is shut down although I was able to move the service from one node to the other in the cluster manager?

Thanking you in anticipation,

Binny Mathew.

SQL Availability Group Listener

$
0
0

Hi All

I have a question concerning SQL Availability group Listener and how the vip name and vip ip works. Let me quickly give you the scenario and see if i understand it correctly

I have 3 sites currently and i want to install 3 sql servers with availability group in case of a disaster there is a vpn tunnel between all sites

site 1 = sql01 -  ip 10.0.1.10

site 2 - sql02 - ip 10.0.2.10

site 3 - sql03 - ip 10.0.3.10

So my question is

1) For the listener name i could put AG-Listener.company.com as long as i have an domain controller in all 3 locations the dns should be fine

2) For the IP static what do i need to put? Do i put 3 static ips 10.0.1.11, 10.0.2.11, 10.0.3.11?

3)What happens during a disaster lets say site1 is the primary and site2 and site3 are secondaries. Lets say site1 and site2 is down will the listenser try site1 no response then try site2 no response and then site 3 response and make it the primary SQL Server?

4)What happens if the above answer is site3 becomes the primary and site1 comes back will that change to the primary?

Thanks for your time to answer the questions

Regarding to DR sites

$
0
0

sir can you send me a document for the disaster recovery sites licence. In which Dr sites license is required or which may not ??  so plz.. send me on my mail mohansharma2080@gmail.com.

AG group stuck at Synchronizing

$
0
0

Hi

I have a SQL 2014 cluster with 2 nodes, I have an availability group with 6 databases. Nothing is happening in the databases but they are still showing as "synchronizing" on the Secondary node.

I have taken them out of AG and started again but it still will not sync so that I can fail over.

There is another Instance with another AG on the same servers running and that is working fine.

Please can someone help?

Thanks

Sam

alwayson failover to secondary instance users unable to connect to application through Listener

$
0
0

Hello team,

We have configured the 2 instance AAG. whenever the failover happpend to primary to seconday replica. User are unable to connect through listener. So we have to again failover to primary. Could you please let me know what is the issue.

Thanks in advanced.

Production SQL cluster - Change from "Node majority (no witness)" Quorum setting to "Node majority with witness (disk or file share)"

$
0
0

We have a 2 node (VMs) SQL 2012 cluster (using Always on High Availability) which is currently setup "Node majority (no witness)" Quorum setting.

Both the nodes are in the same LAN in same site. Company does not have any other site.

We want to change it to  "Node majority with witness (disk or file share)" to avoid any problems in future.

I have following 2 questions:

1. Can split brain occur with "Node majority (no witness)" Quorum setting considering both nodes (virtual machines) are in same site connected to same switches?

2. Can the change to quorum configuration be made without taking the cluster offline without any outage?


change the data, temp and log directories (SQL 2016) from C drive to say F drive (data disks) via Powershell or DSC.

$
0
0

Hi there,

how to change the data, temp and log directories from C drive to say F drive (data disks) via Powershell or DSC. I am spinning a SQL VM in Azure but I notice that these directories are on C drive.  Ideally a VM extension (DSC or powershell script) is what I am looking for.

thank you


Auto installing SQL server

$
0
0

Hi,

we need to install the sql server (as part of alwayson setup) on win 2012 R2 vm.  we want to automate this process so that manual install is avoided. please suggest best way for us.

I generally store the SQL iso file in a cloud storage drive. say https//mystore.com/sql/sql.iso

I want to mount ISO in a VM and install sql using config.ini file (for which I have  powershell script). But it looks like, I need to download the ISO file to a local folder first before mount. what's the best way to download using script?  bitstranfer method?  

after installation how to check if the install is complete via powershell command.  Or is it better to install using DSC? appreciate your answers.  

also related to config.ini file,  what feature I need to setup to install silently without any prompts!

thank you

Alwayson question

$
0
0
So if you have a replica setup on the secondary server how do you deal with jobs? Are they disabled so they don't run?

Alan

Changing the Session Timeout in an Availability Group.

$
0
0

Greetings. We been having issues with our 2012 AG lately and typically see messages like these below:

Message
A connection timeout has occurred on a previously established connection to availability replica '' with id [].  Either a networking or a firewall issue exists or the availability replica has transitioned to the resolving role.

Message
A connection timeout has occurred while attempting to establish a connection to availability replica '' with id []. Either a networking or firewall issue exists, or the endpoint address provided for the replica is not the database mirroring endpoint of the host server instance.

I actually didn't realize until today during research that there are actually two different (but similar) error messages. At any rate, changing the Session Timeout setting in the AG seems like a common recommendation once past the network/ firewall theories. My question is what are the potential negative impacts of doing this? I've been researching this topic for a while today and can't find any downsides to this. If it's OK to make them longer, why is a measly 10 seconds the default?

Ours are currently set to 30 seconds, but I'm wondering if they should be longer. My guess is it wouldn't hurt since our AG unfortunately houses a large Data Warehouse environment so there is a LOT of data getting transferred between these two nodes during heavy ETL times. 

Thanks!


Thanks in advance! ChrisRDBA

SQL 2014 Always On - Cluster Private Network

$
0
0

Hi

I've creates a two node SQL 2014 Always on Cluster with availability Groups. the 2 nodes are located in in separate physical environments across a 10 GB link.

I have created the cluster and have created the availability groups and data is replicating without any issues and all works well.

However I have not configured any cluster private network between the two nodes - is there a requirement for a private network in such an environment.

Is the environment supported from a MS perspective with out a cluster network and if I need to create a private cluster network for SQL AAG are there any directions for this

Many Thanks

Raymond


RDunne76

SQL Server 2012 HA for Sharepoint

$
0
0

Hi,

We are running a 2-node SQL Server 2012 HA always on (active-passive) system for our Sharepoint farm. There will be some maintenance (schema updates via application server) done in Sharepoint. The databases must stay online, however removed from the availability group.

Our question: Do the databases really need to be removed from the AG? Is there a recommended "best practice" for such a scenario?

Thanks!


Question on setting up DR

$
0
0

Hello, We are designing our solution for DR, trying to see which option will be better:

SQL version: 2014 Enterprise edition
Option1: Using Alwayson setup between datacenter1 & datacenter2
Option2: Merge replication between datacenter1 & datacenter2

Trying to see the pros & cons between the two technologies. Thanks.


sqldev

SQL 2012 Always on AG issue - scratching head on this one

$
0
0

Hi guys, hope you can help. I have a 2012R2 always on SQL Cluster setup. which has been working fine.

so when running my application from SQL02 (primary) , the application works fine, but when we manually failover to SQL01

The application stops working (web based application). there doesn't appear to be anything in the logs to indicate any issues,

If I changed the connection string for the application to point directly to the sql instance, rather than the listener, the web app works fine, so it sort of points to the listener not working on the secondary node.

There are two instances of SQL on this install, the default instance which are hosting multiple databases works fine, on both primary and secondary nodes. so I am scratching my head, I don't see any errors, its like its just not listening on when failed over. yet the dashboard reports no issues, sql logs no issues.

any help would be appreciated.

Thanks

Mark


Alwayson questions

$
0
0
There is already a group listener setup and running. I created a new AG. Do I need to create a new Group listener? Also how do I deal with automatic failover and jobs? How do the jobs get enabled when there is a failover?

Alan

Availability Group Cluster Name always connecting to a specific server rather than the primary node

$
0
0

Hi
I am hoping someone can help me,

I have a SQL Server 2012 Always On Availability Group

Server 1 - SQL Server 1
Server 2 - SQL Server 2
SQL Cluster name - CLR
Availability Group Name - AG 

I have some application that uses databases that is residing in Availability Group AG.

When the AG is hosted by Server 1, Server 1 is my Primary & Server 2 is my Secondary
When I failover the AG, Server 1 becomes secondary, Server 2 becomes primary Node

The problem is, My Application connects to databases using the cluster name CLR. I notice that CLR always connects to Server 1. so, if my AG is hosted from Server 2 , that means because my CLR connects to server 1, the database becomes read only.

is this the design of SQL 2012 always availability group?

What I need is, if I connect to cluster name CLR, the connection to the Availability Group should point me to the server that is holding the Primary Node.

Alternatively, if the cluster name CLR will always connect to Server 1 then I need to make server 1 read-write capable so my application can write to it. I have selected the availability group properties and changed the secondary to read-write, but that doesn't fix my problem.

Can someone point me to the right direction please?

Thanks in advance.


MCITP, MCSA, MCSE,VCP - Consultant, Solution Design, Implementation


BACKUP DB FILES TO AZURE

$
0
0

Hi All,

I would like to know if it is possible to backup all the database backup filesdirectly to Azure cloud storage, As I am new to Azure storage I'a not sure about the type of storage used.

If it is possible please guide me with the necessary instructions. I am using both MSSQL 2014 and MSSQL 2008 Standard Editions

Upgrade Script = No Login

$
0
0
SQL 2014 and just performed a windows update install of SP2. After the update, the server had to be restarted and upon opening SQL MS, i get can not login reason=upgrade script running. SQL services in configuration manager are NOT running and will not start. How do i go about getting this working again? That instance has 4 or 5 DB's.

Msg 3961,AlwaysOn secondary replica transaction affected due to index rebuild on primary replica.

$
0
0

Hi,

I'm getting the below error in AlwaysOn secondary replica because of same object accessed by index rebuild statement in primary replica.

Msg 3961, Level 16, State 1, Line 3
Snapshot isolation transaction failed in database 'xxxx' because the object accessed by the statement has been modified by a DDL statement in another concurrent transaction since the start of this transaction.  It is disallowed because the metadata is not versioned. A concurrent update to metadata can lead to inconsistency if mixed with snapshot isolation.

I understand that by default secondary replica use snapshot Isolation in AlwaysOn setup and it use Row Versioning to store data's temporarily, due to this index metadata changes on primary will not take effect for currently running session in secondary replica.

Is there any fix for this issue? 

Thanks in advance.


Viewing all 4689 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>