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

How to add the another subnet mask in existing cluster ?

$
0
0

Hi All,

We faced a situation in our environment. We have existing SQL cluster installation between (NODE1 & NODE2) this cluster using the 10.10.xx.xx\29 subnet mask. Later add the NODE3 with different subnet mask (198.XX.xx.xx\26) to existing cluster and installed the stand alone installation and configure the Alway on between the sql cluster installtion and stand alone installation and created the one AO group.

Now the problem is the client wants to create the another AO group and he provided the IP's from different subnet mask because we don't have new ip's from existing subnet masks.

Can we add the another subnet mask to the existing cluster ?

Thanks In Advance for your time and efforts..!


rup


SQL Server Install for an Always On Environment

$
0
0

I am installing SQL 2012 Enterprise on 4 servers that will be used for High Availability using Always On. My question is this, can I install SQL Server before the server has been configured with WSFC?

I understand I have to wait for that piece of the puzzle before I can configure the availability groups, etc. I only want to confirm I can install SQL before the clustering is configured. I'm waiting on that team in our environment and want to get the base install of SQL completed without having to wait for them. However, if it will cause an issue, I will wait.

Thank you in advance for your help.

Mark

How to resource govern an availability read only routed session

$
0
0

Hi All,

I have recently started looking into utilising read only routing to offload some of the reporting load for some databases. I have the AG with appropriate read intent set and can connect to the secondary read intent DB with no issues. The issue I am facing is how to resource govern the re-directed read only connection.

My existing classifier function governs based on the VIP and the 'local net address' of the incoming connection. But when I have set up the read only routing lists I have to specify the actual SQL Server Host ip and port, not the VIP and port and the classifier function does not pick up the connection and leaves it in the default resource group.

I guess I need to know if its possible to pick up within a classifier function that the re-directed connection is a re-directed connection - ie a read-intent only secondary db connection.

Any thoughts on if and how this could be achieved?

Provisioning Disk Space for Two Node AlwaysOn Cluster

$
0
0

Hello,

My below question is based on Win2k12 OS and SQL2k12 or higher SQL server.

If we want to setup a two node AlwaysOn cluster, there will be one primary node and another one will be secondary node. If the primary node hosts synchronized databases size of say 1 tb, then, we need to have another volume to host the same synchronized databases on the secondary node/instance for another 1 tb disk space for a total of 2 tb right?

Just want to confirm from the SMEs out there on this.

Thanks in advance.

Victor


Victor

Primary DB keeps going in Recovery Pending

$
0
0

Hi

I have an always on availability groups deployed on a cluster(primary) and another server(secondary).

I do not know why the primary keeps going into recovery pending state!


Creating a 3 node sql cluster with active-active-passive configuration

$
0
0

Hi All,

I have a requirement to set up with the user. The user wants to set up a 3 node SQL cluster (let's say node A, B and C) with active-active-passive configuration.

Node A and Node B should act as a active -active node and both nodes can fail over to passive node (Node C).

However, the user also insists and in case, node C needs to be set offline because of maintenance, resources of Node A can be failed over to Node B and vice versa in case of Node A or Node B's failure.

Is this possible? Is it possible to create a cluster with 2 nodes sharing the load as active-active nodes and third node is passive node??


Let's Do It!!

Node is read only

$
0
0

Dear all, one of my nodes is read-only although I am querying AG and it states  primary and secondary as usual.

SELECT d1.[name]
FROM sys.databases d1
where d1.state_desc = 'ONLINE'

We usually have both nodes available. might I do failover now?

Thanks in advance,

Msg 4305, Level 16, State 1, Line 1 "too recent to apply to the database"

$
0
0

Hi Guys,

i am making the manual logshipping for my 2 servers and database in each server, i want to ask you about my problem about restore process, i have search on google, but there's nothing answered my problem.

i restore my full backup, with 2 log file. the full backup has been restored successfully, but 2 logfiles isn't restored because this below error message. what i suppose to do?

Msg 4305, Level 16, State 1, Line 1
The log in this backup set begins at LSN 33000000026400079, which is too recent to apply to the database. An earlier log backup that includes LSN 33000000023800001 can be restored.
Msg 3013, Level 16, State 1, Line 1
RESTORE LOG is terminating abnormally.
Msg 4305, Level 16, State 1, Line 1
The log in this backup set begins at LSN 33000000030500001, which is too recent to apply to the database. An earlier log backup that includes LSN 33000000023800001 can be restored.
Msg 3013, Level 16, State 1, Line 1
RESTORE LOG is terminating abnormally

Thank you.

Yoga


yoga


Is it Possible to avail MSSQL Server with Always-On feature without Windows Fail Over Clustering

$
0
0

Hello MS

I was asked to implement MSSQL server with always on feature, let me detail my setup as follows

  • Built Two Azure Virtual Machine in the same cloud service with Multi NIC feature,
  • Joined the virtual machines to a domain controller on the same (cloud service and virtual network)
  • configured windows failover clustering in the virtual machine mentioned above as node 1 and node 2
  • Installed MSSQL Server on those virtual machine and enabled the always on feature 
  • created availability group, added DB replicas, added two nodes
  • it worked for me!! but my question here for you guys is

"i am not sure whether the MSSQL always-on feature works without windows failover clustering?" 

I used the following the article to implement the above said scenario

http://www.sqlpassion.at/archive/2012/03/21/sql-server-2012-alwayson-availability-groups-part-1/

 

Please guide em through with some article which states MSSQL Always-On feature and its possibilities and limitations.



Physical Move of Secondary Replica to a new Location

$
0
0

We plan on moving a secondary replica of an AlwaysOn group to another physical location although it will have the same IP address after the move.

The shutdown may be between 24 and 48 hours.

Is there anything that would need to be done on the secondary replica prior to shutdown.

Thanks.

SQL CLUSTERING on Hyper-V Guest VM

$
0
0

Hi ALL,

We have below setup.

Two UCS B200 M4 blade with Windows 2012 R2 Datacenter edition. We have installed Hyper-V role on both of these windows Box. We want to setup the VM level SQL clustering (active-passive)without doing any Hyper-V level clustering.

Can anyone let me know what will be the requirement for this setup considering the guest VMs are running on Hyper-V. If anyone can provide the ref URL for this kind of setup.

Thanks in advance,

Regards,

Readonly Routing ON Named Instance with AlwaysON (SQL 2014)

$
0
0
Hi,

I have multiple instance of SQL Server 2014 running on Windows 2012. I have configured Always ON for both the instances.

Each have their own listener configured with separate static ip address.

One Instance is configured with default port 1433 and another instance is configured with 1436.

I have also configured read-only routing URL and read-only LIST for both the instances.

Read-only connections for default connection is working as required.

But for Named instances the read-only connections always defaults to primary instead of secondary replica.

I have used the below command to test the connectivity.

sqlcmd -S <agname,1436> -d <dbname> -K readonly

Any suggestions will be highly appreciated.

Regards,
Kccrga

-kccrga http://dbatrend.blogspot.com.au/

Log Shipping "Not enough free space" error

$
0
0

I am trying to log ship to a secondary server and its erroring saying that there isnt enough free space on the secondary server even though it clearly has MORE than enough room.  Can someone help?

Availability Group Threads

$
0
0

My understanding is that on the primary that the minimum pool size would be (assuming all dBS are active)

  • 1 Message Handler Thread per AG
  • 1 Log Scanner thread  per database
  • 1 Log Send thread per database * # of secondary replicas

Is this correct?

Looking at Bob Dorr's diagram  ( https://blogs.msdn.microsoft.com/psssql/2012/05/17/alwayson-hadron-learning-series-worker-pool-usage-for-hadron-enabled-databases/ ) it appears that each secondary would need at least 2 * the number of databases + 1 or more message handler threads. 

Is that correct?

thanks

SQL Server - Logshipping using third place as fileserver

$
0
0
Hi Guys,

i have a problem with logshipping in sql server 2012.

i have try to make a logshipping with server A and server B and the log destination in my PC (shared folder). and in this scenario is successfully.

but when i try to make a logshipping with that two servers, but i make shared folder from SINOLOGY and INFORTREND, even i have changed the permission, it failed to be executed. The log history of the failed is like this following statement:

   
06/01/2016 15:23:21,LSBackup_TESTLAGI,Error,,APP-MSSQL-2,LSBackup_TESTLAGI,,,The job failed.  The Job was invoked by User sa.  The last step to run was step 1 (Log shipping backup log job step.).,00:00:03,0,0,,,,0   
06/01/2016 15:23:21,LSBackup_TESTLAGI,Error,1,APP-MSSQL-2,LSBackup_TESTLAGI,Log shipping backup log job step.,,Executed as user: NT Service\SQLSERVERAGENT. The step failed.,00:00:03,0,0,,,,0   
06/01/2016 15:23:21,LSBackup_TESTLAGI,In Progress,1,APP-MSSQL-2,LSBackup_TESTLAGI,Log shipping backup log job step.,,2016-06-01 15:23:24.58    *** Error: Backup failed for Server '<hostname-server-B>'. (Microsoft.SqlServer.SmoExtended) ***<nl/>2016-06-01 15:23:24.58    *** Error: An exception occurred while executing a Transact-SQL statement or batch.(Microsoft.SqlServer.ConnectionInfo) ***<nl/>2016-06-01 15:23:24.58    *** Error: Cannot open backup device '\\<IP-Address>\Pool-R10-JBOD_COBAFOLDER\COBAFOLDER\TESTLAGI_20160601082323.trn'. Operating system error 86(The specified network password is not correct.).<nl/>BACKUP LOG is terminating abnormally.(.Net SqlClient Data Provider) ***<nl/>2016-06-01 15:23:24.60    ----- END OF TRANSACTION LOG BACKUP   -----<nl/><nl/>Exit Status: 1 (Error),00:00:03,0,0,,,,0

and i still dont know what's wrong with it? is it because the sql server logshipping doesn't support the third place to put logs for logshipping ?

Thank you.

yoga


SQL DB Attach Detach error

$
0
0

Hi All,

We have DC (ABC) and DR (XYZ) setup with SQL Server 2012 on both server. Veritas is configured to replicated data from DC to DR. Veritas is file/block level replication.
SQL Server services are using Local System account on both machine. On both server we have local adminstrator account i.e on DC (ABC\Administrator) and DR (XYZ\Administrator).

Before starting replication via VERITAS from DC to DR we are connecting to DR(XYZ server) SQL Server via windows authentication 'XYZ\Administrator' and dettaching the databases at DR (XYZ server). Then replication is started via VERITAS from DC to DR. Once replication is 100% synched we do siwtchover via VERTIAS . But before swithover we dettach the DB at DC(ABC) via windows authentication 'ABC\Administrator' of SQL Server, then do siwtch over and attach the Databases at DR to SQL Server via windows authentication 'XYZ\Administrator'. 

While attaching the databases at DR we are getting error cannot create file 'access denied' . Then we go to drive where databases files are present mdf and ldf.  Right click on mdf and ldf file--> security--> change owner to 'XYZ\Administrator'. Then again right click on mdf and ldf files-->security--> remove orphanuser--> Add login--> 'XYZ\Administrator' and give all permission i.e FUll control, Read and Write

Is there any way to avoid this access denied error, changing ownership, removing orphan windows user i.e. attach the database without any manual configuration.

Regards,

Nikhil Desai

LogShipping Error

$
0
0

Hi,

this error occurred when trying to do LogShipping:

***Msg 9004, Level 16, State 6, Line 1

An error occurred while processing the log for database 'test'.  If possible, restore from backup. If a backup is not available, it might be necessary to rebuild the log.

Msg 3013, Level 16, State 1, Line 1

RESTORE LOG is terminating abnormally.

Msg 3414, Level 21, State 1, Line 1

An error occurred during recovery, preventing the database 'test' (9:0) from restarting. Diagnose the recovery errors and fix them, or restore from a known good backup. If errors are not corrected or expected, contact Technical Support.****

First Transaction Log goes well and Secondary and every futher log faild.

Please give me some info if somebody has the same problem as mine.

Problem is occurred on SQL server 2012 version: 

Microsoft SQL Server 2012 - 11.0.5058.0 (X64)

                Enterprise Edition (64-bit) on Windows NT 6.2 <X64> (Build 9200: ) (Hypervisor)

Question on DR Test Scenarion with Alwayson Availability Groups SQL 2014

$
0
0

I have 3 Node cluster

Server1(primary) / Server2(replica) located in Chicago.

Server3(replica) Located in out of region.

I have 10 databases part of AG1 group.

Server1 to Server2 replication is Sync but to Server3 is ASYNC. I want to simulate a dr test where network links are going to be broken gracefully and ungracefull (2 scenarios

Scenario 1(gracefull network broken)
obviously the data movement has stopped. databases in AG1 group are required to read/write.

question1: how do I simulate network outage? I was thinking of stopping the cluster network resource - not sure if that possible.

question2: dbs in AG1 group are required to be in read/write state. what are my options for doing this and when Dr test is completed - during fallback - how do I reesrtablish AG data movement as those dBS were opened up for readwrite?/ I am guessing I need to remove the replica and re-add it?

Thanks!

Automate SQL Server Restore

$
0
0

 I want to restore to secondary server from Primary server backups and schedule it daily once at midnight,

Iam taking backups through maintenance task in sql server which backsup  the databases with date and time format, which iam not able to automate  the restore process this way,

Could any one help me what is the best place to automate SQL restore in secondary server .

Thanks

Ranjith

Always On High Availability Help

$
0
0

I have a two node cluster built in the Azure environment. Will add 3rd node in the future. I have the cluster built with a witness server.

Cluster
1 Witness server
2 Nodes each with drives C (OS), D (Temporary Storage), E (SQL MDF files), F (SQL LDF files), G (TempDB MDF file(s), H (TempDB LDF File(s), J (SQL insatlled)

Witness is .12
SQL1 .10

SQL2 .11

Cluster .13

The Azure environment is part of our domain and I can ping witness, SQL1, and SQL 2 but cannot ping Cluster or if I configure listener for always on I cannot ping it except from what server is primary in always on high availability group. Cannot ping from internal network or servers on same network in Azure. What am I missing for the listener and what do I need to change in Azure environment. I also saw a video that talked about shared storage. Is that true? Also when I added new server to nodes I unchecked box to add storage. Please help!

Viewing all 4532 articles
Browse latest View live


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