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

SQL Server 2008 R2 Failover cluster installation error cluster instance name already exists

$
0
0

Hello to all.
Please help me to find a solution to my problem.

The SA install a 2008 failover cluster with two nodes, so I can install SQL Server 2008 R2 failover instance, but I get an error when I ask to put the cluster name: "The SQL Server failover cluster instance name already exists as a clustered resource.  Specify a different failover cluster instance name."

I've found that the resolution for this is to find the orphan resource using "cluster RES" but when I enter the command I don't see any orphan resource only the name of the two nodes.

What I did was to put other name and the installation process continued, but when I get to the part when I have to indicate the IP address, and write the cluster IP, I got another error: "The IP address is already in use....."

I don't know what am I doing wrong, the name I'm using is "clustername" indicated after this line, and the IP is the "clusterIP", is that correct? .

This is what the SA gave me:

Cluster name: "clustername.domain.local (clusterIP)"

Host1: "hostnename1.domain.local(host1IP)"

Host2: "hostnename2.domain.local(host2IP)"

Edgardo Mancía


Issue while adding Replica in Always On

$
0
0

Hi All,

I am facing an issue while adding "Replica" in Always On. Please suggest me on below scenario.

Windows Cluster Name: WINCLS

SQL Cluster Name (NW Name): SQLCluster

1. I have configured two node Windows Failover cluster with shared storage ( Host Name: NodeA & Host Name: NodeB). The windows Cluster name is : WINCLS

2. Performed SQL Cluster installation on both nodes and SQL cluster name (NW name) is  : SQLCluster

Then I have Started creating new availability groups on NodeA (primary node).

In "Adding a Replica to a Database" wizard, I need to add secondary replica. Can you please tell me which SQL instance name or format of SQL instance I have to select here to connect SQL cluster name (NW name)?

I have only one SQL Cluster instance in my network that is SQLCluster. I have selected SQLCluster as a secondary replica in "Adding a Replica to a Database" wizard but I got error (already selected error....).

Do I need to perform one more stand alone SQL installation with named SQL instance on NodeB?

Service Broker up but not processing after AG failover

$
0
0

We have a 2012 server with SQL Server 2012 sp2 set up with and availability group. If we fail the AG to the B node, service broker comes up, but does not process. All messages sit in the queue.

We have been through all the docs for service broker and availability groups, and all appears to be set up correctly.  Any ideas very welcome!


Dianne

SQL2016 Configuring Always ON to use Round Robin Mechanism for Read queries

$
0
0

I have downloaded evaluation version of SQL2016 to test the Always ON especially the round Robin Mechanism.

Configured Always ON with Two nodes and updated the Always ON to route the read queries to secondary node. . All the read queries from the application are still going to NODE1 after the below changes.  Am i missing some thing..?

ALTERAVAILABILITYGROUP AL2016

MODIFYREPLICAON

N'NODE1'

WITH

(

      SECONDARY_ROLE(ALLOW_CONNECTIONS=READ_ONLY)

);

GO

ALTERAVAILABILITYGROUP AL2016

MODIFYREPLICAON

N'NODE2'

WITH

(

      SECONDARY_ROLE(ALLOW_CONNECTIONS=READ_ONLY)

);

GO

ALTERAVAILABILITYGROUP AL2016

MODIFYREPLICAON

N'NODE1'WITH

(

      SECONDARY_ROLE(READ_ONLY_ROUTING_URL=N'TCP://NODE1.xxxx.local:5022')

);

GO

ALTERAVAILABILITYGROUP AL2016

MODIFYREPLICAON

N'NODE2'WITH

(

      SECONDARY_ROLE(READ_ONLY_ROUTING_URL=N'TCP://NODE2.xxxx.local:5022')

);

GO

ALTERAVAILABILITYGROUP AL2016

MODIFYREPLICAON'NODE1'

WITH

(

PRIMARY_ROLE

(

READ_ONLY_ROUTING_LIST=('NODE2')

)

);

ALTERAVAILABILITYGROUP AL2016

MODIFYREPLICAON'NODE2'

WITH

(

PRIMARY_ROLE

(

READ_ONLY_ROUTING_LIST=('NODE1')

)

);


VenkatRaju K

SQL Server 2008 R2 installation

$
0
0

Hello to all.
Please help me to find a solution to my problem.

The SA install a 2008 failover cluster with two nodes, so I can install SQL Server 2008 R2 failover instance, but I get an error when I ask to put the cluster name: "The SQL Server failover cluster instance name already exists as a clustered resource.  Specify a different failover cluster instance name."

I've found that the resolution for this is to find the orphan resource using "cluster RES" but when I enter the command I don't see any orphan resource only the name of the two nodes.

What I did was to put other name and the installation process continued, but when I get to the part when I have to indicate the IP address, and write the cluster IP, I got another error: "The IP address is already in use....."

I don't know what am I doing wrong, the name I'm using is "clustername" indicated after this line, and the IP is the "clusterIP", is that correct? .


This is what the SA gave me:

Cluster name: "clustername.domain.local (clusterIP)"

Host1: "hostnename1.domain.local(host1IP)"

Host2: "hostnename2.domain.local(host2IP)"

Edgardo Mancía

Multi-Instance SQL Failover Cluster (Active-Active Cluster) - Database writes

$
0
0

I was advised to bring this post over here.  See below & thanks!

In my organization we stood up a test SQL failover cluster.  We began with the typical 2 node architecture where node1 holds the SQL role and node2 is configured as an additional node on standby in the SQL cluster.  When we write big blocks of data into the test data base and pull the plug on node1 the cluster gracefully hands the SQL role to node2 and the data being written continues to write.  Great - that's what we want!

Next - we decided to get fancy.  Instead of installing the SQL role on one server and then adding the other node to the SQL server failover cluster, we installed a new SQL Server failover on both nodes.  Next we ran the SQL installer and added node1 to node2's sql instance and vise versa for node2.  Now we have two SQL server roles - with a preferred owner for both:

  • SQLROLE1 -- preferred owner is node1
  • SQLROLE2 -- preferred owner is node2

We can successfully run both roles off of one node - however when failing over the database write is interrupted (which basically defeats the purpose of the failover cluster)...Anyone have some thoughts on how we can get the same write performance we were having before with an A B config versus the A A (Multi-Instance) config?

Thanks,

Justin


Justin Carlton


Justin Carlton

New databases should be add automatically to AlwaysOn

$
0
0

Hi All,

Currently as per the request, I m working on, when ever the new database created on the server, it should be added to AlwaysOn group.

Here I have written a code in the below way,

:Connect NODE1
BACKUP DATABASE [DB1] TO  DISK = N'\\NODe1\ag-sp1p\DB.bak' WITH  COPY_ONLY, FORMAT, INIT, SKIP, REWIND, NOUNLOAD, COMPRESSION,  STATS = 5
GO
:Connect NODE2
RESTORE DATABASE [DB1] FROM  DISK = N'\\NODE1\ag-sp1p\DB.bak' WITH  NORECOVERY,  NOUNLOAD,  STATS = 5
GO

Issue:
The above code working normally with in the cursor it is/was failing

Cursor Code would be like below:

:Connect NODE1
BACKUP DATABASE @name TO  DISK @filename
GO
:Connect NODE2
RESTORE DATABASE  @name FROM  DISK = @filename
GO

Error:
Backup location is taking like with default backup location

EG: Default Location: C:\Programfiles\MSSQL\Backup\\\NODe1\ag-sp1p\DB.bak' WITH  COPY_ONLY, FORMAT, INIT, SKIP, REWIND, NOUNLOAD, COMPRESSION,  STATS = 5

hence the above location is not valid, the query not executing.

Please suggest.

Thanks,

Satish Kumar.


Thanks, Satish Kumar. Please mark as this post as answered if my anser helps you to resolves your issue :)

How to migrate SQL 2005/2008 Clustering to New SQL 2008/2012 Clustering with No Changes in IP Address and Host name ?

$
0
0

Hi,

SQL DB Migration Query.

I am aware about 

CASE 1: Use Existing IP for new server in Side by Side migration of Standalone SQL Server

1. FULL Backup of SQL USER DB
2. Stop SQL Services - Old Server
3. Swap or change IP Address (Old server and New Server)4. Swap or Change Host Name of Old and New Sever5. Change Host name in SQL Server
6. Restore Full Backup of user DB on new Server

CASE 2: How to migrated SQL 2005/2008 Clustering to New SQL 2008/2012 Clustering with No Changes in IP Address and  Host name

Please share the Steps for Side by Side migration of SQL Server Active/Passive Clustering with No Changes in IP Address and host name

i.e. use IP Address and host name of Old SQL Clustering (Active/Passive) server because in SQL Server 2008/2012 Clustering (Active/Passive) following IP and host name are used. 


1. 2 Public and 2 host name
2. 2 Private
3. 1 Windows Virtual IP and 1 virtual host name or network name
4. 1 SQL Virtual IP and 1 virtual host name or sql network name
5. 1 MSDTC Virtual IP and 1 virtual host name or msdtc network name

Regards

Nikhil P Desai

          




Adding a data base named instance to a SQL Server 2016 Failover Cluster

$
0
0

We are deploying a two node Windows Server 2016 Failover Cluster with SQL Server 2016.

We would like to add a named instance, but really cannot see the option in setup other than add a node or create a new cluster.

Any experience and instructions would be appreciated.

High Availability

$
0
0

Hi all,

How is High Availability enabled on SQL?

Thank you.

Help with failover Cluster

$
0
0

Hello,

I have a WSFC with allwayson.

2nodes are in same region and 1 in a different one.

In top of that i have a SQLServer with allwayson.

On region1 the resources can failover between the 2 nodes.

In case of DR sql server will failover (via allwayson) to region2.

In order to do some tests we have broke the communication between regions.

After, in region 2 we have forced cluster online without quorum. (In region 1 we kept everything working) 

The sql allwayon went online and all tests were done sucessefully.

After all the tests we have (in region 2) shutdown cluster and remove the vote from the DR node. We also have stopped all sql server resrouces (Avaiability groups and  listener).

Once all was down we have resume the communication between the 2 sites. NOW the problems appear.

The Cluster dns name as well as the SQL AO listener names have been removed from the primary and secondary dns.

When i try to add a listener to a new instance i get

The DNS name from the cluster resrouce also has desapear.

Creating it manualy hasnt worked :(

In the event viewer i get 

Cluster network name resource 'Resrouce' failed registration of one or more associated DNS name(s) for the following reason:

The handle is invalid.

Can anyone help?

Regards,

Arestas

File/Filegroup restore

$
0
0

Using the new WideWorldImporters database as an example; this database contains one primary file (WWI_Primary) and one secondary (WWI_UserData) each within their own filegroup (PRIMARY and USERDATA respectively). I have a full, a T-Log and a file backup of JUST the secondary file, which all went just fine, but if I attempt to restore ONLY the secondary file (with no recovery so I can apply the log backup) it tells me the primary file does not exist in the backup, and that it must be restored first... and the restore terminates. Ummm... forgive my logic but if the primary file has to be restored first what's the point of being able to do a secondary file backup? It's in essence telling me that I have to do a full restore from a full backup. I don't need the primary file to be restored as it's perfectly fine. Isn't that the point of a file restore? To nothave to restore the entire database??

Cluster Not Working

$
0
0

SQL Server 2014 SP1 with a 2 member cluster. However, i don't believe the "cluster" part is working. Here's why: not long ago, i created a SQL DB with one of the cluster members. When that member does not work (for whatever reason), the program that the DB belongs to doesn't work! There are some other things that have been wrong that we have let ride but now, i am going to pitch destorying ALL the SQL clusters (some arent used and some are even misspelled) and maybe even killing the SQL installs and starting over from scratch! I know that is a BIG task and even saying it here reminds me of the existing DB's and what it would take to get those DB's along with their respective programs back up and running..... We have a McAfee ePO server with a DB on the "cluster", WSUS with a DB on the "cluster", SCOM 2012 R2 with 2 DB's on the "cluster"

This morning, that same member will NOT start any SQL service. Says it can't find the error.log which is reachable. When i try to open the error.log with notepad, it says it can't open because the error.log is used by some other program. I'm at the end with this "cluster". What would SQL experts do, fix the existing "cluster" or start from scratch?

SPN Registration error while bring online Cluster resource

$
0
0

Any once can help on below error SPN Registration error  while bring online Cluster resource 

-----------------------

The SQL Server Network Interface library could not register the Service Principal Name (SPN) [ myDbsvc/ERP1.xxxx.com:1433 ] for the SQL Server Service.  Windows return code: 0x2098, state: 15.  Failure to register a SPN might cause integrated authentication to use NTLM instead of Kerberos.  This is an informational message.  Further action is only required if Kerberos authentication is required by authentication policies and if the SPN has not been manually registered.

---------------------y3kvpyn

Appreciate 


How to Change IP and Host Name of Node 1 and Node 2 in Active Passive Clustering?

$
0
0

Hi,

Suppose SQL Server 2012 is implemented Active/Passive on Windows Server 2012 R2 Server. We want to change the

public IP, private IP and Host-Name of Node 1 and Node 2 without affecting SQL Server Clustering Services. 

Please share link or procedure to do the changes.

Thanks in advance,

Nikhil P Desai


AlwaysOn Availability Group

$
0
0

Hi gurus,

I have been reading about AlwaysOn Availability Group and it appears I have problem comprehending the use case between AG and FCI.

I am trying to setup SQL HA between 2 nodes in the same site, without the use of a shared storage. The purpose is to provide HA in the event of hardware/software failure on the primary node. Can I use AlwaysOn AG for this?

Thanks.

Availability Group secondary replica WSFC node down with all network unavailble. Evict and rejoin possible?

$
0
0

Hi Team,

We have AG configured between primary and DR datacenter. node in DR that is running AG secondary replica is shown down in Windows Cluster manager. All network are coming unavailable. Since there is AG configured as secondary replica on this node for SQL, What would be the right way of evicting this node and rejoin to WSFC again?

Will evict and rejoin break AG ? Do i need to remove AG before evict and rejoin and reconfigure AG replication again once node is rejoined?

Any pointers will be appreciated. Thanks

Regards

Disk Defragmentation of clustered SQL DB disks

$
0
0

Hi

We are converting Physical SQL servers in cluster to VM, the fragmentation is showing as 22% on 2 X 1TB DB located disks which are on SAN. Is it recommended to defragment the disks during working hours, also should we contact SAN vendor to do anything from their end?

Thanks in advance


LMS

WSFC running SQL FCI in primary with SQL standalone in DR. Vote and Disk witness or FSW

$
0
0

Hi Team,

We have 3 node WSFC . 2 nodes are running with shared storage in Primary DC and 1 node 3 (no shared storage with Primary) is in DR . We will have AG configured between Primary and DR SQL instances. In WSFC, we have removed vote (as per few many article available online) , so in this case how many number of nodes do we take into account while deciding on Disk  Quorum (anyway its FCI with shared storage between node 1 and node 2) or File shared witness?

should we count it as 2 node or 3 node (no vote) and decide on disk witness or FSW?

Our node 3 in DR goes down frequently and error we see 'The Cluster service is shutting down because quorum was lost' in cluster manager. We are wondering if we need to change the quorum model to SFW from disk quorum witness ?

Any pointers will be appreciated. Thanks

                   

Questions on Worker Threads.

$
0
0

Greetings. For several months now we've been getting alerts re high Worker Threads in our server that houses an Availability Group. This is a large data warehouse environment (I know, not ideal for an AG) that runs about 1500 ETL processes each night. Last night however we had an AG crash that created a stack dump, and generated this message in the SQL log at the end of the stack dump messages:


Message
The lease between availability group 'myAG' 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.

While my boss is painfully going through diagnosing the dump, I'm trying to determine if our high WT's could be what caused the issue.  

A few  months back I used this link to start gathering WT information every 5 minutes via a SQL job. Here is the code used to create my job:

--step wtSumOfWorkersCount
insert into wtSumOfWorkersCount(dateAdded, [sum_current_tasks_count], [sum_current_workers_count], [sum_active_workers_count])
select getdate(), sum(current_tasks_count), sum(current_workers_count), sum(active_workers_count)
from sys.dm_os_schedulers

--step wtCountWorkersByWaitType
insert into [dbo].[wtCountWorkersByWaitType]
(is_preemptive,return_code, state,last_wait_type, numWorkers, dateAdded)
select is_preemptive,return_code, state,last_wait_type,count(*)  , getdate()
 from sys.dm_os_workers
Group by return_code, state,last_wait_type,is_preemptive

--step wtCountRequestsByUserProcesses
insert into wtCountRequestsByUserProcesses
select  is_user_process,count(*) , getdate()
from sys.dm_exec_sessions s
inner join sys.dm_exec_requests r
on s.session_id = r.session_id
group by is_user_process

--step   wtCountNotCountedAgainstMax
;with cte as

(

       select

              s.is_user_process,
             w.worker_address,
              w.is_preemptive,
              w.state,
              r.status,
              t.task_state,
              r.command,
              w.last_wait_type,
              t.session_id,
              t.exec_context_id,
              t.request_id
       from sys.dm_exec_sessions s
      inner join sys.dm_exec_requests r
       on s.session_id = r.session_id
       inner join sys.dm_os_tasks t
       on r.task_address = t.task_address
       inner join sys.dm_os_workers w
       on t.worker_address = w.worker_address
       where s.is_user_process = 0
)
insert into [dbo].[wtCountNotCountedAgainstMax]
( is_user_process,command,   last_wait_type,   cmd_cnt, dateAdded)
select
       is_user_process,command,
       last_wait_type,
      count(*)
	  , getdate()
from cte
group by is_user_process,command, last_wait_type

Now I'm trying to diagnose all the info I have collected and have several questions:

1) I ran "Sp_server_diagnostics" as suggested at the top of the article. It says my Max WT count is 2944. The problem though is now matter what I query, my WT's are nowhere near 2944. That said I'm lead to believe either my alert is completely bogus, or my queries for this job are completely off. However, as you'll note all I did was copy/ paste from the MSDN blog. Any ideas here? An important fun fact is that 6 minutes before our stack dump/ AG crash occurred we got an alert for 100% WT usage, which obviously causes some concern. I'm working with our Monitoring team to get the query that generates this alert. 

2) Per this same article, Availability Groups don't really count against the max WT's allocated. However, I've read elsewhere just the opposite as well. One of the theories to lower our WT's is to remove some of the DB's from our AG, and create a new AG with the Primary on the current Passive node. The logic being that unless there's a failover, and only one node is being used for both Primaries, the number of overall WT's will go down. All said, do AG's count againt the number of WT's, or not?

I'll likely have other questions, but this is a good start. Thanks!


Thanks in advance! ChrisRDBA

Viewing all 4689 articles
Browse latest View live


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