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

Unable to create a new database, or restore an existing database on SQL 2014 FCI

$
0
0

Hello Technet Support,

We have recently built a SQL Server 2014 Standard version with Failover Cluster Instance consists of two nodes only running on Windows Server 2016.

When we try to create a new database, or restore an existing database, unable to do that, faced with the below errors.

Please assist.

Thank you, Anand


Anand Franklin


SQL Server fatal error with system crash - SqlDumpExceptionHandler: Process generated fatal exception c0000005 EXCEPTION_ACCESS_VIOLATION

$
0
0

Hello folks & MS stuff. This fatal error with system shut-down rises on a fresh clean Windows 10 Pro & SQL Server 2017 Developer 64-bit installations of named instance with latest updates. After googling for several days I found that this fatal exception of access violation has a long history (at least 15 years old) and in each version of SQL Server it was resolved through it's patches & updates. I don't know how long it will take this time, but it's really a big loophole now.

is there any way to resume sync after data file in added on primary?

$
0
0
We have a two node windows cluster and two sql instances in Always on. the databases in AG has different paths and we added a new data file but the file path does not exist on the secondary replica. Is there a way we can do it without affecting the ag configuration? thank you.

General questions about SQL Server

$
0
0

Hi.  Thanks in advance.

I've soft of been put in a position where I'm expected to do DBA type tasks but I don't have a lot of experience with being a SQL DBA.  I'm learning (PluralSight courses, reading, sample DBs, etc) but this is going slow.  So thanks in advance for helping me out.

  1. In a high availability configuration, can a SQL secondary server be rooted at any time without consequences to the Primary?
  2. In a high availability configuration, if I go onto a the secondary SQL server and find that databases in the HA database "Availability Databases" folder show a yellow exclamation, but no errors are showing in the SQL Server error log. Can I safely re-add the database (on secondary) to HA via ALTER AVAILABILITY GROUP [HA GROUP NAME] ADD DATABASE [DB NAME](TDE is enabled).  On the primary, the database shows "Synchronizing"
  3. In #3 above, I just found the cluster showed the following error:

The failover cluster showed the following errors:

The cluster service has determined that this node does not have the latest copy of cluster configuration data. Therefore, the cluster service has prevented itself from starting on this node.

Try starting the cluster service on all nodes in the cluster. If the cluster service can be started on other nodes with the latest copy of the cluster configuration data, this node will be able to subsequently join the started cluster successfully.

If there are no nodes available with the latest copy of the cluster configuration data, please consult the documentation for 'Force Cluster Start' in the failover cluster manager snapin, or the 'forcequorum' startup option. Note that this action of forcing quorum should be considered a last resort, since some cluster configuration changes may well be lost.

  • Would this be the cause of the HA issues, correct (or no?)
  • How does this sort of thing happen?
  • In the error above, where exactly is the cluster configuration?

4.  What are the implications of restarting a failover cluster?  Are there tasks I should perform first?  Is something likely to break during a restart?

5.  What would cause a database to show a yellow exclamation mark in HA "Availability Databases" folder?  No one has been messing with it in SSMS.  The SQL Server logs show no errors, only "informational" entries.

Thanks.

LoganT.


2 NODE ALWASYON

$
0
0

In case if we configure the alwasyon automatic fail-over(2 node)

1. how the application connect the either one of the node

2. how the transaction move one node to another node during fail over 

2. seen during installation manual and automatic each node do i want select automatic for each node  

 

Write Job function for the DB backup- MS SQL

$
0
0

This is my code for the 2 DB backup in the Job function. It's worked but DB size (0 files. What's the reason. 

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

USE master
GO
DECLARE @path VARCHAR(100) -- path for backup files  
DECLARE @path2 VARCHAR(100) -- path for backup files  

set @pathIms2='D:\Backup_Schedule_Folder\ims2'+ cast(GETDATE()as varchar(20)) + '.bak'
set @pathMydb='D:\Backup_Schedule_Folder\mydb'+ cast(GETDATE()as varchar(20)) + '.bak'

BACKUP DATABASE [ims2]
TO  DISK = @pathIms2

BACKUP DATABASE [mydb]
   TO  DISK = @pathMydb

GO


Always on limitation for sql 2012

$
0
0

I can't find back old information for database sql 2012

I just want to know the Always on limitation in version 2012

what's the replica limitation such as number, mode, …….

AlwaysOn Availability Groups in SQL Server Std Edn

$
0
0
Let me see if I read the requirement for Always on Availability Groups correctly with respect to how many nodes per SQL edition.  If I want 2 HA nodes (synchronous replica) plus 1 DR node (asynchronous replica), I need Enterprise Edition.  If I only have SQL Std Edn, it can only support 2 nodes (2 HA,  or 1 primary node & 1 DR node.)  And if Std Edn, it has to be "Basic Availability Group" which can contain only 1 database.  Basic Availability groups is only in 2016/2017.  2014 Std Edn does not allow Availability Groups at all.  Am I correct on that?  Is Basic Availability Groups crippled in any way other than only hosting a single database?  Thanks.

Is there no need of Windows cluster for Availability groups in sql server 2017?

$
0
0
I heard there is no need of windows cluster for configuring ag in sql server 2017. is it still same as the current ag in sql server 2016?

AlwaysOn AG 3-node cluster Licensing

$
0
0
I am researching licensing, but hope you validate what I read.  For a typical 3-node cluster consisting of 2 x HA nodes plus 1 x DR node, and where secondary HA node and secondary DR node are not being used for backup or read/write access, must all three nodes be licensed with Enterprise Edition?  Let's say Ent Edn 2016.  I think the answer is yes.  Also, if a secondary node is being used for backup, the answer is definitely yes.  Is that correct?  I think it is only in a scenario where a SQL instance is being used for test that it does not have to be licensed.  Thanks.

Cluster Fail over causing my DB to be marked as Suspect..

$
0
0

Hello all,

I am running my application in  cluster environment. I have my SQL DB which will be used as cluster resource. I have keep my DB(.mdf and .ldf) files in shared disk. But when i do fail over i see that my application fail to lauch and it my DB gets marked as "Suspect". I cannot access my DB from SQL management studio. Can anyone tell me what the problem is? Why my DB is marked as Suspect  on cluster failover? And when i fail back the node still i cant access my DB. Can anyone help me out to solve this problem?? 

how to query the current AAG listener URL I connect to

$
0
0
I connect SQL Instance through a AAG listener name, I want to know how to use TSQL to find the current listener URL (or Name) that I connect to. Thanks.

Always On HA replicas not in same data center

$
0
0
Hi.  Can you refresh me on a basic concept of Availability groups infrastructure?  If you have a primary replica and secondary replica in synchronous-commit mode that you intend to provide HA -- i.e., automatic failover with no data loss -- does that by definition mean that they're in the same data center?  But what if that data center becomes unavailable (unlikely, but possible)?  Can synchronous-commit happen across two data centers, or is that by definition DR?  Thanks.

Usage of MS VSS to backup the FCI MSSQL

$
0
0

Dear Microsoft,

In my task I need to backup an instance of FCI database with VSS. The MSSQL is deployed in distributed environment across 2 data centers. It seems to be weird but instances have a shared NFS folder hosted by one of the datacenters. The database is not huge enough, its size is below 1TB. But the installation is very critical, the fact makes the management team very nervous about the data. FCI in our case is a very specific installation of MSSQL.

But still can I use VSS to backup the MSSQL that operates in FCI? <= I'm pretty sure it works... I believe I should use VSS instance which is located on the node that hosts Active MSSQL instance of FCI. The reason for that is very simple it seems, this is because the standby copy is not online anyway.

May I ask you to confirm my theory?

Thank you!

only log backups need to be restored without full backup on database?

$
0
0

Hi All,

unfortunately database full backup has missed on server but i have log backups.

i want to restore only log backups on server but i'm unable to restore due to LSN mismatch error .. 

i am using the below command for to bring database into restoring state ..

BACKUP LOG [Database_name] TO  DISK = N'C:\Program Files\Microsoft SQL Server\MSSQL12.EXP_ADV\MSSQL\Backup\Database_name03.trn' 
WITH NOFORMAT, NOINIT,  NAME = N'test-Full Database Backup', SKIP, NOREWIND,norecovery,NOUNLOAD,  STATS = 10
GO


Move DB and Log when Old Server is not Reachable

$
0
0

Use to have a SQL DB's stored on a JBoD device attached to a server via SaS. The server has died and not recoverable. I took the SaS HBA and installed it into another server to access all the data on those drives. I built a new SQL cluster on a new server and copied the DB and log file to the new DB space. I then launch SSMS and attach database. Add the mdf (no log file shows up). It fails with something like: it can't find the log ldf on the old server (\\oldserver\log\db.ldf). How can i move this DB to the new server along with the ldf?



SQL SERVER 2016 ALWAYS WITH MSDTC

$
0
0

How do we setup MSDTC ON CLUSTER 

HOW DO WE CONFIGURE SQL SERVER 2016 ALWASYON WITH MSDTC 

In the below link not configred any disk and ip for msdtc ,just enable the local DTC on nodes .How this work

https://blogs.technet.microsoft.com/dataplatform/2016/01/25/sql-server-2016-dtc-support-in-availability-groups/

Add DB into AG with DEFUNCT files

$
0
0

I have a database which has defunct files. It is from a piecemeal restore.  I am trying to add it into an availability group. I backup and restore the DB with NORECOVERY on the secondary.  But each time I try to add the DB into the AG it fails trying to access the defunct files. Any suggestions how I may add this DB into the AG in this state?

Second node is showing error in alwaysON

$
0
0

I have created always on group in sql 2014.I am getting this error.Please suggest to proceed to further.


Harsha

how many NICs required for 2 node alwasyon configuration

$
0
0

Hi All,

The below is my requirement so how may NICs required 

1. Two node cluster

2. MSDTC

3. DISK VOTE WITNESS 

As per my knowledge 1 for node heart beat and another for external network connection . Apart from these do we we need any NICs to configure two node alwasyon

Viewing all 4532 articles
Browse latest View live