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

SQL Server AlwaysON cannot failover if you changed default port number

$
0
0

Hello,

I have installed 3 nodes SQL Server 2016 with AlwaysON (2 nodes for HA- in same Location + 1 node for DR- in different Location)

I have changed SQL Servers' s default port number (different than 1433). When I want to failover to secondary Availability Groups, I cannot. Because on the Failover screen, SSMS would like to connect to Secondary node using default port number and it can not allow to change port number like "ipadress,portnumber". Due to it cannot connect to secondary node, I cannot failover to secondary.

Is it a bug or can i have some wrong settings?

Thank you!


Clone SQL servers in a alwayson availability group

$
0
0

Hello everyone,

We currently run a two node always on availability group in an existing vCenter that we are retiring very soon. Therefore, I've been tasked to clone these two servers to the new vCenter and wanted to make certain that following Microsoft's (Suspend an Availability Database) documentation will ensure I can accomplish this task.

https://docs.microsoft.com/en-us/sql/database-engine/availability-groups/windows/suspend-an-availability-database-sql-server?view=sql-server-2017#SSMSProcedure

Basically, I plan to suspend the primary database and then turn off the secondary database server in order to clone to the new vCenter, however, I wan to be sure that the primary database remains available to clients. Subsequently, I will bring up the secondary database online at the new vCenter and resume the suspended availability database on the primary SQL server. We are running SQL 2014 on Windows 2012R2.

Can you please share any suggestions/concerns you may have to help me in this process?

Thanks you in advance!

How to get all the Unused Stored Procedures and Functions in My Database

$
0
0

Please provide me an direct answer to How to get all the Unused Stored Procedures and Functions in My Database?

Many VLFs in high availability database

$
0
0

Hi,

I have a database in high availability mode with a Log file of 16GB. Running DBCC SQLPERF (LOGSPACE) reveals that only 0.03% of the file is used. So I'd like to shrink the file. I performed full and transaction backups and tried to shrink, but nothing happens. I executed DBCC OPENTRAN but no transaction is open on the DB. Executing SELECT name,log_reuse_wait_desc FROM sys.databases; returns "NOTHING". But If I run DBCC LOGINFO I see 320 Virtual log files, with about 200 being marked with STATUS 2 (not reusabale).

Looking at the Always-on availability dashboard shows that replication is fine.

Does somebody know why these VLFs are marked as such?
Thanks

Hyper V Replica Slow Performance of vrtual Machine with SQL-Server

$
0
0

Hi all,

I'm testing a virtual machine setup with Server2016 as host and replica and Server2016 and SQL-Server 2016 in the guest-VM.My setup is 1TB Raid 1 for the host-system and 1TB Raid 1 for the VM. Hyper-V Replica is enabled and synchronizing every 5 minutes. There are 5 DB's with together about 60GB in the VM.

Despite the fact that i should probably use a different harddisk-setup/Raid for the VM, I see poor write and read performance in the VM. I used Perfmon to messure the "avereage disk sec/write" and "average disk sec/read" performance.

These are measurements over 4 days:

  • Host AverageDiskSecWrite of the harddisk the VM resides on = 0,027
  • Host AverageDiskSecRead of the harddisk the VM resides on = 0,015
  • in the VM AverageDiskSecWrite of the harddisk = 0,361
  • in the VM AverageDiskSecRead of the harddisk  = 0,016

I see that the AverageDiskSecWrite in the VM is very poor. I also tried a DB-restore in the VM with hyperV replica enabled and disabled. With replication enabled it took about 2 and a half hours to restore a 42GB Database. With replication disabled it took about 40min to restore the same 42GB Database.

Now to my actual questions and hopefully someone can help me please :).

Why is it, that with replication enabled it takes more than 4 times longer to restore a DB?

Are there any HyperV-settings that I could use to get better write and read Performance in the VM?

I already googled a lot but despite the fact that i should use a different harddisks-setup for the VM i didn't find anything useful.

The things simplest setup suggested is a raid 1 for the VM-OS and a different raid 1 for the VM .mdf and .ldf files.

Kind Regards

Chris

SQL Broker Queues -> Production Avail Group Locks Up Completely Unresponsive Under Load - Possible DTC Issue?

$
0
0

Scenario:

We are running SQL 2016 with the latest service pack/patches in a 3 Node Availability Group.  We have implemented service broker queues and have two worker processes on app servers processing messages out of these queues.  DTC is configured for the AG and the app servers involved.  We recently have had nearly daily issues with our Availability Group with the following behavior:

Queues are operating normally until a large set of requests come in for processing

We receive errors in our application log with a Transaction In Doubt exception and at this point the database essentially becomes locked up.  Queues do not process, but running the locks/waits reports do not show any waits or blocked requests.  

DTC shows several pending queries with a single one pending commit, but nothing ever changes.  Attempts to force commit or kill the pending request are rejected and restarting DTC on all the servers in the AG and the App Servers has no effect. 

After a period of time (15 Min?) the primary node of the AG becomes completely unresponsive, and will not allow the user to connect to it AT ALL.

We are forced to log into one of the nodes directly.  It appears as though communication between the nodes has been interrupted and we are forced to fail over the AG manually.  After the failover more often than not we are forced to remove and re-add the Queue DB to the AG manually on the two secondary nodes.

We strongly suspect that DTC is the root cause and we believe that its something we have done wrong in our code that is causing this under high load.  This issue only occurs in a queue that involves both queue messages and reading data from FileStream which leads us to think that it may be a timing issue between the nodes of the AG not having the file fully committed in one of the secondary nodes?  Investigation of the code around both processes does not have anything that jumps out at us, especially since the code works just fine without high load.  

Our big concern right now is that the AG is becoming completely unresponsive and google searches have not yielded anything resembling our scenario or behavior.  We are hoping that someone with more knowledge of DTC and Service Broker might have some ideas for us to investigate.  

Thank you in advance!

AlwaysOn - We have a background session on our secondary server stuck at 'db startup' since our last failover

$
0
0

Hi,

Since our last failover, we have on our secondary server background sessions active for all of our synchronized databases. These sessions seems to be stuck at 'db startup' command. Any idea why and what to do with this?

I don't know if it's related but we ran a DBCC CHECKDB and when the job tried to check one of these databases stuck at 'db startup' command, our DBCC failed!  Error message:

DBCC CHECKDB (DatabaseName) executed by LOGIN found 0 errors and repaired 0 errors. Elapsed time: 10 hours 20 minutes 23 seconds. Internal database snapshot has split point LSN = 0001e8b8:000a46a8:0008 and first LSN = 0001e8b8:0009cc80:0001.

Thank you all!


Joining SAN drives to a cluster makes MDF/LDF files inaccessible

$
0
0

I have a scenario where I need to bring a stand-alone SQL Server 2012 instance into a SQL cluster.  Node1 is a stand-alone instance.  I explicitly detach all the databases on the drives via a TSQL script.  Node2 is a SQL Server 2012 single-node clustered instance.  Using the Failover Cluster manager tool, I am able to join the SAN drives from the unclustered instance to the clustered resource group, and create the dependencies to MSSQLSERVER role.  When I try to re-attach the MDF/LDF files I get an "Access Denied" error for the files.  When I roll-back everything, I have no problem re-attaching the files on the stand-alone instance. 

I'm missing something in the Cluster config, but I don't know what.  Has anyone ever had this issue before and found a resolution?

Thanks!

Senior SQL DBA

Brandon.Forest@purple.us


Brandon Forest SQL Server DBA


Change Data Capture and Always On

$
0
0

As I was going through some MS documentation, I happened to see the below excerpt. Could you please shed some lights on the same ?

We are seeing some overhead on CDC on our load test, hopefully, it may help us understand better of the below. Thanks in advance!

Question: What do we mean by "changing enumeration" here? Is there any setting or its just represent the secondary usage?

Change Data Capture and Always On

When you use Always On,change enumeration should be done on the Secondary replication to reduce the disk load on the primary.

Ref: https://docs.microsoft.com/en-us/sql/relational-databases/track-changes/change-data-capture-and-other-sql-server-features?view=sql-server-2017



Please mark this reply as answer if it solved your issue or vote as helpful if it helped.
 [Blog]  [LinkedIn]

Cluster disk and the drive letter

$
0
0

Any way I can use powershell script to script out the cluster disk name and it's drive letter ?

Availability Groups limits

$
0
0

Hello

I'm testing setups for using Availability Groups.

I understood that in Standard edition it is possible to setup only 1 db per AG.

So, two questions that I couldn't find any answer for them:

Is there a limit for number of Availability Groups per instance in Standard edition?

Is there a limit for number of DBs per AG in Enterprise edition?


Can I configure LOGSHIPPING from 2008R2 to 2016

$
0
0
Hi MSDN, can I configure log shipping from sqlserver 2008R2 to 2016? 

Always On - How to update SQL server in this configuration.

$
0
0

Hello,

We have two SQL servers for our SharePoint farm: they are in the 2012 SP2 release and we want to upgrade to 2012 SP4.

Is it possible to update one by one with the "always on" a mechanism without impact? We are concerned that with two SQL Server servers in a different version of the software, synchronization alters the data?

Thank you in advance for your help,

Have a good day,
Clement

Cannot connect to AG Listener in one domain from system in another domain

$
0
0

I got a 2-node AG environment in one domain but my reporting Server is in a different domain (There is no trust between the domains and I am using SQL logins to connect)

I got firewall TCP 1433 firewall rule opened from reporting Server to both AG nodes & both Listener IP's. From reporting Server, I can connect to the individual nodes of AG but I cannot connect to the AG listener (DNS name or IP address).  From reporting server, I can ping the Listener (FQDN and Active IP of the AG Listener ) but telnet on port 1433 does not work.

Local windows firewalls are disabled on source & destination systems.

Can anyone advise if its possible connect to an AG listener from a system in a different domain ? And do I need any specific configuration/firewalls opened to make it work ?

Unable to access FCI via SSMS

$
0
0

Hello.

I have just built a two node clustered instance.

I can access the Instance using the Virtual network name only when I am accessing SSMS from the node which is current owner of the cluster.

Not from any other machine. <u1:p></u1:p>

Test-NetConnection <VirtualNameOfSQLClusterInstance> -Port 1433 returns success only when I am trying it from the owner node of the SQL cluster. 

I have ensured dynamic ports are removed from IPAII and I have assigned static port 1433. 

Please help. 



Storage for Windows Server Failover Clustering with SQL Server

$
0
0

If we want to deploy SQL Server as Always On Failover Cluster Instances with iSCSI as storage, we filtered out two possibilities for our data files: 

- directly use Clustered Shared Volumes (created from iSCSI)

- use SMB shares on a scale out file server that itself uses storage from iSCSI

Is there any advantage for the second solution or does this introduce an unnecessary overhead to use a file server? 

Is there any recommendation for "best" storage for SQL Server on Failover Cluster? 

Thank you for your help,

Ina

SQL Server Clustering with vMware best practices...shall plan to cluster inside vm?

$
0
0

Hello everyone,

  I am looking for the best practices or recommend solution/ white papers for the " SQL Server clustering in Virtual Environment"

we have database needs to be highly available 24x7/365 in virtual environment and needs to architect the environment. Also Vendor is keep saying " Microsoft is recommending clustering SQL server in virtual environment is not a bets practices"  . If anyone has seen or have reference to saw him that's  not correct would be great.  

Even though vMware is coming up with vMotion,  which provide vm level HA but still i am not convinced with vendor's statement. 

Looking for 

  • shall plan to cluster SQL Server vm's inside the vMware or hyper-v? 
  • If Yes,so do what are the setting needs to be made in vM's and any overheard consideration? 
  • If no, why is not best to cluster sql in virtual environment? 
  • AG is the only option then?

any other helpful information would be great help.  


Thank you very much for your time and effort to answer this post. Please Mark As Answer if it is helpful. \\Aim To Inspire Rather to Teach Best -Ankit

Is MSSQL failover Cluster (Active/Passive) will support to encrypted shred disks (RDM)

$
0
0

Hi All,

We have built the active-passive SQL fail over cluster successfully (Node& Disk majority) , prior cluster disk encryption,  the SQL failover cluster services moving successfully between the nodes & SQl & MSDTC services coming online automatically on nodes.

Due to some security compliance, We need to do encrypt the cluster disks + OS disks (~ $C & $D,) ( third party vendor ), but post encryption, the SQL cluster is not fail over as expected  and disks are taking more time to coming online & initializing , And then it’s leading SQL cluster fail over services failed , Once disks are initiated & coming online, then need  to bring SQl failover services manually online.

 

  • Is MSSQl failover cluster shared disks will support encryption or not
  • What are parameters need to change in SQL failover cluster services to bring services online automatically if encrypted the cluster disks (RDM)

 

Thank you in advance



Regards, Kiron


Can the nodes of a fail-over cluster instance reside on two geographically separated windows hosts. If yes, what are the challenges

$
0
0

Can the nodes of a fail-over cluster instance reside on two geographically separated windows hosts. If yes, what are the challenges.

The requirement is to make use of just standard edition. So, always on availability groups is not an option. 

Please suggest. 

Backup file (.bak) always increase after High Availability

$
0
0

Dear all,

My company just deploy HA about 20 days.

Before HA, DB backup size is 1 GB, after 1 day -> 3 GB

Some DB affected by that only, Not for all.

So please help me about that.

Regards,

Hien Nguyen

Viewing all 4689 articles
Browse latest View live


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