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

is it possible to deploy Always On by using instances?

$
0
0

hi, can you confirm that  is it not possible?

Thanks in advance,



SQL Availability Groups for HA and DR

$
0
0

Hi Team,

I am working on planning for SQL Always on Availability Group as DR solution.

Windows cluster will be extended from primary to DR site , DR site will have standalone SQL instance as second replica.

I am looking for the minimum network bandwidth / latency requirements to support the AG across datacenters .

Is there any guidance on bandwidth (Min) requirements, that will guide for Synch and Asynch . This decision is highly depends on bandwidth.Any inputs will be highly appreciated

Regards,

SQL 2012 AlwaysOn does not allow database update

$
0
0
  I recently tried to get monitoring application Solarwinds to point to the ALwaysON cluster and will get the error"Failed to update because the database " " is read only".  I have tried umpteenth time to check if the database is a read only database.  The state of the database read only is set to false which think this database is not .

Another experiment is that I get the application to connect to the primary node instead of the cluster and it is working all right.  So I am pretty sure I am being stopped by some configs in HA group or some sort.  I am new to SQL and really appreciate any advice.  Thanks.



VLDB log file runs out of space...

$
0
0

Hi,

We have a reindex maintenance job that runs each and every day on a VLDB. To optimize the job we decided to split the job in 5 threads. Last saturday it ran for 3h30 hours and then our log file went out of disk space.

Here is the error message from the error log:

Our VLDB is in a Alwayson availability group. We have one secondary in an asynchronous mode and two secondaries in a synchronous mode.


While the jobs was running, four backups of the log file were done on the primary

What could explain the fact that, even if four log backups were done on the database, no space was made available on the primary and we ran out of disk space for the log file? Since log backups were done, shouldn't space for the log file have been made available?

Thanks a lot

SQL Availability Group connection timeout

$
0
0

I have had a couple of instances in which my SQL Server has gone offline and stayed in a RESOLVING state instead of failing over.  In these instances I see the following SQL Server error message:

A connection timeout has occurred on a previously established connection to availability replica 'ServerName'.

In Event viewer I see this message:

Name resolution for the name 'ClusterName' timed out after none of the configured DNS servers responded.

It seems clear that there is an issue with the connection to the DNS server.  I am wondering if anyone has ever created a host file as a workaround for DNS server connection issues.

SQL Server 2016 & Cluster Active/Active

$
0
0

Hi

I researched about SQL 2016 Cluster Active-Active and I read High availability options on https://msdn.microsoft.com/en-us/library/ms190202.aspx but cannot see SQL Cluster with Active/Active nodes. Our business requirements are:

  1. SQL Cluster 2016
  2. Two node members of cluster
  3. SQL Cluster contain one SQL instance with one DB1
  4. Our requirement is that both nodes are active simultaneously DB1.

My question is, if is possible configure SQL Cluster to have active DB1 on both nodes at the same time(Active/Active)?

Thanks.


configuring log shipping in test environment.

$
0
0

I am trying to configure  the log shipping in test environment.

I am getting below error when the job runs.

Error: Backup failed for Server '***'. (Microsoft.SqlServer.SmoExtended) ***
Error: An exception occurred while executing a Transact-SQL statement or batch.(Microsoft.SqlServer.ConnectionInfo) ***
Error: Cannot open backup device '\\***\****\****.trn'. Operating system error 1326(The user name or password is incorrect.).
BACKUP LOG is terminating abnormally.(.Net SqlClient Data Provider) ***

Both the servers are in different domains. The secondary is on cloud VM .

I added the local account and tried to give the access to the shared folder.But it didn't work.

Can someone help me to fix this issue.Kindly let me know if i need to share any more information.

Recovering available data from corrupted .MDF file (MSSQL 2005)

$
0
0
Could some one please let me know how to retrieve the available data from the corrupted MS SQL server 2005 file programatically ?  I've tired with various recovery tools but all my tries are in vain.

Recover corrupt mdf file with just one bad table in it

$
0
0

Hi,

I have a corrupt mdf file.
Error: 824, Severity: 24, State: 2.
The corrupt page is (1:1149)

DBCC CheckDB ('MyDb', REPAIR_ALLOW_DATA_LOSS) couldn't fix it. I tried all possible options.

The db is not in production but it is fully operational, despite the corrupt page.
I ran DBCC CheckTable on all the tables and identified the culprit table. It is an insignificant helper table with no important data and no dependencies on it. That is why the error has lasted for a while and propagated into the backup too. So I have no clean backup to restore from.

I just upgraded to SS2012 Express and the db could not upgrade beyond version 691, then the mdf file size swelled from 40MB to over 1GB. and kept appearing as recovery pending in SSMS object explorer. After 24h I gave up and re-attached a backed up copy to the 2008 R2 environment on another machine and tried to export the v665 db and then upgrade the version to v706 - no go; 

I could not script the entire db to migrate it. It throws an error at the preliminary enumeration of objects to be scripted. Even if I skip the culprit table by unchecking it, the scripting utility goes through the same list of table objects and chokes anyway when it hits the bad page. I did manage to script out all views, udf, and usp objects - all but the tables. Funny, I can script out in SSMS all tables but the culprit one, but the scripting wizard iterates the list of objects and fails no matter which tables I have selected good, bad or any combination thereof.

SELECT INTO across all tables is not a good option as it does not migrate keys, indexes, constraints, calculated columns etc.

I tried the demo of Stellar Phoenix mdf recovery tool which previewed the mdf file just fine, but so does SSMS. So does the client app too with no probs except when querying the bad table (Since the table was legacy I had to write code to query it -  no surprise there, it is bad for sure).

What I need is a way to "copy" the good tables and data w/out the bad table into a new db and then migrate it. I am trying not to do all this scripting work table by table over hundreds of tables. Is there a better way?

Working with SMO may be a way to skip the bad object in a try-catch but it seems almost as much work as to script the SQL stmts.

Please help.

Thanks

SQL 2014 AG as HA And DR

$
0
0

Hi Team,

We are planning to have HA and DR scenario with WSFC across data center.

In primary datacenter, SQL will be running as failover with multiple SQL instances. Each SQL instance will have static port configured. In DR standalone SQL will also have multiple instances with static port configured with for each instance.

I have below queries and need some inputs:

1. Though my each SQL instance is running on static port (not on dynamic), can is still have Virtual listeners for Availability groups listening on 1433? or do i need to map ports based on SQL instance ports?

Regards,

Always On High Availability Multi Subnets

$
0
0

Here is my layout:

Node 1 and Node 2 are in one subnet with the witness server.

Node 3 is in another subnet.

My question is can I have more than 1 witness server to optimize fail-over if the location where Node 1, 2, and the witness server are located goes down?

Active node lost storage for a while when the passive was rebooted

$
0
0

Hi All,

We have a active/passive Windows 2008 R2 cluster, and I installed a SQL 2008 R2 instance on the cluster, Quorum configuration is node and disk majority. Now we had an issue when we did failover. I failed over MSDTC and SQL instance from N1 to N2, moved quorum from N1 to N2, but when I rebooted the new passive node N1, all disks on active node N2 lost at the same time, then they were back ~30 seconds later, I test a couple of times, could not find the reason. We have other clusters which have the same installation/setup, they had no problem at all. Could anybody give me a hand to sort the issue? I will post the related event log and cluster log.

Thank you very much.

David

MS SQL DTC with HA and DR scenario using AG

$
0
0

Hi Team,

I am planning to have AG setup . On primary we will have 2 node SQL cluster instance with underlined WSFC extended to DR site.

At DR we will have SQL standalone running secondary replica.

I have below query on MS DTC service in such scenario:

1. Do we need to have MS DTC service also running as cluster service (Failover) (network name , ip address etc.) and need separate quorum disk as well?

2. Does MS DTC is supported with Availability group?

3. Do we need to do any special configuration keeping AG in view?

Any reference link/article that can guide on DTC with Cluster and AG ?

Regards,

  

SQL installation Error - Luns are mount point with subfolders for DB files and Logs

$
0
0

Hi Team,

While installing SQL 2014 on cluster node, i am getting attach error. any pointers to resolve this pls.

Regards,

Listener name for conneting primary replica and other queries

$
0
0

Hi Team,

I am planning to have below setup, and need some inputs related to AG listeners.

In Primary datacenter:

2 node WSFC with multiple SQL instances, each running on static port (not on 1433).

Shared storage between Node 1 and Node 2

In DR site:

Extend the Primary WSFC and add 1 more node to the existing cluster. This node will be a SQL standalone with SQL multiple instances (no. of instances will be same as of primary SQL FCI). Each instance will have instance name with static port (other than 1433)

Will have dedicate\independent storage (LUN/vdisk). No storage replication between sites

AG:

create Availability groups for SQL Dbs. Node 1 and node 2 will be primary replica

Node 3 standalone will be Secondary replica

Listener groups will be created for each AG and will have unique VNN with port as 1433.

Queries:

1. I understand such setup will not provide automatic failover but need to point client/application manually to secondary replica. Is there anyway to achieve automatic connections if primary datacenter is down?

2. Is it possible to create blank availability groups (with no DBs)?

3. If it is possible to have availability groups and listeners created before DBs are created, is it possible to give VNN name\listener name while installing application and its DB need to created instead of SQL Cluster name\Instance name? Not sure but if its possible, will it provide automatic failover to applications in case primary Datacenter is down and still connect to DB available in DR as part of AG replication?

4. There is another scenario wherein instead of above setup, we can have 3 individual node running independent storage and multiple SQL instances on different boxes. Does that also require WSFC ? and can provide HA?

5. Individual setup running there own storage with primary , secondary , secondary replica is much more better that 2 node cluster and then standalone in DR? Any pros and cons for both the approaches. One thing i can see is more storage is required with 3 individual nodes since each will have its own DB copy.

6. Any document that can list the network requirements (heartbeat, public, AG NIC, IP addresses for each node etc.) if we plan to have 2 node SQL FCI with 1 node standalone in DR by extending WSFC?

Any inputs will be highly appreciated  

Regards,


Combination of Cluster with Always ON

$
0
0

Hi,

Is it possible to create a setup with Primary site having shared drive (SAN) with a failover cluster and Secondary site (cross site - Geo cluster in a separate data center) with sync/async Always ON HA? In any versions starting from 2012? Thanks!

DR - SQL Server - VM's

$
0
0

Hi All:

We have an discussion with VM team and DB team.

Requirement: Configure DR for all the SQL Servers hosted on Virtual Machines.

VM Team: They are asking us to configure Mirroring or Logshipping with out extra license.

DB Team: We are asking them to implement DR by using "VMware vCenter Site Recovery Manager".

We informed that we are not ready to configure either log shipping (or) mirroring for all the databases on the SQL Instance.

Please share your experiences with us who worked on DR planning on VM Hosted SQL Servers., Highly appreciated that who worked onVMware vCenter Site Recovery Manager for there DR plans. Your experiences was help full for us.

Thanks,

Satish Kumar.


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

Why Automatic fail over occurring without any crash

$
0
0

I have setup always on availability group with two node cluster.

i found even if windows server and sql server is running fine, automatic fail over is occurring.

i want automatic fail over to occur only if there is any genuine problem/reason, how can i configure it so.

can any one suggest how to know the reason of last fail over occurred.

thanks in advance for your valuable comments. :)



Cluster vs Listener Failover

$
0
0

Hello,

I'm seeing some behavior with AlwaysOn that I'm not sure is intended with SQL Server 2012 running on Windows 2012 R2.

I have two nodes in an AG (synchronous commit with automatic failover) that are in different subnets, so the cluster and listener objects have two IPs. I'm using a file share witness for quorum. When the file share path becomes unavailable for a short period of time on either member server, the cluster automatically fails over its core resources to the host that was originally offline, but the AlwaysOn AG doesn't automatically failover.

This leads to the cluster object being active in one subnet and the listener being active in the other. Does this inherently cause any issues?

I've noticed that if I do a manual failover on the AG through SSMS, it makes the cluster and listener objects active in the same subnet so I assumed that's how it 'should be'. I honestly haven't noticed any issues with data availability when it gets in the state with the cluster and listener objects active in opposite subnets, but SCOM alerts that the cluster is offline and I do notice DCOM errors in the event logs of the primary replica when it gets in that state.

Any input is appreciated.

Looking for tutorial for syncing a SQL DB.

$
0
0

Using subscriptions we are getting empty table on the other server. What is the proper way to set up a remote SQL server that is synced?

Thanks

Viewing all 4689 articles
Browse latest View live


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