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

AlwaysOn - cluster lease timeouts and PREEMPTIVE_HADR_LEASE_MECHANISM

$
0
0

We have recently installed some WSUS updates + SQL 2012 SP3 (yes, all tested without a problem in UAT :) and since than it seems that AO and cluster is having few issues - it seems that cluster's lease is timing out and I am unable to figure out why.. ;/ this results in short blip and lost connectivity.

Any help would be appreciated!

AlwaysOn Extended Events:

availability_group_lease_expired; state: LeaseEpxired; Timestamp: 2016-06-12 04:58:40.34
availability_replica_state_change: current state: Resolving_Normal; previous_sate: Primary_Normal;Timestamp: 2016-06-12 04:58:40.34
..
availability_replica_state_change: current state: Primary_Normal; previous_sate: Primary_Pending;Timestamp: 2016-06-12 04:58:52.96

SQL Log:

Date: 12/06/2016 04:58:40; Error: 19421, Severity: 16, State: 1.
SQL Server hosting availability group did not receive a process event signal from the Windows Server Failover Cluster within the lease timeout period.

Date: 12/06/2016 04:58:40; Error: 19407, Severity: 16, State: 1.
The lease between availability group and the Windows Server Failover Cluster has expired. A connectivity issue occurred between the instance of SQL Server and the Windows Server Failover Cluster. To determine whether the availability group is failing over correctly, check the corresponding availability group resource in the Windows Server Failover Cluster.

Date: 12/06/2016 04:58:40
AlwaysOn: The local replica of availability group is going offline because either the lease expired or lease renewal failed. This is an informational message only. No user action is required.

Cluster log (do not ask my why it's -1h, date on all nodes is ok):

2016/06/12-03:58:40.587 INFO  [RCM] rcm::RcmApi::FailResource: (AlwaysOn)
2016/06/12-03:58:40.588 INFO  [RCM] HandleMonitorReply: FAILURENOTIFICATION for 'AlwaysOn', gen(3) result 0/0.
2016/06/12-03:58:40.588 INFO  [RCM] Res AlwaysOn: Online -> ProcessingFailure( StateUnknown )
2016/06/12-03:58:40.588 INFO  [RCM] TransitionToState(AlwaysOn) Online-->ProcessingFailure.
2016/06/12-03:58:40.588 INFO  [RCM] rcm::RcmGroup::UpdateStateIfChanged: (AlwaysOn, Online --> Pending)
2016/06/12-03:58:40.588 ERR   [RCM] rcm::RcmResource::HandleFailure: (AlwaysOn)
2016/06/12-03:58:40.588 INFO  [RCM] resource AlwaysOn: failure count: 1, restartAction: 2 persistentState: 1.
2016/06/12-03:58:40.588 INFO  [RCM] numDependents is zero, auto-returning true
2016/06/12-03:58:40.588 INFO  [RCM] Greater than restartPeriod time has elapsed since first failure of AlwaysOn, resetting failureTime and failureCount.
2016/06/12-03:58:40.588 INFO  [RCM] Will queue immediate restart (500 milliseconds) of AlwaysOn after terminate is complete.
2016/06/12-03:58:40.588 INFO  [RCM] Res AlwaysOn: ProcessingFailure -> WaitingToTerminate( DelayRestartingResource )
2016/06/12-03:58:40.588 INFO  [RCM] TransitionToState(AlwaysOn) ProcessingFailure-->[WaitingToTerminate to DelayRestartingResource].
2016/06/12-03:58:40.588 INFO  [RCM] Res AlwaysOn: [WaitingToTerminate to DelayRestartingResource] -> Terminating( DelayRestartingResource )
2016/06/12-03:58:40.588 INFO  [RCM] TransitionToState(AlwaysOn) [WaitingToTerminate to DelayRestartingResource]-->[Terminating to DelayRestartingResource].
2016/06/12-03:58:40.588 ERR   [RES] SQL Server Availability Group <AlwaysOn>: [hadrag] Lease Thread terminated
2016/06/12-03:58:40.588 ERR   [RES] SQL Server Availability Group <AlwaysOn>: [hadrag] The lease is expired. The lease should have been renewed by 2016/06/12-03:58:30.348
2016/06/12-03:58:40.588 INFO  [RES] SQL Server Availability Group: [hadrag] Stopping Health Worker Thread
2016/06/12-03:58:40.588 INFO  [RES] SQL Server Availability Group: [hadrag] Health worker was asked to terminate

Something odd - SQL wait times from last 12h:

wait type                        Wait Time      % of Total Wait
PREEMPTIVE_HADR_LEASE_MECHANISM  80,183,360 ms  39.09%
PREEMPTIVE_SP_SERVER_DIAGNOSTICS 80,183,265 ms  39.09%
HADR_CLUSAPI_CALL                40,534,655 ms  19.76%

Dodgy update somewhere? Let me know if you have any hints.

Thanks in advance, Tomasz


Availability Group listener for two Availability Groups?¿

$
0
0

Dear all,

I've got a 2014 cluster with one Availability Group created just for our ERP. I would like to create a database in the cluster for performance and tuning activities and I think best practice is create a new Availability Group for isolate the database (let me hear your ideas on that!!)

Now, the possibly stupid question:

Is it possible to use the same Availability Group listener for more than an Availability Group?

I get this message by using New Availability Group Wizard, last step (after being selected  both nodes, endpoint and the own listener,etc):

Create failed for Availability Group Listener 'NY001agl04'.  (Microsoft.SqlServer.Management.HadrModel)

The Windows Server Failover Clustering (WSFC) resource control API returned error code 52.  The WSFC service may not be running or may not be accessible in its current state, or the specified arguments are invalid.  For information about this error code, see "System Error Codes" in the Windows Development documentation.
The attempt to create the network name and IP address for the listener failed. The WSFC service may not be running or may be inaccessible in its current state, or the values provided for the network name and IP address may be incorrect. Check the state of the WSFC cluster and validate the network name and IP address with the network administrator. (Microsoft SQL Server, Error: 41009)

Thanks for your comments,

SQL 2014 won't uninstall all the way

$
0
0
I am trying to uninstall SQL 2014 so I can reinstall it because there is something wrong with it.  Whenever I open the program and feature list I can uninstall everything besides Microsoft SQL Server 2014 (64-bit).  When I try it loads for a few seconds and then an error comes up saying that the keys are missing from the dictionary.  I couldn't find anything on this for SQL 2014.  I could only find 2012 and it says to delete keys from certain directories in the registry but those locations listed contain several subcategories.  I think my SQL just decided to turn into a virus.

AlwaysOn Availability Sync

$
0
0
If I fail over to an asynchronous replica, and it’s behind, how do I sync up changes after the original primary comes back online?

How to remove permanenetly Automatically generate JOBS in sql server job event

$
0
0

dear friend,

last couple of months we're getting automatically generate jobs under sql server job event. causing occupy the resources.

in daily basis i've to remove mannualy. i've do disable the job no of times from properties, but it generates again.

kindly help how to remove it permanently. following are the job which generates automatically-

15559-cook.exe,

15564-dbdotas

15565-dbdotas2

15552-ftpbacks.exe

15554-install.exe

15555-kills.exe

15557-kugou2010

15558-macs.exe

15553-pdoors.exe

15561-regs.exe

15562-regsa.exe

SQl 2016 Basic Availiability Groups basic questions

$
0
0

Trying to understand SQL 2016 Basic Availiability Groups (BAGs), coming from SQL 2008 R2 environment with no clustering, no mirroring, just regular backups. I am not a DBA and we are a small company. Been reading TechNet, various SQL blogs.  I understand the 2-node no-read, no-backup situation, but it's one step better than we have now and affordable. Looking to architect and budget for 2017 upgrades/migrations (SharePoint 2016 and some non-Microsoft platforms). I have some really basic questions:

Each primary database would be in a BAG with its secondary. So if we have 20 databases, we would have 20 BAGs, yes?

Can we have one SQL server that would host the secondary databases for two different primary database servers? (ergo, three server cluster) Example: SharePoint databases on SQL1, non-SharePoint databases on SQL2, and the secondary databases of both on SQL3. With Windows clustering only, not also SQL clustering.

Thanks,

Joan

Always On Availability Groups and System.Transaction

$
0
0


Hi,

When using Windows Server 2016 Preview TP5, SQL Server 2016 adds support for Always On Availability Groups and Cross Database Transactions using MSDTC.

However there are Transactions which do not use MSDTC, within the .NET Framework there is System.Transactions namespace

As per "Transaction Management Escalation" on msdn microsoft com these implement a Transaction Manager which can handle transactions within SQL Server and System.Transactions only SOMETIMES escalates to MSDTC!

“As long as the System.Transactions infrastructure handles..at most one durable resource that supports single-phase notifications, the transaction remains in the ownership of the System.Transactions infrastructure”

The questions then arewith SQL Server 2016 AlwaysOn Availability Groups (on Windows Server 2016 Preview) and a cross database transaction:

a) Does SQL Server 2016 AlwaysOn Availability Groups support single-phase notifications?

b) With SQL Server 2016 AlwaysOn Availability Groups does more  than 1 single database in a transaction count as 1 durable resource or more than 1 durable resource?

i.e. would System.Transaction always escalate to MSDTC to handle cross database transactions when Windows 2016 Preview+2016 AlwaysOn Availability Groups are involved?

Thanks,
David.

Use Sql server Always on Listener name for server path

$
0
0

i have Setup sql server always on architecture with listener, can we use listener name for server path? that will point to primary server always.

like how can i use 

\\ListenerName\Drive$\file.txt instead of \\servername\Drive$\file.txt




Gathering info about WFC

$
0
0

Hi there, how can I check all the failover clusters in my network?

My aim is get all the failover cluster names and their nodes associated. I have obviously this info if I run WFCM and start Cluster-Aware Updating where I can check for every failover cluster by using a ComboBox.

If you have any .ps1 it would be greatly appreciated!

Always On High Availability Multi Subnets

$
0
0

Here is my layout:

Node 1 and Node 2 are in one subnet with the witness server.

Node 3 is in another subnet.

My question is can I have more than 1 witness server to optimize fail-over if the location where Node 1, 2, and the witness server are located goes down?

Application that generates SP_CURSORXXX traffic

$
0
0

Hi

I'm working on TDS aware DB Load Balancing proxy server.
I just wanted to test/evaluate that w.r.t to SP_CUROSRXXX type of traffic.
Like [
SP_CURSOR | SP_CURSOROPEN | SP_CURSORPREPARE | SP_CURSOREXECUTE | SP_CURSORPREPEXEC | SP_CURSORUNPREPARE | SP_CURSORFETCH | SP_CURSOROPTION | SP_CURSORCLOSE]
Can anyone point to an real time application [openCMS, Drupal, sugarCRM kinda] which generate that kind of traffic?

Help is appreciated.

Thanks
Manoranjan

Uninstall SSAS services on SQL Server 2008R2 failover cluster

$
0
0

Hi,

I am ranjit working as SQLDBA, I have a question that   can we uninstall SSAS services on SQL Server 2008R2 failover cluster,

If yes please let me know the steps or any links to follow. If no what would be solution.

My environment :   SQL Server 2008R3 Failover cluster, Its 2 node active passive cluster.

Resources :  DB Engine, SSIS,SSAS.

One more question how can i identify the SSAS,SSIS are installed on  SQL failover cluster or

standalone,  I would be appreciate for your response.

Thank you

Ranjit

ranjitrouthu@gmail.com


Rebuild SQL Server "fail-over Cluster Installation" Node in a 2 Node- Clustering Environment

$
0
0

Environment:

Windows Server - 2008 R2 

SQL Server - 2008 R2 SP2 Enterprise (x64)  ; Type- Cluster 

Nodes part of SQL Cluster-

Server-A  and Server-B

Server-A( failover Cluster Installation done)

Server-B(Add node Installation done)

Scenario:

i.We had issues with  'Server-A' where it got corrupted and Windows team has asked us to rebuild the Server-A and the SQL Installation as well 

Query:

1.Will the SQL setup will allow us to perform "add node" Installation, which is the rebuilded node, where previously (SQL- failover Installation ) was performed 

** SQL Server "Add node installation" succeeds based on the current Active node(where SQL Services are up and runningof the cluster -or- the node where SQL"failover cluster installation" is performed first during initial SQL Cluster Installation. 

Solution:

a.If, the Add node installation is correct option , please get me the blogs/forums that justify it 

or

b.If I need to rebuild the complete SQL Cluster, please get me the blogs/forums that justify it 


PREM GOKULL

Maintenance Plan (Backup) Fails

$
0
0

All,

  I have done a bit of research about how to setup a Maintenance Plan for automatic backup of my SQL Databases in SQL 2014.  I setup the maintenance plan select the database and location for the backup, however when I try and run it I get a error

"Non-SysAdmins have been denied permissions to run DTS Execution job steps without a proxy account.  The Step failed"

I have also tried to execute this under a account this is a SysAdmin and get the same message.  So I followed Microsofts articles and created a Credential and Proxy with the AD SQL Backup account I am wanting to use however I haven't found a way to assign the proxy to the Maintenance Plan.

I am very new to SQL backups.  Any help will be greatly appreciated.

Thanks


<p>MCSA: Windows 7/8.1</p>

Making connections easy when you've multiple named SQL instances on a Single Cluster.

$
0
0

What we use today to connect with a named CLUSTER INSTANCE is SQLcap+Ins Nam+ Port.

SQL’s CAP

Instance Name

Port

Connectoid

While this works

SQLa

Default

M

SQLa

SQLa

SQLb

Xx

N

SQLb\Xx,N

SQLb

SQLc

Yy

O

SQLc\Yy,O

SQLc

 We can set it up to work with SQLcap + Ins Nam + Port only, after changing the PORT to 1433.

Benefits is that users get rid of

  1. A mumbo-jumbo (SQLcap+Ins Nam+ Port) and uses an easier to remember token.
  2. Maintaining a connection string with (SQLcap+ Ins Nam+ Port).
  3. Creating aliases in case of migration or planed exodus.
  4. Easier renames.
  5. And we can delete the browser service DLL to save disk space (joking).

Effort Needed

  1. Ammend the SPN creation method .
  2. Update support guide lines that actually this [SQLcap + Ins Nam + Port] is this [SQLcap+Ins Nam+ Port].

So token is not actually what you get from select @@servername (which remains SQLcap+ Ins Nam).

This has been tested & works with…

  1. SSMS, OSQL, SQLcmd
  2. UDL
    1.      SQL Server Native Client.
    2.      MS OLE DB Provider for SQL Server.

Now this is worthwhile for fat setups (multiple SQL FCI consolidated on a single WSFC). Kindly share your thoughts if you’ve done this in the past or any good/bad experience around this.


yup


Query on SQL Server 2014 Always On

$
0
0

Hi All,

We are planning to configure SQL 2014 always on feature on our PROD DB servers from primary DB to secondary DB.

Currently we have two SQL boxes (DB1-primary & DB2-secondary).

Can you please tell me is it mandatory to involve witness server (DB3) in SQL 2014 always on topology for automatic fail-over.


With AlwaysOn Failover clustering I cannot add a generic service to both the prod cluster and the dr cluster

$
0
0

I have always on configured between my production cluster and my dr cluster.  Each site has 2 nodes as part of its cluster. So altogether the WSFC has 4 nodes.

SQL works fine and availability groups are setup and working as expected.

The problem is that I have a service which must run on both the production and the dr cluster. But since technically this is the same cluster , I can only add the service once. Either on the DR side or the production side.

How can I run the same generic service clustered in both production and dr?

BTW. I am not able to change the name of the service.

sql 2012 failover cluster ERROR::: Cluster resource 'SQL Server (instance name)' of type 'SQL Server' in clustered role 'SQL Server (instance name) ' failed.

$
0
0

hello

i am running sql server 2012 fail over cluster, it was running great till i had to restart the sql nodes for windows update installation.

then one the instances didn't work and gave me::

Even ID 1069::: Cluster resource 'SQL Server (instance name)' of type 'SQL Server' in clustered role 'SQL Server (instance name) ' failed.

Index automation script

$
0
0

Hi,

I am looking for index automation script and update statistics script for to do fragment all indexes automatically in all databses in a server , when we run the job which contains stored proc.  

 

Migration of SQL Cluster 2008 (Windows server 2008) - 1 physical node, 1 virtual node, NEW SAN, NEW VSPHERE

$
0
0

Migration of SQL Cluster 2008 on windows server 2008

  • (One Physical Node and 1 Virtual)
  • Also migrate the storage (LUNS) from old SAN to the new SAN (robocopy)
  • 2 VMware farms (old and new) – completely independent

 

From your past experiences, Would below high level steps achieve this above objective

  • Remove (evict) the physical node from the SQL Cluster
  • There is a Cluster with only 1 node (virtual)
  • Storage Vmotion the SQL Virtual node (vmdk) to the new VMware Farm
    • Please note old storage is accessible by the new VMware farm
    • Therefore the pass through LUNS for SQL clusters will still be visible the virtual node
  • Create NEW pass though LUNS on the NEW STORAGE with a temporary drive letter
  • Robocopy all the data (all volumes) from the exiting volumes to the new VOLUMES with temporary drive letter
  • Once the robocopy has finished , do a cut over i.e. change the temporary drive letters to the production drives letters
  • OPERATE SQL server

 

Questions.

  • As the new pass through LUNS would have different disk signatures etc, will the SQL Cluster ‘BEHAVE’ only if the drive letters are the same and exactly the same data as OLD pass through LUNS
  • Or will we have to add them to the cluster again somehow?

 

We are going to LAB this but if anyone has prior experiences , it would be good to have their view as well and if we make it work, I will post the steps of the LAB

ALSO  would this be supported from MS perspective?

Regards

Viewing all 4532 articles
Browse latest View live


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