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

Post AG DR steps

$
0
0

So, I am messing around with a test system, and have built a 3 node AG with a file share witness. The AG has 1 database in it, and I have simulated a failure of the 2 main nodes in DC1 and the file share witness in DC2. In DC3 I went through the steps mentioned in this article on to recover the DR site DBs in the AG and bring them online. My question is this:

Once the primary site is back up, what steps would need to be taken to move the AG back to the primary site DC1?

I am doing my own testing, but was wondering if anyone has any documentation links. All I seem to find are what to do if a disaster happens. Not what to do once the world becomes a better place again.


John M. Couch


Readonly Routing ON Named Instance with AlwaysON (SQL 2014)

$
0
0
Hi,

I have multiple instance of SQL Server 2014 running on Windows 2012. I have configured Always ON for both the instances.

Each have their own listener configured with separate static ip address.

One Instance is configured with default port 1433 and another instance is configured with 1436.

I have also configured read-only routing URL and read-only LIST for both the instances.

Read-only connections for default connection is working as required.

But for Named instances the read-only connections always defaults to primary instead of secondary replica.

I have used the below command to test the connectivity.

sqlcmd -S <agname,1436> -d <dbname> -K readonly

Any suggestions will be highly appreciated.

Regards,
Kccrga

-kccrga http://dbatrend.blogspot.com.au/

difference between windows cluster and sql servers cluster

$
0
0

can any one plz define me what is windows cluster and sql server cluster 

is there any cluster like sql server cluster


Kamal

How to get valid reason of Automatic fail over in always on availability group

$
0
0

We have setup always on availability group with two nodes.

i found that automatic fail over is occurring multiple times, i check in Extended events-> Alwayson_Health

i did not found any reason other than the "A connection timeout has occured on a previous connection to availability replica Server1` with id [xyz] either a network or a firewall issue exists..." is this something 

how can i get the valid reason why servers are getting switched so that i can resolve that problem.

this is our production box to its a serious issue kindly give your valuable suggestions 

SQL Server always-on maintenance plans

$
0
0
Hello, I have question about Statistic Updates and Index Rebuild and Reorganization.
We have deployment of 4 SQL Servers with AG, and if on one of replicas we run:
Index defragmentation
Update statatistic
All changes will replicate on all SQL Server in AG or we should run this on each of servers.

SQL 2008 Cluster every disk but the quorum disk does not move during manual failover

$
0
0

I have an old SQL 2008 (non-R2) two node cluster that may or may not have an issue.  The two nodes are VMware virtual machines with a quorum raw disk in the standard way:

  • All cluster disks including the quorum are assumed by Node2 during a complete service failure, like a server down/reboot.
  • A manually triggered failover of all clusters and services from Node1 to Node2 results in Node to assuming all shared disks except the quorum.  The quorum is still held by Node1.  No errors are reported in Windows Event Logs.

If Node2 can assume the quorum during a reboot, then it doesn't appear to be permissions related.  Where else should I look at?

Connect to SQL Server clustered instance

$
0
0

Hi 

In my connection string when connecting to SQL Server named instance on cluster environment both setting a working for me

NetworkName\InstanceName,PortNo

and

NetworkName,PortNo

Witch one is best to use? are we still need SQL Server Browser running to connect

Thanks

Shutting down the Cluster

$
0
0
We need to shutdown all nodes in an Always On group due to Data Center Maintenance.

Do I need to do anything prior to Shutting down the cluster in Failover Cluster Manager.

Do I need to do anything once the nodes are rebooted.

Thank you.



SQL server developer edition clustering license

$
0
0
Hi

I am looking for SQL server developer edition license terms applied to
SQL failover clusters.
And I can find only for standard edition((

How many licenses do I need if only one node is active?

Thanks

In AlwaysOn Database state is NOT SYNCHRONIZING/RECOVERY_PENDING

$
0
0

I have instance with multiple databases and with AlwaysOn configured. Due to some issue from storage disks services got restarted.

After services up, In primary replica, some of the databases state went to NOT SYNCHRONIZING/RECOVERY_PENDING, some of the DBs are fine.

It's a cluster AlwaysOn setup.

Can anyone please advice me with steps/way to bring databases back to Online/Sync mode ?

Thanks.

Readonly Routing for Users

$
0
0

Hi All,

I have requirement to have users to connect to only secondary replica in always on (SQL Server 2014 SP2) using SSMS.

I know there is a way to to set application intent=READONLY. 

Is there is any way the connection string can be saved locally in the machine?

Regards,

kccrga


-kccrga http://dbatrend.blogspot.com.au/

How to backup and clear logs (truncate logs) on an AAG Database

$
0
0

I have read Microsofts steps but if a Copy-Only Backup is only supported in an Always On Group then how will the logs be cleared?

I have a primary and secondary server in an AAG configuration, I've read I can backup the secondary replica which will also clear the logs on the primary when the maintenance plan runs, but a copy only backup does not clear the logs as far as I know.

Please confirm what I am missing here so I can configure the backups to clear the logs,

Thanks


I need download this Hotfix KB 2654347A, but i can't in this site - https://support.microsoft.com/en-us/kb/2654347

$
0
0

help me please to download  this  hotfix  KB 2654347A introduces support for the AlwaysOn features from SQL Server 2012 to the .NET Framework 3.5 SP1.  All supported x64-based versions of Windows Server 2008 R2 SP1


in this site can't download ---> https://support.microsoft.com/en-us/kb/2654347

Failover Clustering with SQL Instances

$
0
0

Hi,

My previous experience with failover clustering has only been with hyper-v clustering, so I am looking for some advice on how SQL clustering should be configured and how it works.

with hyper-v clustering i can move a "role" (a virtual machine) using live migration with no downtime

if a physical node goes down, the VM that runs on top goes down and fails over to another node

part of our quorum setting involved having either a disk quorum or a file share witness

now onto SQL, which i know very little about:

we have multiple instances running on a node (roles), if we perform a planned failover all the databases go offline and then come online on the other node, a planned failover incurs some downtime - is this normal?

if a physical node goes down, DBs go offline and come back online on the other node - i assume this is normal

we dont seem to have a disk or file share witness but we do have a DTC role - is this normal for quorum settings? it seems it is in node majority for the quorum, but we have had failures (in a 2 node cluster) and we can't connect to the cluster manager until the node that went down comes back on, yes this could be due to networking but i'm trying to rule out and understand the quorum setting first. if we perform a planned failover and pause the node (draining the roles) then take the node down, we can successfully still manage the cluster running on the remaining node.

The failover cluster nodes are running Windows Server 2012 R2 Standard, and SQL is 2012 R2 Standard, appreciate any advise you can provide.

Many thanks for your time

Steve


I can't add the recent removed database to my AG

$
0
0

Hi there,

I've removed the database in my Availability Group and then it has removed in my secondary replica.

But in fact this database needs to be in my Availability Group for auditing reasons. If I try to add again, it fails.


Advantage of having multiple listener name

$
0
0

Hi,

What is the practical advantages of having multiple listener names for databases in AG.

Regards,

Arun


Best Regards, Arun http://whynotsql.blogspot.com/


SQL 2012 AlwaysOn Guest VM's on top of Windows 2012 R2 Hyper-V Cluster

$
0
0

Hi everyone, i have a 3-node Windows 2012 R2 Hyper-V Cluster and i want to setup a 2-node SQL 2012 AlwaysOn using Higly Available VMs (inside Hyper-V Cluster).

I know that SQL 2012 AlwaysOn is not supported on CSV disks. But is it supported to form my SQL 2012 AlwaysOn cluster inside those two VM's using a virtual SAN Switch and having my LUN's mapped directly on that VM's?  My storage is FC so i can present a virtual Fibre Channel adapter to VM's and attach storage disks directly. My purpose is to have my database files living on the LUN's, not on the OS drive (the OS drive will live on a CSV drive). Is this (or a similar...) configuration supported? 

Just to make it simpler:

VM OS Drive:  on a CSV Drive

VM Data Drive: directly on a storage's LUN.

VM Logs Drive: directly on a storage's LUN. 

My goal is to have my SQL 2012 AlwaysOn VM's highly available and also my Databases highly availabe. So is this configuration supported?

Thank you advance,

George


SQL 2012 AlwaysOn as Guest Cluster on top of Windows 2012 R2 Hyper-V

$
0
0

Hi everyone, i have a Windows 2012 R2 Hyper-V Cluster and i want to setup a two node SQL 2012 AlwaysOn using VMs.

I know that SQL 2012 AlwaysOn is not supported on CSV disks. So i would like to know if it is supported to create my two SQL 2012 VMs (e.g. SQL-VM1 on Node1 and SQL-VM2 on Node2) without making them higly available and have some LUNs (e.g. LUN10, LUN11, LUN12 ) directly attached to VM SQL-VM1 and some other LUNs (e.g. LUN20, LUN21, LUN22) directly attached to VM SQL-VM2. Then i will create the AlwaysOn Cluster inside those VMs (forming a guest cluster) . Is this a supported senario? Rememer, my hosts are also configured as a Hyper-V cluster for some other, highly availabe VMs. 

Also if this is supported, it is better (and supported) to add my LUNs to Hyper-V Cluster (not as CSV disks but as available space) and have my VHDs for my SQL VMs created on those disks?

Thank you advance,

George

Availabiliity group replica error

$
0
0

On the replica secondary the under Availability Databases the database has a yellow yield icon on the database. When you right click the database it says "Joni to Availability Group". When I chose this it errors out with the below error.

Failed to join the database 'DATABASE' to the availability group 'grpMain' on the availability replica

The mirror database, "DATABASE", has insufficient transaction log data to preserve the log backup chain of the principal database.  This may happen if a log backup from the principal database has not been taken or has not been restored on the mirror database. (Microsoft SQL Server, Error: 1478)


Alan

Service Account for SQL 2016 Failover Cluster on Windows 2016 Workgroup Cluster

$
0
0

I am trying to install SQL Server 2016 failover cluster on a Windows 2016 workgroup cluster.

I have tried using both a virtual account and a local account (thats exists on all nodes with same password).

Both types of account throw an error demanding a domain account.

What type of account should I use?

Viewing all 4532 articles
Browse latest View live


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