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

Cluster failover but Availability Group do not

$
0
0
We recently had an issue where a file share was unavailable. It caused the cluster to failover. However, the Availability Group did not failover. The application was trying to connect to the secondary database which it couldn't since the failover had not happened. We are set up using Quorum with a File Share Witness. We have manually failed this over successfully. Any ideas on why the Availability Group did not failover would be most appreciated. We do not have any experts in this area so please help us figure out where to look.

Active/Active Cluster SQL Server 2008 R2 connectivity problems

$
0
0

Hi,

We have a 2 node Actice/Active Cluster as described here:

SqlServer Instance 1 = MSSQLSERVER

SqlServer Instance 2 = Instance2

As we know when we want to connect to the second instance, our web.config files in Application Servers must be changed to something likeIP\Instance2 or DNS\Instance2 which is too difficult for us to do.

The question is that is there any other way to connect to the Active/Active cluster?


OpenCluster (reason: 5).

$
0
0

We are observing the below error after every fail over  in the cluster environment .Is this normal error.

Event Id:324

Soruce:SQLSERVERAGENT

Error:OpenCluster (reason: 5).

sql server activation

$
0
0

Hi

  i was installed evalution version of sql server 2012. now it was expired.

I bought licenced media(sql server 2012) without  product key.

The question is  how to  activate this without upgradation?

log shipping Could not retrieve backup settings for primary ID

$
0
0

hello,

I implemented log shipping in our server the process of implementation went fine but when I view job history I found

Message
2014-06-11 12:00:01.53    *** Error: Could not retrieve backup settings for primary ID '99817903-626e-4380-bcf1-c09ca6f48b6d'.(Microsoft.SqlServer.Management.LogShipping) ***
2014-06-11 12:00:01.53    *** Error: The specified agent_id 99817903-626E-4380-BCF1-C09CA6F48B6D or agent_type 0 do not form a valid pair for log shipping monitoring processing.(.Net SqlClient Data Provider) ***
2014-06-11 12:00:01.53    *** Error: Could not log history/error message.(Microsoft.SqlServer.Management.LogShipping) ***
2014-06-11 12:00:01.53    *** Error: The specified agent_id 99817903-626E-4380-BCF1-C09CA6F48B6D or agent_type 0 do not form a valid pair for log shipping monitoring processing.(.Net SqlClient Data Provider) ***
2014-06-11 12:00:01.53    *** Error: Could not cleanup history.(Microsoft.SqlServer.Management.LogShipping) ***
2014-06-11 12:00:01.53    *** Error: The specified agent_id 99817903-626E-4380-BCF1-C09CA6F48B6D or agent_type 0 do not form a valid pair for log shipping monitoring processing.(.Net SqlClient Data Provider) ***
2014-06-11 12:00:01.53    ----- END OF TRANSACTION LOG BACKUP   -----

Exit Status: 1 (Error)

also I check for database ID using select * from msdb..log_shipping_primary_databases

your help is appreciated.


Please Mark it as Answered if it answered your question
OR mark it as Helpful if it help you to solve your problem
Elmozamil Elamir Hamid

MCSE Data Platform
MCITP: SQL Server 2008 Administration/Development
MCSA SQL Server 2012
MCTS: SQL Server Administration/Development

MyBlog

SQL 2014 FCI+AG on Clustered Shared Volumes design

$
0
0
Hello,

I was assigned the task to design a new SQL 2014 environment for my company. Our current environment consists of two clusters of 4 nodes each (8 nodes total for the two clusters) in two datacenters (let's say LA & NY).

Each datacenter is both primary & DR for different applications. Each cluster is active/active and has 9 SQL instances - 1 DEV/2 UAT/4 PROD/2 DR. 

We are using Windows Server 2008 R2 SP1 + SQL 2008 R2 SP2 FCIs for HA + DBM for DR, storage is symmetric, LUNs are coming from NetApp SAN filers. 

Due to the consolidated nature of the current SQL clusters (some hold 100+ DBs for different applications), the new platform - Windows 2012 R2 and that one WSFC cluster will be used, I decided to go with a new build instead of upgrade.

My plan for the migration to SQL 2014 is as follows:

1. Evict two nodes from each cluster, the 9 SQLs in each datacenter will run on two nodes and I will have two nodes more per site to build the new environment. 
Average CPU utilization for each node is 10-20%, total max memory of all SQL Servers per site is 256GB RAM, each node has 2 CPUs x 8 cores each with 256GB RAM. SQLs will still run on two nodes with reasonable performance.
Since the same number of cores is used and we pay SA, there will be no increase in licensing costs for the time of migration to SQL 2014 and to obsolete the SQL 2008 R2 environment.
2. The new cluster will consists of 4 nodes with Windows 2012 R2 (2 in NY and 2 in LA) and will have Node+FileShare majority quorum model with Cluster Managed voting enabled. 
3. New SQL 2014 FCIs will be built (9 per site) and will use Clustered Shared Volumes + AlwaysON Availability Groups. Once the new environment is built, databases will be migrated by backup/restore.

Since we will have AlwaysON FCIs+AlwaysON AGs I'm aware that automatic failover cannot be used and the complications with addition of data files on primary databases, that's fine (file paths will be different of primary and DR SQL instances).

My question is - is this a supported configuration from Microsoft - AlwaysON AGs running on CSVs in a multi-site cluster? 

I am aware that CSVs are something new for the SQL world, so what are the things I should take into consideration when building this solution? Are there any pitfalls to be wary of?

Any suggestions will be much appreciated.

Thank you in advance,

R2 recover from Corrupt SQL Server

$
0
0

Now i am searching any tool, which recover all over data MDF file and R2 from SQL server.

DECLARE @DBName VARCHAR(64) = 'databasename'

DECLARE @ErrorLog AS TABLE([LogDate] CHAR(24), [ProcessInfo] VARCHAR(64), [TEXT] VARCHAR(MAX))

INSERT INTO @ErrorLog
EXEC sys.xp_readerrorlog 0, 1, 'Recovery of database', @DBName

SELECT TOP 5
         [LogDate]
        ,SUBSTRING([TEXT], CHARINDEX(') is ', [TEXT]) + 4,CHARINDEX(' complete (', [TEXT]) - CHARINDEX(') is ', [TEXT]) - 4) AS PercentComplete
        ,CAST(SUBSTRING([TEXT], CHARINDEX('approximately', [TEXT]) + 13,CHARINDEX(' seconds remain', [TEXT]) - CHARINDEX('approximately', [TEXT]) - 13) AS FLOAT)/60.0 AS MinutesRemaining
        ,CAST(SUBSTRING([TEXT], CHARINDEX('approximately', [TEXT]) + 13,CHARINDEX(' seconds remain', [TEXT]) - CHARINDEX('approximately', [TEXT]) - 13) AS FLOAT)/60.0/60.0 AS HoursRemaining
        ,[TEXT]

Now I am using this : en.mdfrepair.net

restoring specific lost files

$
0
0
windows 7 Home Premium.  I had to restore my computer to a previous back up and in the process lost several picture files I would dearly love to get back. How can I do this?  System Restore doesn't do the job.

MSDTC on Windows 2012 Standards edition

$
0
0

Hello Friends,

We have migrated our Prod server to Windows server 2012 Standards editions.

and enabled MSDTC but still getting below error 

Error :-

 

  1. 1.     The MSDTC transaction manager was unable to pull the transaction from the source transaction manager due to communication problems. Possible causes are: a firewall is present and it doesn't have an exception for the MSDTC process, the two machines cannot find each other by their NetBIOS names, or the support for network transactions is not enabled for one of the two transaction managers. (Exception from HRESULT: 0x8004D02B)

 

  1. 2.     The partner transaction manager has disabled its support for remote/network transactions. (Exception from HRESULT: 0x8004D025)

we have enabled MSDTC and restarted the server but it not working.

can you please help me.



Network Name resources

$
0
0

Dear All,

Please help to resolve below issue. my production is down and i m not able to do anything now.

i m stuck up badly here.

 Thank You In Advance,

Cluster network name resource 'SQL Network Name (HASSANSSQL)' cannot be brought online. The computer object associated with the resource could not be updated in domain 'HASSANS.COM' for the following reason:

Unable to get Computer Object using GUID.

The text for the associated error code is: The specified directory service attribute or value does not exist.


The cluster identity 'HS-DB$' may lack permissions required to update the object. Please work with your domain administrator to ensure that the cluster identity can update computer objects in the domain

Always ON High Availabilty

$
0
0

Hi Everyone,

    In AlwaysOn HighAvailabilty if any problem or disaster will happen in Primary Server.It got failover to sencondary replica.

    But in the secondary replica we have give read option only.Not write option.Then how to if we want write anything in the       DB. 

Thanks Everyone,

RamKarthik

Secondary Sync Replica is down, What will be its effect on Primary

$
0
0

Hello All,

Lets assume this situation. The synchronous secondary replica is down, what will be its effect on the primary replica. Will the tran log keep growing for the primary replica?  This used to be the case with Mirroring.

Thanks in advance.

Thank you,

Anup




SQL 2014 Clustered with CSV

$
0
0
I just built up a test two node clustered environment with Server 2012R2. Everything seems to be functioning, however, the default file paths seem inaccessible within SQL tools. Meaning, if I try to specify the backup location to restore, I get an error that I cannot access the specified path on the server (C:\ClusterStorage\Instance\SQL\...) - then then the file structure is empty after I select OK. If I create a database new, the files get put in the default locations fine as well as when I'm on the server, I can access the files fine via the CSV path.

My thought is, the SQL cluster is not communicating properly with the CSV. In my prod 2008 R2 cluster, the disks are a dependency of the SQL service while in Windows 2012 R2, it is not (since it is using CSV).

I followed http://blogs.msdn.com/b/clustering/archive/2014/05/08/10523860.aspx - which really doesn't differ too much than older versions of Failover Clustering.

Any thoughts?

Listener Configuration for AlwaysOn

$
0
0

Hello,

I am following this tutorial http://msdn.microsoft.com/en-us/library/dn425027.aspx

When I get to this PowerShell script thing start to go wrong

# Define variables$ClusterNetworkName="<ClusterNetworkName>"# the cluster network name$IPResourceName="<IPResourceName>"# the IP Address resource name $CloudServiceIP="X.X.X.X"# IP address of your cloud service Import-Module FailoverClusters Get-ClusterResource $IPResourceName | Set-ClusterParameter -Multiple @{"Address"="$CloudServiceIP";"ProbePort"="59999";SubnetMask="255.255.255.255";"Network"="$ClusterNetworkName";"OverrideAddressMatch"=1;"EnableDhcp"=0}

I get this error: Set-ClusterParameter : Unable to save property changes

After some testing it appears the PowerShell script cannot update the probeport, subnet mask, OverrideAddressMatch or EnableDhcp. I could however update the other values.

I then used the following PowerShell command to try and update the values separately.

$res = Get-ClusterResource "Resource Name"
$p1 = New-Object Microsoft.FailoverClusters.PowerShell.ClusterParameter $res,ProbePort,59999
$params = $p1
$params | Set-ClusterParameter

But I get the same error. Does anyone have any idea why I cannot change these values? I have managed to do it on other SQL clusters so not sure why it is not working here. I have checked the event logs and I am not getting any errors.


Brian Jones

Failed to create Availability Group Listener-SQL 2012 SP1

$
0
0

HEy guys,

I'm attempting to setup a SQL AlwaysOn CLuster... Having some issues doing so. It's a 3 node cluster and the Clustername is ADM034SQLC050 and the nodes are ADM034SQL051, ADM034SQL052, and ADM034SQL053. I can't create the AG listener for some reason and I just about given up lol. When I attempt to create the Listener I get the error below:

TITLE: Microsoft SQL Server Management Studio
------------------------------

Create failed for Availability Group Listener 'NTS-SQLD70'.  (Microsoft.SqlServer.Smo)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=11.0.3000.0+((SQL11_PCU_Main).121019-1325+)&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Create+AvailabilityGroupListener&LinkId=20476

------------------------------
ADDITIONAL INFORMATION:

An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)

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

The WSFC cluster could not bring the Network Name resource with DNS name 'NTS-SQLD70' online. The DNS name may have been taken or have a conflict with existing name services, or the WSFC cluster service may not be running or may be inaccessible. Use a different DNS name to resolve name conflicts, or check the WSFC cluster log for more information.
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: 19471)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&ProdVer=11.00.3000&EvtSrc=MSSQLServer&EvtID=19471&LinkId=20476

------------------------------
BUTTONS:

OK
------------------------------

I just recently created a ClusterAdmin-GS group and added full rights to the nodes and cluster computer object. Also made sure the ClusterAdmin-GS was a local admin all 3 nodes. All servers are on the same VLAN and the clustering does failure/working properly. OS is Windows 2012 r2. 

A few screen shots attached. Any idea, what I'm doing wrong? Any input would be appreciated! 

JC



Reporing Service and msdb replication through AlwaysOn Feature on SQL Server 2012

$
0
0
Is there any way to replicate Reporing Service and msdb through AlwaysOn Feature on SQL Server 2012, from one server to another?

Performance Tuning

$
0
0

Hi,

What are the steps to fine tune given T-SQl query?

This is the interview question i faced in many time.

!!!Urgent !!!!!Cannot recovery database without log files (SQL 2008)

$
0
0
I only have single mdf file, the transaction log file was corrupted. When I was trying to attatch the mdf file, I received the following error message. Can someone give me a help..... it's really urgent!


TITLE: Microsoft SQL Server Management Studio
------------------------------

Attach database failed for Server 'DEV8\sqlexpress2008'.  (Microsoft.SqlServer.Smo)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.0.1600.22+((SQL_PreRelease).080709-1414+)&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Attach+database+Server&LinkId=20476

------------------------------
ADDITIONAL INFORMATION:

An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)

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

Could not open new database 'Smartadmin'. CREATE DATABASE is aborted.
File activation failure. The physical file name "C:\MSSQL\Smartadmin_log.ldf" may be incorrect.
The log cannot be rebuilt because there were open transactions/users when the database was shutdown, no checkpoint occurred to the database, or the database was read-only. This error could occur if the transaction log file was manually deleted or lost due to a hardware or environment failure. (Microsoft SQL Server, Error: 1813)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.00.1600&EvtSrc=MSSQLServer&EvtID=1813&LinkId=20476

------------------------------
BUTTONS:

OK
------------------------------




Javafun

How to recover from mdf file (SQL Server 2000)

$
0
0

Hi,

My database corrupted because when I was running an update query, there is a power failure. After the computer booted, I cannot open the database anymore, it just not responding. Then I stop the sql server service, and tried to rename the .mdf and .ldf. After that it worked normally, but I need the data from the corrupted mdf file, I tried to attach the database but it just hanged. I even tried to attach without the .ldf file but it didn't work either, so I concluded that the problem is with the mdf file.

Is there any way to recover my data ??

Thanks in advance

Regards,

Edwin

Change Master Collation in Multi-instance Cluster

$
0
0

Hy Guys,

SQL Server 2008 R2 Ent 64 bit.

Cluster with 2 Servers (SrvA, SrvB).

The Sql cluster is made up by 2 Instances: vSrvA\Instance1, and VSrvB\Instance2 (both working correctly and accessible anywhere across the network).

ISSUE:

Changing Master Collation on both instances.

Attempted several time but unsuccessfully (I have also checked teh log, but I cannot see nothing of relevant) following the procuedure provided by Microsoft and in other posts.

Please, anyone could provide a procedure to change Master Collation in Multi-istance Cluster?

Kind regards

Viewing all 4532 articles
Browse latest View live


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