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

database corruption issue

$
0
0

Hi

I have been learning about database corruption with my friend and we have been going through Steve Steadman's corruption quizzes but I do not seem to be as good at it like my friend is. My friend decided to corrupt a database as practice for me to try and fix his corruption and i just do not know how to do it.  The database he corrupted is in  recovery/pending state and i think the secondary data file is corrupted from what i can see in the error log. I want to try and fix this without data loss. He also provided me with a full backup to recover the data when I find out how to fix this corruption without data loss. 

please assist


Random failover of my SQL resources on a Windows 2012 cluster

$
0
0

Hi Guys,

I have been trying to battle this issue for quite some time now with no luck, I have some ideas as per the Microsoft articles but I need some help.

I have 2 Windows 2012 R2 VM's running on Vmware ESXi 5.5 with RDM's as the SQL disks. What happens is that every about 10-15 days the resources failover to a different node and I a bunch of errors like the one below.

I did find an article on the MS page which states this error and if running on Vmware Esx there is a recommendation, I need to implement that now. Nodes being removed from Failover Cluster membership on VMWare ESX?.

Also, there are some patches that need to be installed as recommended by Microsoft Troubleshooting cluster issue with Event ID 1135.

I did run a network and storage validation report using the cluster manager and they come up clean at this point.

Has anyone come across a similar issue which tends to failover the resources randomly?



SQL Log Shrinking on high availability on Primary location

$
0
0

Dear All,

We have an issue with our SQL Server Log file shrinking. When we try to shrink out Logs We have to disconnect the servers from the high availability group and join again. Unless it will not allow us to shrink the logs. Please share your expertise on this issue.

Thank you!

SQL 2012 Failover Cluster Installation error

$
0
0

I am installing SQL Serveer 2012 on a Windows Server 2008 R2 Cluster. 

I start the installation, and choose "New SQL Server Failover Cluster installation"  Everything is going along fine until i get to the "Database Engine Configuration" Page.  On the "Data Directories" tab, it automatically filled in the paths for the database file locations with:

\\?\Volume{... Volume GUID}\MSSQL11.MSSQLSERVER\MSSQL\Data

But these have an error that says: "The path \\?\Volume{...guid...}\MSSQL..... is malformed or not absolute.

In my Windows Server Cluster, I have two devices in my storage folder.  One is the Quorum drive, and the other is a shared Volume.  The shared volume does not have a drive letter, and when I look at the Properties in the Cluster Manager, the volume is listed as "C:\ClusterStorage\Volume1".  (Note:  It had a drive letter untill i configured it as a Cluster Shared volume.

My question is, what is the correct value to enter for the data file paths?

Thanks


Matt

Multiple SCSI Controllers or not in Hyper-V

$
0
0
I am running 170 VMs on a Windows Server 2016 Datacenter 3 node Hyper-V Cluster connected via Fibre Channel to an all Flash Storage Array.  I will be creating a new VM for a SQL Server that we are migrating to a VM from an old physical box.  I have been reading about using multiple SCSI adapters to split the paths for the VHDXs for each of the: host OS, SQL DBs, SQL Logs, and SQL TempDB onto separate SCSI adapters to potentially increase performance.  The VHDXs for this VM will be on a LUN from the storage array by themselves as it will need over 1 TB of space.  According to my reading, it sounds like having multiple SCSI adapters can potentially increase performance by being able to process IOPs more quickly as they split the load up in Windows.  Generally speaking, at what level of IOPs would it make sense to split these VHDXs up onto different SCSI controllers?  500, 1000, 5000, 10000, etc. IOPS?

Logshipping Job

$
0
0

We are migration sql server 2008 R2 to 2016.

using logshipping.

What happens if i am not disable LS_backup  job in 2008 after 2016 becomes online?

Various databases show "In Recovery" briefly after failover

$
0
0

Hi all,

We have a 2 node SQL 2008 R2 SP3 Standard cluster.  When failing the SQL role from one node to the other, I am seeing a number of databases showing briefly as "In Recovery". 

The databases come up normally and seem OK and the SQL ERRORLOG shows nothing of concern.

This server is in an isolated test environment at the moment so I can't get users to check the integrity of the data.

I suspect that this is normal behavior but could do with some kind person putting my mid at rest if possible.

Any reassurances or help you could provide would be gratefully received.

Thanks

Tony G

Availability Groups Add Azure Replica SQL 2016 SP1 on server 2016

$
0
0

As part of enhancing our SQL resilience we are intending to trial Availability Groups from on Premise to Azure.

I have created an on Premise VM running Server 2016 running SQL 2016 SP1 developer edition, I am trying to set up availability group between this and an Azue VM following this guide 

https://docs.microsoft.com/en-us/azure/virtual-machines/virtual-machines-windows-classic-sql-onprem-availability.

Availability group is created, however when I go to add an availability replica and select "Add Azure Replica" I do not get prompted for a management certificate as the documentation suggests.  I can sign into my Azure subscription and select a platform image, I am choosing "SQL Server 2016 SP1 Developer Windows Server 2016".

However the VM size, Virtual Network and Virtual Netowrk subnet drop down boxes are blank they will not populate at all. I have checked our Azure AD logs and I can see my account being validated from SQL, but I cannot proceed any further as I cannot select anything else.

Could anyone offer any suggestions as to where I search next and what I could do to resolve this issue ?

Thanks


Always on connection monitoring either listener or hostname

$
0
0

Hi I am looking to trace connection which are coming to Always on server. I am looking for an information how clients are accessing the Always on DBs whether through host name for listener name.

Basically I need trace connection on the instance either listener or host name.

Any one knows would be much appreciated.

regards



Can not select Secondary Node as backup option for Availability group

$
0
0

We are trying to change where backups should occur and all options are greyed out on the primary node, anyone else experience this?



Alwayson read-only secondary is not accessible via Listener

$
0
0

Hi Gurus,

 I setup a 2 nodes Alwayson on Windows 2016 and SQL Server 2017. Everything work fine except when I try to connect readonly secondary through listener using "ApplicationIntent=Readonly" it doesn't find the secondary server and throw following error. If secondary server name is used instead of listener, it works fine.

"A network-related or instance specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error 0 - No such host is known.) (Microsoft SQL Server, Error 11001)

No Such Host is known"

I also have 2 separate setups of Always on with 4 and 3 nodes respectively on Windows 2012 and SQL 2016 which work flawless for years. Am I hitting some kind of bug?



Thanks in advance for your time :)

Qamar 


Why Replication Monitor can't connect to current Primary Replica after Failover in Redirect Publisher configuration?

$
0
0

I have configured replication on Always On , configured redirect publisher. All is working well. However after failover if I bring prior primary sql instance offline, Replication monitor will not work. What is the solution for this?  We are moving from server to server and we need to shutdown prior servers.

Do I need to keep prior primary replica online ? 

Thanks

Shrinking Log Files - SQL Server 2012 Always On Availability Group

$
0
0

Dears,

I do have 2 SQL Servers (2012) on a Always On Availability Group.

How can i make a maintenance plan to shrink the Log files?

Should i need to make a maintenance plan to take the DB backup first and then to shrinking?

Please let me know the best way to automate the log file shrinking.

thanks in advance,

Ammar

Query to check if Secondary Replica has 'Create Database' right

$
0
0

Hi,

I am thinking of using autoseeding for our AlwaysOn. According to BOL ( https://docs.microsoft.com/en-us/sql/database-engine/availability-groups/windows/automatic-seeding-secondary-replicas?view=sql-server-2017 )  , I need to grant availability group the 'Create Database' right.  Is there any query that can check if the replica already has the right or now , instead of blankly run the grant permission ? I checked server role ( dbcreator ), but no joy. This makes sense as the AlwaysOn Group doesn't have a login. Can anyone please cast light on it ?

Many thanks !

Is my Data Base Recoverable?

$
0
0

Hi Fellow DBA's

I have a rather sad situation here and i hope i can get some assistance here on this forum. I have a DB that has been failing to back up since September, we only realised this late in December because we were sloppy.

When i run a backup here is the error that i get, all the time. It runs up to 50% all the time. I am dreading to restore a September backup because the information there is old, and it means that it might take a month of recapturing again.


1. I have run a DBCC CHECKDB set to single user and here is what i get.

i. 23:(Data error (cyclic redundancy check).) (Microsoft.Sql.Server.Smo)

ii. A failure was detected while collecting facts. Possibly tempdb out of space or a system is incosistent.

2. Seems there are 0 errors and 0 inconsistency on the database. Yet it does not backup. The results are as follows:

CHECKDB found 0 allocation errors and 0 consistency errors in database 'People'.

My question is where does this error come from and how best can i fix it, without restoring a September backup. PS: We are still able to use this DB and write information on it, we just cant back it up - GUI or T-SQL route. Is there a way to copy the DB in its current state or clone it?

Running SQL: Server 2012

Thank you for your assistance in advance.


AlwayOn Monitoring via Alerts - Getting Lots of Emails

$
0
0

Hello,

I have recently setup AlwaysOn in SQL Server 2017 and has been in Production for several weeks now.  Everything is working fine.  I'm currently in the process of setting up SQL Alerts to monitor AlwaysOn AG.  One of the alerts I created yesterday was to monitor Availability Group role change.  I manually failed over from the primary to secondary to test the alert.  The alert worked however I was getting about 28 email notifications within 1-2 seconds.  All the emails were identical.  My initial reaction was maybe an email for each database in the Availability Group.  But we only have about 15 databases.  So does anyone know why I was getting 28 alerts when I failed over from primary to secondary?  Is this how it supposed to work or did I misconfigure something?  Attached is a partial listing of those emails.

Thank you




Column Encryption for a database in an Always On Availability group

$
0
0

We created a master key with password etc, like this article:

https://docs.microsoft.com/en-us/sql/relational-databases/security/encryption/encrypt-a-column-of-data?view=sql-server-2014

I created the master key on all 3 always on servers.

All works fine on the primary server but can't seem to find a way it will work correctly if we fail over to the secondary. When trying to just open the symmetric key with the certificate, we get this error:

Msg 15581, Level 16, State 7, Line 31
Please create a master key in the database or open the master key in the session before performing this operation.

I tried opening the master key and then opening the symmetric key:

Msg 15581, Level 16, State 7, Line 31
Please create a master key in the database or open the master key in the session before performing this operation.

This makes me suspicious, this encryption may not work when on the secondary becomes the primary...
Is there a better way to encrypt a field in Always On?

Failover to secondary node not happen and primary DB is not accessible

$
0
0

Hi All,

I had one of the production issue today morning in share point database.The primary node tried to failover to secondary node but unfortunately not happen.

Most of the db's were inaccessible in primary node.I tried to open db but got error msg: "DB is not accessible.I tried to restart both primary and secondary node server and all db came online.Don't know exactly what happen.Need your help to find the root cause.

Version:SQL 20121 SP4

Error msg when issue happen in Primary Node:

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

AlwaysOn Availability Groups connection with secondary database terminated for primary database 'DocAve_AuditorDB' on the availability replica with Replica ID: {56c2428a-ca50-4647-b2c1-1a11f0d59123}. This is an informational message only. No user action is required.

Cluster Event:

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

Cluster resource 'SQLAG02P' of type 'SQL Server Availability Group' in clustered role 'SQLAG02P' failed.

Based on the failure policies for the resource and role, the cluster service may try to bring the resource online on this node or move the group to another node of the cluster and then restart it.  Check the resource and group state using Failover Cluster Manager or the Get-ClusterResource Windows PowerShell cmdlet.

No matching network interface found for resource 'SQLAG02P_172.20.65.18' IP address '172.20.65.18' (return code was '5035').  If your cluster nodes span different subnets, this may be normal.

Cluster resource 'SQLAG02P_172.20.65.18' of type 'IP Address' in clustered role 'SQLAG02P' failed.

Based on the failure policies for the resource and role, the cluster service may try to bring the resource online on this node or move the group to another node of the cluster and then restart it.  Check the resource and group state using Failover Cluster Manager or the Get-ClusterResource Windows PowerShell cmdlet.

The Cluster service failed to bring clustered role 'SQLAG02P' completely online or offline. One or more resources may be in a failed state. This may impact the availability of the clustered role.



Error msg in secondary node:

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

A connection timeout has occurred on a previously established connection to availability replica 'SQL01P' with id [88825377-469D-44D3-B964-6575AA9402AA].  Either a networking or a firewall issue exists or the availability replica has transitioned to the resolving role.

AlwaysOn Availability Groups connection with primary database terminated for secondary database 'SP_PROD_Portal_Content_Contracts' on the availability replica with Replica ID: {88825377-469d-44d3-b964-6575aa9402aa}. This is an informational message only. No user action is required.


Don't know exactly what happen.Need your help to find the root cause.

Regards,

Manisha


Attaching error logs:

---------------------------------https://www.dropbox.com/s/6vmdiikcspnkqlm/SQL08P_Primary_Logs.txt?dl=0

https://www.dropbox.com/s/3umiq85r5jzm83i/SQL07P_Secondary_Logs.txt?dl=0


Getting error while installation of SQL Server fail-over cluster

$
0
0

I am Installing SQL Server failover cluster, I have two nodes SQL1 and SQL2 

I am installing on SQL1 and getting below errors about services, Services are running with on SQL2

could you advice



Configuring multiple Basic Availability groups

$
0
0

Hi All,

We have MSSQL Std. 2017 edition and have configured 4 Basic Availability groups in it.

There is a front end application which will connect to these 4 databases in AG.

Is it possible to connect the application with all the 4 AGs using windows failover Virtual name and IP address?

If possible how safe and reliable it will be?

Viewing all 4689 articles
Browse latest View live