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

MSDB Keeps going "Recovery Pending"

$
0
0

Hi everyone.  First time posting.

I have a small issue with a production AG cluster.  One of the nodes of the server is having an issue with the MSDB database going "recovery pending".  When this happens, everything fails over to another node, so no loss of service.  But it's a pain to have to restore these databases once in awhile.

My current theory is that windows updates are rebooting the active node without a proper failover.  In response to my theory, I've just setup cluster aware updating as of yesterday. 

The odd thing is, I don't have MSDB added to the AG.  And in the logs, it's telling me the reason for "recovery pending" is that the log file is corrupt.

Can someone advise a place i can look to determine the root cause? Does my theory of windows update rebooting the server sound possible?


How to Setup Always On-SQL Server 2014 STD Edition

$
0
0

Hi,

Please let me know what is exact difference between 

1. Alwayson Failover Cluster Instances and AlwaysOn Availability Groups

2. I want to configure Alwayson Active/Active Cluster using SQL Server 2014 Std Edition at Primary Site

    I know in SQL 2014 Enterprise Edition we can configure AlwaysOn Availability Groups

  How to Set Up Standard Edition AlwaysOn Availability Groups in SQL Server 2014 Std Edition

  

Regards,

Nikhil P Desai

Need Solution- Changes at DR should be replicated at DC

$
0
0
Hi,

I have SQL Server 2014 Standard Edition 

Active/Passive Server at DC and Standalone at DR

5 database need to be replicated to DR

Once Switch-over / Fail-over happens Application will point to DR. Changes will be done at DR. 
Then again Switchback/Fail-back will happen and Application will point to DC. The changes happen at DR databases should be reflected at DC. 

1. Log-Shipping is One-way replication from DC to DR. Before Switchback/Fail-back Log-Shipping has to be configured again
2. Database Mirroring - Changes will be done at DR will be synch with DC during Switchback/ Fail-back. There are 5 databases.
   The database size is around Terabytes there can be performance issue.
3. Merge and Tran with update subscription are object level technology. Also a new column is added in table which might create      connectivity  issue when application communicating with Databases.

So which technology should I prefer for SQL Server 2014 Standard Edition Active/Passive Server at DC and Standalone at DR. Is there any other solution then please let me know

Regard,
Nikhil P Desai




SQL Standard Instances on a 4 x 10 core CPU server - Manage core utilisation

$
0
0

I'm looking to build a SQL cluster using two physical servers, each with 4 CPUs and each CPU having 10 cores, (let's ignore hyper-threading for the moment to keep it simple for me). 

I know that an instance of SQL Standard can run on 4 CPUs or 16 cores which ever is the lower, so in this case an instance will use 16 cores, hopefully I've got that bit right! :-)

My question is: If I install a second instance onto the same physical server, how do I know, or make sure, that the second instance is not utilising the same 16 cores as the first instance.  Does SQL know to use the least utilised cores up to the 16 cores allowed or do I have to tell an instance which cores to use.

Thanks for any advice, information links.

PeteL.

SQL SERVER CLUSTER WITH SAN REPLICATION

$
0
0

Hi All,

We are planning setup SQL Cluster with SAN replication , have queries on this.

Environment :

We have total two cluster one is for production(Two Node SQL Cluster ) and another for DR(2 Node SQL cluster) . 

have SAN replication these two cluster (From production to DR). 

Questions:

1. Is it possible to read the data at DR site DB when application running on production server?

2. Do we need to attach the DB after fail over from Production to DR if so, after attaching DB SAN replication will be break or continue vice versa.(Prod to DR ,DR to prod)

3. Do we have any automatic fail-over from production to DR(In case production down will automatically move to DR ).

Thanks in advance

DBCC could not obtain a lock on this object because the lock request timeout period was exceeded (TEMPDB)

$
0
0

Hi All,

I'm getting the following error when running a DBCC CHECKDB on TEMPDB:

Running DBCC CHECKDB for tempdb
USE [tempdb]; DBCC CHECKDB WITH NO_INFOMSGS, ALL_ERRORMSGS;
Msg 5245, Level 16, State 1, Line 1
Object ID 34 (object 'sys.sysschobjs'):  DBCC could not obtain a lock on this object because the lock request timeout period was exceeded.  This object has been skipped and will not be processed.

dbcc checktable ('sys.sysschobjs')
Msg 5245, Level 16, State 1, Line 1
Object ID 34 (object 'sys.sysschobjs'):  DBCC could not obtain a lock on this object because the lock request timeout period was exceeded.  This object has been skipped and will not be processed.

On my other SQL instances (SQL 2005, 2008, 2008 R2) I don't run into this error.

This is a SQL 2008 server (10.0.5500). I couldn't find in other forums what could be causing this error but it's causing my daily dbcc checkdb job to dail (all other dbs run fine).

Any thoughts/comments appreciated.

Thanks,

Unable to access Alwayson Listener from different subnet

$
0
0

I'm using AWS for my environment. I have 3 different subnets.

subnet1 - 172.16.1.0/24

Subnet2 - 172.16.2.0/24

Subnet3 - 172.16.3.0/24

I have 2 sql servers with always on in 172.16.1.0/24(Subnet1), Alwayson listener IP - 172.16.1.99 Port 1433

My problem is Im able to access the listener from Subnet1, But I can't able to access from subnet2 and 3.

Telnet is also not working.

Error Msg: 

Sqlcmd: Error: Microsoft ODBC Driver 11 for SQL Server : Named Pipes Provider: Could not open a connection to SQL Server [53]..

Sqlcmd: Error: Microsoft ODBC Driver 11 for SQL Server : Login timeout expired.Sqlcmd: Error: Microsoft ODBC Driver 11 for SQL Server : A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online..

Please help me to fix this. 

SQL Server Snapshot Replication error 22018

$
0
0

I am trying to get snapshot replication between two MSSQL servers to work but am receiving errors. Any help will be much appreciated!

My setup: Publisher/Distributor: SQL 2008 R2 Subscriber: SQL 2016

I am just trying it with a simple test table named Cars containing:

Car_ID   Car_Name1   Hummer2   Porsche3   Tesla4   Bently5   Lotus Elise6   Mini

In the Replication Monitor I get the following errors:

Error messages: The process could not bulk copy into table '"dbo"."Cars"'. (Source: MSSQL_REPL, Error number: MSSQL_REPL20037) Get help: http://help/MSSQL_REPL20037 metadata query failed Invalid character value for cast specification (Source: MSSQLServer, Error number: 22018) Get help: http://help/22018 Unspecified error


SQL Log Shipping Restore Job not delete the old backup

$
0
0

Hi 

I have SQL log shipping based on SQL 2014 , every thing are fine except deleting the old backup is not happening with the restore job.

any one can help


Ahmed Ali

CPU % Utilization - Get detail of that percentage

$
0
0

We have sometimes CPU issues on one of our production server (DynamicAx database on an alwaysOn primary server). People are asking us to give them the detail of that CPU %  used. Here<o:p></o:p>

 <o:p></o:p>

Ok there are no issue right now but sometimes CPU % goes up to 90%. We are asked to explain the detail of that 90%!!! They want to see a list of processes (spid) with a percentage for each and by adding all those percentages they will have the 90% CPU utilization.<o:p></o:p>

Process_1 -- 8%<o:p></o:p>

Process_2 -- 10%<o:p></o:p>

Process_3 -- 50%<o:p></o:p>

Process_4 -- 2%<o:p></o:p>

Process_5 -- 20%<o:p></o:p>

 <o:p></o:p>

TOTAL – 90%<o:p></o:p>

 <o:p></o:p>

Ok so it’s process_5 the problem, let’s go kill it…

<o:p></o:p>

Is there a magic query, a magic tool that can provide this kind of list?<o:p></o:p>

 <o:p></o:p>

Thank you,

30 days limit to Passive server until it must be fully licensed

$
0
0

 

I read this restriction in the MS SS08 licensing DOCX file. I just want to ensure I understand. Is this 30 days in total a year (Oracle is like 10 days in total a year). Is it a one time fail-over that can last up to 30 days?

 

Another concern is that if I fail over in our MIRROR cluster, perhaps I just want to leave it there until I fail back for a failure purpose. The licensing docs imply to me then I must fully license this as an active/active cluster...

Welcome to the SQL Server Disaster Recovery and Availability Forum

$
0
0

(Edited 8/14/2009 to correct links - Paul)

Hello everyone and welcome to the SQL Server Disaster Recovery and Availability forum. The goal of this Forum is to offer a gathering place for SQL Server users to discuss:

  • Using backup and restore
  • Using DBCC, including interpreting output from CHECKDB and related commands
  • Diagnosing and recovering from hardware issues
  • Planning/executing a disaster recovery and/or high-availability strategy, including choosing technologies to use

The forum will have Microsoft experts in all these areas and so we should be able to answer any question. Hopefully everyone on the forum will contribute not only questions, but opinions and answers as well. I’m looking forward to seeing this becoming a vibrant forum.

This post has information to help you understand what questions to post here, and where to post questions about other technologies as well as some tips to help you find answers to your questions more quickly and how to ask a good question. See you in the group!

Paul Randal
Lead Program Manager, SQL Storage Engine and SQL Express

Be a good citizen of the Forum

When an answer resolves your problem, please mark the thread as Answered. This makes it easier for others to find the solution to this problem when they search for it later. If you find a post particularly helpful, click the link indicating that it was helpful

What to post in this forum

It seems obvious, but this forum is for discussion and questions around disaster recovery and availability using SQL Server. When you want to discuss something that is specific to those areas, this is the place to be. There are several other forums related to specific technologies you may be interested in, so if your question falls into one of these areas where there is a better batch of experts to answer your question, we’ll just move your post to that Forum so those experts can answer. Any alerts you set up will move with the post, so you’ll still get notification. Here are a few of the other forums that you might find interesting:

How to find your answer faster

There is a wealth of information already available to help you answer your questions. Finding an answer via a few quick searches is much quicker than posting a question and waiting for an answer. Here are some great places to start your research:

How to ask a good question

Make sure to give all the pertinent information that people will need to answer your question. Questions like “I got an IO error, any ideas?” or “What’s the best technology for me to use?” will likely go unanswered, or at best just result in a request for more information. Here are some ideas of what to include:

For the “I got an IO error, any ideas?” scenario:

  • The exact error message. (The SQL Errorlog and Windows Event Logs can be a rich source of information. See the section on error logs below.)
  • What were you doing when you got the error message?
  • When did this start happening?
  • Any troubleshooting you’ve already done. (e.g. “I’ve already checked all the firmware and it’s up-to-date” or "I've run SQLIOStress and everything looks OK" or "I ran DBCC CHECKDB and the output is <blah>")
  • Any unusual occurrences before the error occurred (e.g. someone tripped the power switch, a disk in a RAID5 array died)
  • If relevant, the output from ‘DBCC CHECKDB (yourdbname) WITH ALL_ERRORMSGS, NO_INFOMSGS’
  • The SQL Server version and service pack level

For the “What’s the best technology for me to use?” scenario:

  • What exactly are you trying to do? Enable local hardware redundancy? Geo-clustering? Instance-level failover? Minimize downtime during recovery from IO errors with a single-system?
  • What are the SLAs (Service Level Agreements) you must meet? (e.g. an uptime percentage requirement, a minimum data-loss in the event of a disaster requirement, a maximum downtime in the event of a disaster requirement)
  • What hardware restrictions do you have? (e.g. “I’m limited to a single system” or “I have several worldwide mirror sites but the size of the pipe between them is limited to X Mbps”)
  • What kind of workload does you application have? (or is it a mixture of applications consolidated on a single server, each with different SLAs) How much transaction log volume is generated?
  • What kind of regular maintenance does your workload demand that you perform (e.g. “the update pattern of my main table is such that fragmentation increases in the clustered index, slowing down the most common queries so there’s a need to perform some fragmentation removal regularly”)

Finding the Logs

You will often find more information about an error by looking in the Error and Event logs. There are two sets of logs that are interesting:

  • SQL Error Log: default location: C:\Program Files\Microsoft SQL Server\MSSQL.#\MSSQL\LOG (Note: The # changes depending on the ID number for the installed Instance. This is 1 for the first installation of SQL Server, but if you have mulitple instances, you will need to determine the ID number you’re working with. See the BOL for more information about Instance ID numbers.)
  • Windows Event Log: Go to the Event Viewer in the Administrative Tools section of the Start Menu. The System event log will show details of IO subsystem problems. The Application event log will show details of SQL Server problems.

Shrinking the Transaction Log while Logshipping is Configuration

$
0
0

Hi,

I have logshipping configured between my Prod Servers and DR Servers. Transaction log backup,copy and restore takes place every 5 min.

While configuring logshipping on these servers I had shrinked the LDF file of the prod database whilst it was in simple recovery mode. Then I converted it into full recovery mode and configured logshipping on it. However now I found out that the log on the prod database has increased!.....Can i possible shrink the LDF file? I understand that in general if a db is on full recovery mode, shrinking is only possible after we take a log backup which commits the uncommitted transactions. In my case I assume that since my logs are backup-ed regularly shrinking is possible. Am I right in this scenario....Pls help

Thanks and Regards,

Tauhid S Shaikh

do not have permission to create quorum file witness

$
0
0

i have gone over the permissions on the file and share and everyone has full permission to do what every they want. when i select the folder on the file share after browsing to the machine i get an error that say you do not have rights to read the information. 

when i try to create the file witness on the local machine i do0n't get the abbove error but i get user name and password incorrect. 

Restore / Attach / Recreate System Databases From Different SQL Instance

$
0
0

Hello,

We are planning to go with SAN replication for all user databases from SQL instance "A" to SQL instance "B". The SAN replication works perfectly for all user databases that are replicated to instance "B".

How the SAN replication is setup / configured:

1) We have configured instance A with user / application databases.

2) We have configured instance B with the backups of all user databases from instance A

3) Now the instance B is taken offline & the SAN replication is turned ON. so any changes on A will  be replicated to B.

4) During the Disaster Recovery we will cut off the SAN replication & bring the SQL instance B online.

This procedure is working perfectly without any issues & we are able to access users databases when B instance is brought online.

The question is "is it possible to replicate system databases(master, model & msdb) as well?". Details below,

1) All .mdf & .ldf files of system databases on instance "A" are replicated to SQL instance "B" server.

2) Is it possible to mount / present these files to instance B & update the instance settings. Any possible suggestions in doing this?

Note: Both instances are running on same build & version is SQL Server 2008 R2 SP4

Thank you.


Always On Availability group implementation

$
0
0

i have a requirement to implement AlwaysOnAvailability Group,

there are four databases

first, Second, Third and Fourth,

FIrst database should be alone on one instance

Second, Third and Fourth should be on second instance,

using minimum resources, how can we setup AOAG with complete high availability and DR.

Thanks


k

License for secondary DR server

$
0
0

I have two server with standard edition of sql 2012 installed with licensed version and i want to configure the log shipping for both two server over on third server by installing two instances and this server will acts as DR server so as per my study the first disaster instance doesn't require the licenses.

so can you please clarify my doubts on licensing related to DR setup.

 

Multi site clustring

$
0
0
what is the purpose of clustered file server and is the mandatory for multi site windows clustring

In AlwaysOn Database state is NOT SYNCHRONIZING/RECOVERY_PENDING

$
0
0

I have instance with multiple databases and with AlwaysOn configured. Due to some issue from storage disks services got restarted.

After services up, In primary replica, some of the databases state went to NOT SYNCHRONIZING/RECOVERY_PENDING, some of the DBs are fine.

It's a cluster AlwaysOn setup.

Can anyone please advice me with steps/way to bring databases back to Online/Sync mode ?

Thanks.

SQL CLUSTER INSTALLTION FAILED

$
0
0

WE ARE GETTING THE BELOW ISSUE WHILE INSTIGATING CLUSTER ,

" not belong to cluster group"

WHAT MAY THE CASUE

Viewing all 4532 articles
Browse latest View live


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