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

Sgl server clustering and iis

$
0
0

Hello

I have 2 Servers DELL with 2012 OS and Stor Ever LTO 5 as a storage.

Any one could help me to install sql and application(iis)

on the two server and get sql cluster with node1 and node2

and have some kind of load-balancing for iis on the same 2 nodes

is that possible? and if yes how?


HA design

$
0
0

All instances are SQL Server 2014 Ent. edition

I would appreciate your input and thoughts about this design.

We have set this design at our lab and so far done some very basic tests simulating fail overs etc.

However, due to the design’s complexity I am interested to hear other opinions.

Here is a link to see a diagarm of the design:

https://drive.google.com/file/d/0B7yeAe4Hpq4SZEVVc1JjM3VHOXc/view?usp=sharing

The diagram shows the following:

sql03 + sql04 are both FCI (Failover Cluster Instance) serving as active/passive nodes and holding the OLTP database (most crucial db).

sql05, sql06 and sql07 each hold 2 databases that receive data via Transactional Replication (these 2 databases on each instance are the subscription databases of a 1-way Transactional Replication)

The OLTP database (hosted by the FCI on sql03 and sql04) is the Primary Replica of AG-OLTP sending data to the Secondary Replicas hosted by sql01 + sql02

The subscription databases (hosted by sql05, sql06, sql07) are each the Primary Replica for its 2 databases hosted by AG-PTS01, AG-PTS06 and AG-PTS07. sending data to the Secondary Replicas hosted by sql01 + sql02

So sql01 + sql02 receive data from the various sources via the different AGs

These 2 servers are used for reports. They hold 2 partitioned tables that have the same schemes but one is a column store table and the other is a b-tree table (different type of queries will access each table, aggregates and none aggregates).

For load balancing and HA sql01 and sql02 each send data to the other via AG-REP01 and AG-REP02 respectively allowing applications to access both servers.

Thank you

-Yaniv


Yaniv Etrogi
site | blog | linked in | mail
Please click the Mark as Answer button if a post solves your problem! orVote As Helpful


TempDB is not releasing Free space

$
0
0

Hi,

my TEMPDB is configured to simple recovery model and 10% auto growth. When I checked the tempdb size total size is 900GB available space is 810GB  and it is not releasing the free space. Can any help me how made tempdb to release free space automatically without manual shrink.

Thanks 


Clustered SQL Instance on VM vs physical server

$
0
0

Is there any performance difference in having a SQL Instance hosted on a cluster with 2 VM nodes vs 2 physical nodes?


Should MSSQLSERVER service be down on a passive node in 2008 cluster?

$
0
0

Hello.

On a passive SQL 2008 cluster node, all SQL Server services are set with manual start type and they are all down.

Is it the way it should be?

Thank you.

Slava

Will backup of transaction log with truncate affect the log shipping?

$
0
0

Dear SQL Server Support,

We are currently running SQL Server 2012 for both the production server and also the cloud server and we configured the log shipping to replicate the transaction log into the cloud and restore them every 30 minutes.

However, currently the transaction log files on the production server is growing in size and we would like to perform backup with truncate in order to reduce the size. may i know whether truncating of transaction logs will affect log shipping since log shipping make the order of LSN and during restoration?

Thanks so much.

Regards,

Maximum memory accidentally set to 300 M on a clustered instance

$
0
0

I have a 3 node cluster with 3 named instances installed and today I accidentally set the maximum memory on one of them to 300M instead of 300G!

My objective is to change the memory settings back however the SQL service would not start.

I have added the -f and -m startup parameters which allows SQL to start however I cannot get connected and repeatedly get the error Login failed due to single user mode.

Adding the startup parameter -m"SQLCMD"; and running sqlcmd -S computername\instance name is still giving me the error relating to single user mode.

The service is running as a domain service account and I am logged in to the server as that same service account.

Can anyone tell me what is preventing me from gaining the connection from CMD in single user mode?  Is the cluster service taking the connection?

SQL AlwayOn Multi site

$
0
0

Hello

If we implement SQL always on between 2 sites each site has 2 sql servers .

I want to know if we fail over between site A to site B it will be automatically failover?  


MCP MCSA MCSE MCT MCTS CCNA


Virtual SQL server wont boot, what are my option

$
0
0

I have a Hyper V VM running SQL that has stopped booting.

It had a c drive and a d drive

c for OS

d for database files

Is it possible to rebuild the server and attach the D drive the map a new SQL install to the original DB files?

If no what are my option. I do have a ArcServer UDP backup Windows agent based backup but haven't create the bare metal restore files I need.

Thanks in advance.

Configure mirroring between normal sql server instance and fail over cluster instance.

$
0
0

Can we configure mirroring between normal instance and the instance which is in the cluster.Both has the same sql version but os version is different.

Clustered instance has win2012R2 and the other one has win2008R2.

SQL Server cluster resources are not moving after move node

$
0
0

Hello everyone 

I have a problem with the sql cluster resources. It's cannot complete move to the node while moving active node to passive node. For example:
Moving node from EDOC-DB-02 to  EDOC-DB-01 but quorum disk and msdtc disk is still mount on  EDOC-DB-02. 

WIndows 2012 R2 server / SQL Server 2014 std'

Thank you for any suggestion!

Decryption error after Cluster failover

$
0
0

Hi Team,

In a cluster environment, when fail over happens, it generate decryption error with a linked server which is registered in cluster environment, please see below for error details. But it gets resolved once executed the below command in Linked server.

 ALTER SERVICE MASTER KEY REGENERATE

Can anybody help on how we can set to automatically work the connection to linked server even after cluster fail over.

I get the following error:

An error occurred during decryption. (Microsoft SQL Server, Error: 15466)

Msg 15593, Level 16, State 1, Line 1

An error occurred while decrypting the password for linked login ‘<loginName>’ that was encrypted by the old master key. The error was ignored because the FORCE option was specified.

Thanks,

Ashru


MCTS, http://asharafaliptb.wordpress.com

Weird Database restore problem

$
0
0

Hello, I have a database that is setup with a nightly full backup and transaction log backups throughout the day every half hour.  When I try to do a restore on this database to a sql transaction log point I get an odd error message:

Cannot open backup device E:\(local)_TmsEPrd_MATCONLINE-EX-EX-14594-3006-SQL.  Operating system error 2 ( the system cannot find the file specified.).

What is really weird here is that this isn't even the location of the SQL logs or the naming convention so I can't figure out where that is coming from.  It should be pulling from something like E:\TMSEPRD\TmsePrd_backlup_2016_3_29_07000.trn

Any ideas?

Thanks
Josh

Issue while running restore job against standby database in Log shipping in SQL Server

$
0
0

Team,

We have logshipping configued with generic setup. And when the restore job is running against standby database;only a portion of the log backups are being restored and the standby database is coming  back from restoring mode to standby mode in middle of restoe and the restore job is failing as all backups are not being restore. below is the log file of the restore job; can anyone help me out here ?

----- Log file -----

Microsoft (R) SQL Server Log Shipping Agent
[Assembly Version = 10.0.0.0, File Version = 10.0.5500.0 ((govi_PCU_Main).110922-0336 )]
Microsoft Corporation. All rights reserved.

2016-03-31 23:26:29.33----- START OF TRANSACTION LOG RESTORE   -----
2016-03-31 23:26:29.55Starting transaction log restore. Secondary ID: '1c0c0ebf-00d3-4c23-b6da-eda1be9cfcf3'
2016-03-31 23:26:29.56Retrieving restore settings. Secondary ID: '1c0c0ebf-00d3-4c23-b6da-eda1be9cfcf3'
2016-03-31 23:26:29.60Retrieved common restore settings. Primary Server: 'REMSQLCLUS', Primary Database: 'JKCFlow', Backup Destination Directory: '\\CMSI-UADPRD01\Logshipping_JKCFlow', File Retention Period: 10080 minute(s)
2016-03-31 23:26:29.61Retrieved database restore settings. Secondary Database: 'JKCFlow', Restore Delay: 0, Restore All: True, Restore Mode: Standby, Disconnect Users: True, Last Restored File: \\CMSI-UADPRD01\Logshipping_JKCFlow\JKCFlow_20160325130000.trn, Block Size: Not Specified, Buffer Count: Not Specified, Max Transfer Size: Not Specified
2016-03-31 23:26:29.86Disconnecting users. Secondary DB: 'JKCFlow'
2016-03-31 23:26:34.86Restored log backup file. Secondary DB: 'JKCFlow', File: '\\CMSI-UADPRD01\Logshipping_JKCFlow\JKCFlow_20160325131501.trn'
2016-03-31 23:26:41.67Restored log backup file. Secondary DB: 'JKCFlow', File: '\\CMSI-UADPRD01\Logshipping_JKCFlow\JKCFlow_20160325133000.trn'
2016-03-31 23:28:27.14Restored log backup file. Secondary DB: 'JKCFlow', File: '\\CMSI-UADPRD01\Logshipping_JKCFlow\JKCFlow_20160325201500.trn'
2016-03-31 23:28:47.17*** Error: Could not apply log backup file '\\CMSI-UADPRD01\Logshipping_JKCFlow\JKCFlow_20160325203001.trn' to secondary database 'JKCFlow'.(Microsoft.SqlServer.Management.LogShipping) ***
2016-03-31 23:28:47.17*** Error: Exclusive access could not be obtained because the database is in use.
RESTORE LOG is terminating abnormally.(.Net SqlClient Data Provider) ***
2016-03-31 23:28:47.98*** Error: The log backup file '\\CMSI-UADPRD01\Logshipping_JKCFlow\JKCFlow_20160325203001.trn' was verified but could not be applied to secondary database 'JKCFlow'.(Microsoft.SqlServer.Management.LogShipping) ***
2016-03-31 23:28:48.04Deleting old log backup files. Primary Database: 'JKCFlow'
2016-03-31 23:28:49.13The restore operation completed with errors. Secondary ID: '1c0c0ebf-00d3-4c23-b6da-eda1be9cfcf3'
2016-03-31 23:28:49.21----- END OF TRANSACTION LOG RESTORE     -----

Exit Status: 1 (Error)

Query on SQL Server 2014 AlwaysOn

$
0
0
We have two DB servers with the name of DB1 & DB2. We are planning to implement SQL 2014 AlwaysOn on PROD environment.

I need clarification on below points. 
a. Is it mandatory to build windows clustering to implement SQL 2014 AlwaysOn ?
b. If the answer is Yes for above question, can you tell me how may IP address/or total number of IP's are required to configure AlwaysOn for SQL 2014 (we have two DB servers (DB1: Primary & DB2: Secondary)?
c. Is there any monitoring server/or heartbeat server is required for automatic fail-over (like witness server in DB mirroring).

Please don't share any URL for above questions, we have already done some R&D on SQL Server 2014 and we didn't get accurate answers for above questions.

Thanks in advance.

What would cause an availability group's backup preference to change?

$
0
0

The backup preference on my AG changed from "primary" to "prefer secondary" about a week ago and I'm trying to figure out why.

I created the group with a script and the script shows it was created with AUTOMATED_BACKUP_PREFERENCE = PRIMARY. I noticed about a week later that the availability databases stopped getting log backups about 2 days after I created the group. When I checked the group the backup preference was set to SECONDARY and the secondary server does not have a job set up to run log backups. I didn't change it. Is there any circumstance under which it would change on its own?

FWIW we use Ola Hallengren's backup scripts which check that setting when determining where to run the backup from.


Chuck

AlwaysOn - Select Data Syncroniation

$
0
0

Hello

I am preparing my new Alwayon Could you please explain to me what is this snapshot :


MCP MCSA MCSE MCT MCTS CCNA

Multisubnetfailover - login timeout

$
0
0

Hello,

We have sql server 2012 on a Windows 2012, 3 node cluster.  Two nodes are local, the third is in our DR center across town (different subnet).  When we failover to the DR center, we intermittently get "login timeout" error messages where we cannot connect.  I found this article:  https://support.microsoft.com/en-us/kb/2792139 ,

but still have questions.

If we set the mulitsubnetfailover=true for the application connections, how does this help my developers with local, pc clients?

If we set the RegisterAllProvidersIP 0, is dynamic DNS required?  It is not our normal protocol, and I am getting push back from our network folks.

.Net features enabled are 3.51 and 4.5. 

Is there another way to make this work, and consistently connect?

Thanks kindly for any help,

Dianne


Dianne

Log Shipping: @ignoreremotemonitor

$
0
0

What does the parameter @ignoreremotemonitor in the sp_add_log_shipping_primary_database stored procedure do exactly?  When I script my log shipping config out, this parameter is set to 1, but it is not covered in BOL.  What would happen if I change it to 0?

 

Brandon

Am I headed in the right direction for Always On Avail Groups ?

$
0
0

Hello All,
This is my first posting and hope I can get some direction here.
I am slowly wading into the deep end of Always on Availability groups and would like to run by what I have done (and need to do) and see if I am on the right track.
Any and all advice will be very much appreciated.

Here is what I have and what I am trying to do.
Server 01
(20 databases, probably 5 per group so 4 groups)

Server 02

Synchronous to Server 01.
May add a 3<sup>rd</sup> but right now I am going with this.

I am trying to take advantage of the failover aspect but still want ‘standalone’ backup practices.
For this reason I will do Full, Differential and Log Backups from Server 01.
Server 02 might in the future be used for reporting but for now it will be there for failover.
From my limited and hopefully growing knowledge of Always On, the Transaction Log seems to magically synch up with Server 02 from Server 01?

I will do separate system backups for both.
I have a shared folder that both servers can access for backups which is established when you go through the wizard to set up the Availability Group.
So far so good.

Potential Scenario 01:
Server 01 crashes and fails over to Server 02.
I need to restore Server 01 so I go to the shared backup folder and restore Server 01 from Full, Differentials and Log Backups all of which were taken from Server 01?
So since there are no backups being done on Server 02 (Copy only is only one allowed) and no Transaction Log backups done from Server 02 (since Server 01’s Transaction Log magically synchs to Server 02’s Transaction log)
Then for restore purposes, it’s like the Server 02 really does not come into the equation, per se?

I restore Server 01 and it ‘synchs’ up with Server 02 and all is well in the world again, right?
I am sure I’m missing something here so I will eagerly await any and all replies……
Thanks in Advance
Viewing all 4532 articles
Browse latest View live


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