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

Backup in Always On Configuration

$
0
0

Hello Team,

I have 3 node SQL Cluster ( SQL 2016 SP2), configured Always on Availability with 1 secondary replica and 1 DR replica. Data is synchronized. I have configured backup as to be taken from secondary replica only.

From BOL, it is apparent that Copy Only Full backup will be possible & TLog backup. 

My Question is 

During recovery of any database, does restoration of Copy_Only Full backup followed by TLog backup will be able to succeed ?


Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it


AlwaysOn with SQL Standard Licence data integrity?

$
0
0

Hi everyone, I was reading the limitations of creating a basic always on availability group with SQL Standard Edition, and there is one that got me thinking.

  • No integrity checks on secondary replicas.

Does this mean that if I failover to the replica the data could be corrutped.

Also

  • Support for one availability database.

I suppose I can create multiple basic availability groups on the same server and in each one has one database.

Thanks a lot,

Ivan Mckenzie

Help! Always On High Availability issues.

$
0
0

Hi,

I'm having major issues with a SQL cluster. The first problem was that it was not failing over. After many attempts at trying to resolve the issue the fix was to remove the availability group and re-create it. Tried this and the issue was still there. Anyway I removed the cluster from Failover Cluster Manager and tried to set on one up from scratch. 

I don't have the cloud witness details, so I setup a disk witness. If I try and recreate the AG I get the following error..



Everywhere I've found has mentioned the fix is to disable and re-enable the always on availability groups in SQL server config manager but guess what I get this..

Literally pulling my hair out and need to get this sorted ASAP!

If someone could shed some light I would be grateful!

Dan

 


SQL Data Compression vs SAN compression

$
0
0

Iam currently investigating what the impact in terms of reliability, data savings and performance when using SQL Data Compression on top of SAN compression.

I have done some investigation, but there are not a lot of articles regarding this. At least, they do not anwser the questions that I have. I have found a Dell whitepaper which states to use either one of the options. We do not have a Dell SAN, but that would possibly make this also applicable for our storage unit (Huawei).

Reliability: I have 'heared' stories where data could become corrupt when you use both. I cannot find anything that talks about this, but could be plausible. We could however take this risk with our relatively small datawarehouse. We have ETL timing issues there and if corrupt, it is easy to reload the data from the source.

Data savings: The hardware would probably be better at this. Since SQL also only compresses IN_ROW_DATA, you can always get a higher compression ratio out of the SAN compression.

Performance: Since data is compressed, SQL needs to perform less I/O requests, so in terms of performance we could win a lot here. I don't think that this has anything to do with the compression on storage level, because there are simply just less I/O requests going to the storage unit. The storage unit always needs to return data for every I/O request regardless if it is compressed. If data is compressed and 4 I/O requests are done for the same block, then the storage unit still needs to return 4 blocks of data. So if we can reduce that, then that is a win. Also, SQL writes compressed pages to memory, so we could win performance here as well.

What would be the recommendation regarding the 3 statements above? I cannot find really any good articles regarding this. Maybe some of you know a few?

Restore database in Always On Availability Group failed for 1 of 3 nodes.

$
0
0

Database had been improperly configured as standalone (no in AG group) on Node C.

To fix the issue I did the following: I backed up database and detached from Node C.

Node C is now and was also at the time a secondary in the AG group.

Went to primary Node A restored database onto Node A, added database to AG group, initially got error regarding Node C..I had to delete file database.mdf from Node C and then AG wizard succeeded. Now the restored database has synchronized to Node A and B, but it's failing on C. Error on restored database in AG dashboard of Node C states the following:

Data synchronization state of availability database is not healthy.

What is the proper procedure to handle this issue? Help? Please and thank you.

Transnational Replication

$
0
0

Hello All ,

Can we create 2014 enterprise as a publisher and 2012 standard as a subscriber for transnational replication ?

Br

ChetanV

Why I cannot have Availability Group on my SQL Server 2016?

SQL AG script adding DB's Automatically

$
0
0

Hi All:

We are in the process of creating our own scripts, when ever the application creates new database, the DB will be add to Alwayson group and its working fine for us.

Today, we are planning to add one more check.

For some-reason, if the secondary replica having same database - we want to delete it.

Is it possible to delete it from Link server?

Link server already created with @notename in below script.

When we try to delete manually also, not working using link server.

Drop database [linkservername]..[test1234]

=====================================
Error:
Msg 102, Level 15, State 1, Line 43
Incorrect syntax near '.'
==================================

This is what we are trying to with hard luck, any suggestions.

     declare @avagroupname  nvarchar(128)='',
             @tsql_restore  nvarchar(1000)='',
             @tsql_hadr     nvarchar(255)='',
             @debug int,
             @dbname nvarchar(255)='';
begin

set @dbname = 'test1234';
set  @debug = 1;
set @avagroupname='AG2016'

-- if there is a same database on the secondary node , will be deleted first
        -- get the note list
       declare @notename nvarchar(128)
       select  top 1 @notename= dh.replica_server_name from  sys.availability_replicas dh join sys.dm_hadr_availability_replica_states dap
       on dh.group_id= dap.group_id and dh.replica_id=dap.replica_id join sys.availability_groups ag
       on ag.group_id=dap.group_id where role=2 and ag.name =@avagroupname  order by dh.replica_server_name desc
       print @notename
       --end
        --while @@ROWCOUNT>0 --and @notename  is not null
          --  begin
            print 'test';
                 set @tsql_restore=N'
                     exec (''if exists (select * from sys.databases where name='''''+@notename+'..'+@dbname+N''''')
                     drop database '+@notename+'..'+@dbname+N'';
                    
                    
                 if @debug>0  print @tsql_restore
                   exec (@tsql_restore)
                    
                     ---
                      
                    
                 select  top 1 @notename= dh.replica_server_name from  sys.availability_replicas dh join sys.dm_hadr_availability_replica_states dap
                  on dh.group_id= dap.group_id and dh.replica_id=dap.replica_id join sys.availability_groups ag
                  on ag.group_id=dap.group_id where role=2 and ag.name =@avagroupname and dh.replica_server_name<@notename   order by dh.replica_server_name desc
            --end

end
=================

Thanks,
Satish Kumar


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


Operating system error 665

$
0
0

We are getting below error in one of SQL Server 2016 (Microsoft SQL Server 2016 (SP2-CU5) (KB4475776) - 13.0.5264.1 (X64))

DESCRIPTION:   F:\MSSQLSERVER\MP1\Salesorders01.ndf_MSSQL_DBCC9: Operating system error 665(The requested operation could not be completed due to a file system limitation) encountered.

I have already worked with our windows and storage guy about disk fragmentation. They confirmed that there is no issue at storage level.

Please provide some idea that how to proceed?

SQL AlwaysON - How long data movement can be suspended?

$
0
0

Hi Guys,

I have setup a alwaysON between on prem and azure server (Iaas). The setup is working fine and able to perform failover/failback. The requirement is,since these are test machines , I dont want to keep the Azure server online all the time. To reduce cost , want to keep it in stopped state and bring up whenever I perform next DR activity. 

The question is, can I keep the data movement in suspended state for such long time ( more than 3-4 months) . 

whats the best practice to handle this? ( Remove all dbs from AG group and add it back whenever necessary?). 

Please help. 

Regards

Thahif

Failed to join replica server to Availability Group

$
0
0

-I have two SQL Server 2017 Developer VM on Windows Server 2016 in Azure. (SQLServer1VM and SQL Server2VM)

-Servers are not in same domain or network.

-I have enabled Always On High Availability from SQL Server Configuration Manager in both servers.

-I have SQL Server Management Studio in SQLServer1VM and I can access SQL Server2VM database with SQL login.

-I try to create Availability Group in SQLServer1VM. It find replica server SQL Server2VM

 

But I get following error. What could be issue?


Kenny_I

Extend On-Prem AlwaysOn to Azure - Questions

$
0
0

Hello,

I want to extend on-prem AlwaysOn AG to Azure.  We currently already have AlwaysOn AG setup and running.  We want to create additional replica(s) in Azure for HA.  Here's my question: in addition to creating the Azure replica(s), do we need to create an Azure Domain Controller for this setup?  Is this an absolute requirement?  I have not been able to definitively find the answer.

Thank you

how to change HostRecordTTL value for network name 'Name: "my cluster name'

$
0
0

Warning "the HostRecordTTL property for network name 'Name: "cluster nmae' is set to 1200 (20 minutes). For multi-site clusters the suggested value is 300 (5 minutes)." shows in the cluster vaslidation report. how to change this cluster parameter?

the "cluster name", for exmple, cluster1 , is not listed in the outputs from get-clusterresource. off course, the paramenter of cluster cannot found from get-clusterparameter

My cluster is consist of two nodes in Server 2012 R2.

three SQL alwayson groups icreated n SQL 2016 standard on each node. These groups are Roles of the cluster and they are lsited in the ourput from get-clusterresource. But no cluster name in the ouput.

how to change HostRecordTTL value for network name 'Name: "cluster name'?

Please advise.

thansk

John

Option_spec syntax not mentioned in create external language document

SQL Server 2016 Always On Endpoint creation fails

$
0
0

Hi Experts,

I have a standard setup of two Nodes (SQL1 and SQL2) and want to create two Always On avaibality groups for two instances, each hosting a single user database.

I have created the first Always On availability group without any issues. I used port 1433 TCP for the listener and used5022 as an endpoint. Both SQL1 and SQL2are added and the SQL1 has the Primary replica.

Now I wanted to do the same with the other Database, but this time use SQL2 a Primary. In the "New Availability Group Wizard" I am configuring different endpoints for the 2nd AG of course and I am taking 5023 as port. I am also usiong a unique Listener name and IP of course. The problem is that when I try to complete the wizard I get following error:

The Database Mirroring endpoint cannot listen on port 5022 because it is in use by another process. (.Net SqlClient Data Provider)

This is very strange as in both in the cofiguration and also on the Summary page I see that the endpoints should be on5023

Any ideas on what I am doing wrong? Do I need to create an endpoint on 5023 in advance? I though the Always On AG wizard will do that for me?

Regards,

 


(Please take a moment to "Vote as Helpful" and/or "Mark as Answer" where applicable. This helps the community, keeps the forums tidy, and recognizes useful contributions. Thanks!)Blog: https://blog.pohn.ch/ Twitter: @StoyanChalakov






read only replica and cross-region standby database for SQL Server 2014 EE

$
0
0

Hi, Gurus, 

I am new to SQL Server and looking for suggestions. 

We have a MSSQL database running SQL Server 2014 EE. Planning to create a read only replica within same data center and a standby database  in remote region. 

Have been searching options from google and found this forum. 

For read only replica, we just want to offload the read operations to a different server . In this case,  which option is  better ,  transaction replication or always on availability groups? 

For standby in remote DC, its is mainly for HA/DR purpose. Will mirroring be a good choice? 

Thank you 


Two failover clusters on one windows cluster

$
0
0

Can I create more than one SQL server failover cluster on the same Windows cluster.

One for CRM database and the other for SharePoint databases.

Two failover clusters on one windows cluster

$
0
0

Can I create more than one SQL server failover cluster on the same Windows cluster.

One for CRM database and the other for SharePoint databases.

Backup in Always On Configuration

$
0
0

Hello Team,

I have 3 node SQL Cluster ( SQL 2016 SP2), configured Always on Availability with 1 secondary replica and 1 DR replica. Data is synchronized. I have configured backup as to be taken from secondary replica only.

From BOL, it is apparent that Copy Only Full backup will be possible & TLog backup. 

My Question is 

During recovery of any database, does restoration of Copy_Only Full backup followed by TLog backup will be able to succeed ?


Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it

Cluster role fails to come online

$
0
0

One of the instances in our Always-On cluster fails to come online. The instance is located in our DR cluster.

The following is found in the cluster events: "The Cluster service failed to bring clustered role 'SQL Server (NICD_DR_TFS01)' completely online or offline. One or more resources may be in a failed state. This may impact the availability of the clustered role."

From what we have found it seems that the storage for the instance is located at drive letter S: but the instance is looking for it at drive letter U:

This is what we found in the event viewer on the host server:

FileMgr::StartLogFiles: Operating system error 2(The system cannot find the file specified.) occurred while creating or opening file 'U:\MSSQL11.NICD_DR_TFS01\MSSQL\DATA\modellog.ldf'. Diagnose and correct the operating system error, and retry the operation.
FCB:<g class="gr_ gr_458 gr-alert gr_gramm gr_inline_cards gr_disable_anim_appear Style replaceWithoutSep" data-gr-id="458" id="458">:Open</g> failed: Could not open file U:\MSSQL11.NICD_DR_TFS01\MSSQL\DATA\MSDBData.mdf for file number 1.  OS error: 3(The system cannot find the path specified.).

The cluster manager shows that the drive should be S. This was also confirmed as correct in Explorer and storage for a different instance exists at drive letter U: (this instance using drive letter U has zero issues).

How can we correct this?


Viewing all 4532 articles
Browse latest View live


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