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

SQL Active/Passive Failover Cluster

$
0
0

Hello,

Typically how long will the SQL Instance be unavailable during a failover event occuring in active/passive environment.

My guess was 15 seconds,  am I correct?  During that time, if a Job is running , will the Job fail ?

Thanks,

Veena Srinivas



Adding memory optimization feature on database having log shipping

$
0
0
We are using SQL Server 2016 enterprise edition, having a database and log shipping enabled. Can we enable Memory optimization feature on primary server and expect the memory optimized files to replicate in secondary log shipping server automatically after transaction log backup?

Migration using Diff backup/restore

$
0
0

Hi.  Can anyone remind me of the process of restoring a large database using full, differential, and tail log backups?  The goal is to migrate a 500+ GB database to a new server as quickly as possible.

Backup schedule for database on source server: Full on Sunday at 10pm.  Diff nightly at 10pm.  Log backups hourly 9am to 9pm.  

I'm guessing the process is routine, but I don't have a lot of experience with diff backup/restore, and not sure if the hourly tran log backups come into play to preserve the log chain.  Can you validate my migration steps? "T" = Time when the source database is to be frozen and migration begins.

(BTW, I'll be doing this operation in SSMS).

T-4 hours:

- Suspend transaction log backups on source server (as I'm thinking they won't be needed to preserve the log chain.)
- Restore previous Sunday full backup to target server WITH NO RECOVERY (duration should be 2.5 to 3 hours).

T-2 hours:

- Restore latest differential backup (taken 10pm previous night) to target server WITH No RECOVERY (duration should be 0.5 to 1.0 hours).
- Or, guessing I could instead take a new diff backup at T-2, and restore that one.  In that case, previous weeknight diffs not needed at all since I have a new one.)

T (Freeze source database and begin migration window):

- Take "tail log" backup of source database, leaving source database in recovering state.
- Restore tail log backup on target server WITH RECOVERY


Questions:

- Am I correct that tran log backups taken the day of the migration are not needed since I am restoring latest full + latest diff + tail log?

- At time "T", can I put the source database in single-user mode to restrict activity on the database, but still take a tail log backup?

- If need to roll back the migration, can I simply recover the database on the source server?

Thanks!

Log file issue

$
0
0

hi all

we have two servers that are setup with sql server 2016 clustering (high availability)

i have very big log file size , so how the best way to shrink or reduce my log fie to reducing the size for total database file

Move SCCM 1806 Database to SQL2014 - always on

$
0
0

Hi 

I'm trying to move sccm databasde from stand alone server to always on availability group.

I'm sure that all SQL Configurations are done successfully. But I face the following error 

Kindly advice

Thanks and regards

Dynamic Voting

$
0
0

I have some query on the dynamic voting. I am having 4 nodes cluster, windows 2016 and sql 2016. with a fsw.

there are two sites, PROD and DR, each site has two nodes, (nodeA, nodeB)Prod     (nodeC,NodeD)DR

It's a samesubnet multisite stretched cluster

FSW is owned at Prod,SQl server resource is currently own in nodeA, And Preferred site set to Prod.

Now I want to examine the Dynamic vote of each node under the following case

1. nodeC in DR site down

2. nodeB in Prod is down

3. both nodeC and nodeD is down

4. nodeA is down

5. Both nodeA and NodeB is down

Any one have an idea of the results dynamic vote ?

SQL 2016 Fail-over Cluster- Changing Active Directory and domain-Windows Server 2016

$
0
0
I have installed SQL Server 2016 Fail-over cluster over 2 machines Windows Server 2016(already joined to the Domain we currently have onsite), my issue is that the active directory(Domain) that we are using will be changed, another server will be put in production with a new domain. I would like to know what will happen to the Fail over cluster that is already configured on the old Active directory domain and what will happen to the SQL Server (Databases and Objects)?

SQL cluster on windows 2016

$
0
0

Hi All I have some questions on clustering . Here is the setting

1. SQL server 2016, windows server 2016

2. 4 nodes clusters + fileshare witness

3. Siteareness is enabled , and preferred site configured to node 1 and node 2,   node 3 and node 4 are secondary site

The questions

1. will there be impact on the preferred node order when configured siteareness ?

2. and also node ID impact on the node voting ?

3. For the behavior or dynamic voting, I did a test: If I reboot any node on secondary site (for example node 4), active node on node 1, I checked the dynamic voting of node 4 become zero, and another node in primary site also become 0. So the question is, HOW cluster choosing WHICH node in a site to lower down it's dynamic voting ??

4. cross-site network failure question, what's the outcome of the following

-  Crosssite link down, FSW on backup site, and sql instance owned currently at preferred site

-  Crosssite link down, FSW on preferred site , and sql instance owned currently at preferred site

-  Crosssite link down, FSW on backup site, and sql instance owned currently at backup site

-  Crosssite link down, FSW on preferred site , and sql instance owned currently at backup site


SQLServer 2016 AlwaysOn with SQL 2017 Secondary replica

$
0
0
Hi,

   We do have SQL Server 2016 with couple of databases configured with AlwaysOn with 2 secondary replicas.  We would like to add another replica in SQL 2017 and test it with that once everything looks good, we will start using SQL 2017 and decommission the SQL2016. In case of issues, we will go back to SQL2016.

   Is this supported? SQL 2016 always on with SQL2017 as a secondary replica.  

   I remember seeing in couple of places mentioning it is possible, some places it says not possible, sql version has to be same. So got confused.

  

Thanks


Can I use the same Listener for more than one Availabilty Group?

$
0
0

Hello All,

I've been doing some research on availability groups in SQL, however have come up with some questions that I cannot find answers to in the documentation.

>>>>>CONFIGURATION SETUP<<<<<<

I have a 4 node sql server setup with WSFC.  No shared storage, using Cloud witness as quorum.  Two nodes exist in Azure (subnet A) and two nodes exist on prem (subnet b).  Subnets communicate via VPN between azure and on prem and all nodes can communicate with each other.  Cluster is up and healthy. (AZSQLCLUST NetBIOS name 10.20.0.254)

In azure I have AdventureWorks configured on NODE1 in azure.  I setup an Availability Group (ADWKAG1) to create a secondary synchronous replica of AdventureWorks on the NODE2 in Azure.  The future intent here is to setup an Asynch copy of this database to the on prem nodes (they are there for forced failback only).

I've setup a listener (ADWKAG1-ls), it is configured to use the same IP as the cluster name 10.20.0.254.  

>>>>>QUESTION<<<<<<<

If I build another availability group setting up a new Database (AdventureWorks2) on NODE 2 in Azure, with a Synchronous replica to NODE 1 in azure.  Do I need another Availability Group listener or can I use the listener that I've created already?

I know each AG needs a listener, but it doesn't say whether that listener needs to be unique or not.

Thanks for the help

r/
john

Move FSW owner

$
0
0
In windows 2016 cluster 4 nodes multisite with one FSW. Is it possible to move the owner of FSW between two site ?

Can we use same listener for multiple AGs

$
0
0

Good Morning Experts,

I have created 3 AGs. For 1 AG , I have created listener. Can i use the same listener for the remaining AGs.


Kiran

AlwaysOn Licensing

$
0
0

Hi Everyone, 

I would like to know how the SQL AlwaysOn licensing work for the below scenario. 

Scenario 1:

I set up two node cluster and created a two SQL Instances with one AG each.

Node A and Node B ( Each node has 2 physical CPUs )

SQL 1 and SQL 2 

If I run SQL 1 on Node A and SQL 2 on Node B. Do I need to pay the license for both the servers/4 CPUs? 

Scenario 2: 

Set up Two node cluster and created one SQL instance with two availability groups.

Node A and Node B ( Each node has 2 physical CPUs )

SQL 1 with AG1 and AG2

Now If I run AG1 on Node A and AG2 on Node B. Do I need to pay the license both the nodes/4 CPUs? 

Thanks.

SQL 2014 AG Failover

$
0
0

Hi,

During a failover of SQL primary to the Secondary replica. Should there be no downtime at all?
When we failover to the SQL secondary, users were experiencing slight outage to the website.

Just wondering is this normal?

Thank s

Default domain policy

$
0
0

Hi,

In the progress of tidying up the default domain policy, noticed that there are these 3 policies under Public Key Policies/Trusted Root Certification Authorities, when generate GPO report:

  • Allow users to select new root certification authorities (CAs) to trust
  • Client computers can trust the following certificate stores
  • To perform certificate-based authentication of users and computers. CAs must meet the following criteria.

But, when Edit the Default Domain policy (tried it on Windows 7 PC, Windows Server 2012), there is no polices listed under Public Key Policies/Trusted Root Certification Authorities

In fact there is no policies (none) listed in this section.

Question: How can we edit these x3 policies? 

thank you


Always On Cluster Node Restart

$
0
0
Should we pause the secondary replica before restarting the secondary node or it is safe to reboot the Always On secondary replica node without pausing the secondary? What would be the best way to restart SQL always on nodes with 1 primary and 3 secondaries. 

Humayun

Connecting to the Listner in an AG

$
0
0

Hi!

I've just built a 2 node Azure 2016 HA always on cluster and its all working except for 1 thing. I can connect via ssms to both instances using the instance names, but the listener name (AG-TmProd) does not connect... 

Im not sure what I've missed..  Any ideas?

Thanks,

Zoe

SQL Server 2016 (SP2 CU2) - 13.0.5153.0 Availability group -unable to failover in multi-subnet setup

$
0
0

Hello,

We have created a SQL Server Multi-Subnet Clustering AG.

The problem is as follows:

We are able to have a db as primary on the subnet that was in place before this.

When we failover to the server on the 2nd subnet the failover fails.

We are unable to make a DB primary on the server of the 2nd subnet.

The databases are synchronized with no problem with the current configuration.

The error in the cluster manager is:

Based on the failure policies for the resource and role, the cluster service may try to bring the resource online on this node or move the group to another node of the cluster and then restart it.  Check the resource and group state using Failover Cluster Manager or the Get-ClusterResource Windows PowerShell cmdlet.

Any idea is greatly appreciated.

Thank you.



Unable to enable AlwaysON High Availability in SQL Server

$
0
0

I have Windows 2016 Datacenter edition and SQL Server 2017 web edition

Please advise Can I use AlwaysON on this editions or not?

I am getting below error, I searched on Google a lot, however, I did not get any relevant solution on it.

Relocate data and logfiles

$
0
0

Hi,

Existing situation:
setting on SQL instance data and logfiles on the same drive but different folders
data and logfiles in these folders
AG setup
New situation should be the data and logfiles folders on different drives and setting saved.

Is this possible and if so what are the steps to be taken?
I found that this is working via backup and restore and then relocate the files as needed. Hope the above can be done and is quicker.

kr
Marco

Viewing all 4532 articles
Browse latest View live


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