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

SQL Server Licensing

$
0
0

My  Project is in the initial stages of researching the requirements for SQL Server Failover Cluster.  We have 3 Servers running SQL Server Currently, and we would like to consolidate the instances to a SQL Server Failover cluster having 3 Nodes. 

My Question is: If only one node is active at a time, do you only need 1 license for SQL Server (the active node), or do you need license all nodes well, since  anyone of the passive nodes may become active at any one time?

My thought is three (3), since any of the nodes can become active, but I haven't found any documentation to support that, and I have been waiting for our licensing provider to get back to us after they speak with Microsoft.  Our license provider initially said that we would only need 1 licenses, the active node, but have the software on the other nodes; this doesn't sound correct.

Can someone clarify licensing in a SQL Server Failover cluster scenario?

DJ


ODBC CONNECTIVITY ON SQL 2012 FAILOVER CLUSTER

$
0
0
I have installed 2 nodes SQL 2012 FAILOVER CLUSTERS that is up and running. All nodes are up, network is up but when I try to configure dsn (odbc) from a client machine, it fails. Using Microsoft Dynamics GP 10, I must connect to the cluster through ODBC. Can any one help?

Joining the secondary database to the availability group

$
0
0

Hi,

I am attempting to create a always on AG using PowerShell, however when I issue the command:

Add-SqlAvailabilityDatabase -Path "SQLSERVER:\SQL\TEST2\MSSQLDB\AvailabilityGroups\peter" -Database "peter"

It fails with the the error message below. The same error appears when I use management studio but is successfully when I select the full option instead of the join only radio button on the GUI.

My question is, how do I replaicate the full operation using powershell i.e. is it an "Add-SqlAvailabilityDatabase" command ? What is the synatx ?

Thanks in advance,

**********************************

Add-SqlAvailabilityDatabase : The connection to the primary replica is not active.  The command cannot be processed.
At line:1 char:28
+ Add-SqlAvailabilityDatabase <<<<  -Path "SQLSERVER:\SQL\TEST2\MSSQLDB\AvailabilityGroups\peter" -Database "peter"
    + CategoryInfo          : InvalidOperation: (:) [Add-SqlAvailabilityDatabase], SqlException
    + FullyQualifiedErrorId : ExecutionFailed,Microsoft.SqlServer.Management.PowerShell.Hadr.AddSqlAvailabilityGroupDa
   tabaseCommand

**********************************

Startup Setting of sql 2014 Clustered "SQL Server" Service

$
0
0

New cluster in testlab:

          Windows Server 2012 R2:  N1, N2 (node 1, node 2)

          Sql Server 2014 installed on N1, N2

          Storage server  (uses SMB share for Sql Data and Quorum).

N1 is active; N2 is passive. What is the proper setup for the SqlServer and SqlServerAgentservices on both boxes? (Should they be "manual" for both?)

TIA,

edm2

PS. I wonder if the startup setting option is used to implement the Active\passive state.



Unattended install of SQL Server

$
0
0

Hi,

Is it possible to declare a variable for an instance or username for example and pass it to a setup.exe command to run a silent install?

for example below (which obviolsy fail)

Set INSTANCENAME='host1'

setup.exe /QUIETSIMPLE /ACTION=install /FEATURES=SQL TOOLS /IAcceptSQLServerLicenseTerms=true /INSTANCENAME=="NAME"/SQLSVCACCOUNT="NT AUTHORITY\Network Service" /SQLSYSADMINACCOUNTS="domain\username" /AGTSVCACCOUNT="NT AUTHORITY\Network Service"

Thanks,

Physically moving the FCI in an FCI+AG... Methods to keep quorum?

$
0
0

Currently I have a two node FCI using a Node and Disk Majority quorum, both nodes  are physical servers.  An AlwaysOn AG was configured within that FCI.  I have two stand-alone nodes, both VMs, that can hold the AOAG but not any of the FCI resources because of course they don't share the physical disks being presented to the two physical FCI nodes.  One of the two standalone VM nodes is located in a remote DR location.  I need to physically move the original two FCI nodes and the shared storage those two share to the same remote DR location.

Now obviously the cluster has 4 nodes and a quorum disk for a total of 5 votes.  When the two physical nodes get shut off to get trucked to the DR location, the quorum disk is going along with them so the cluster will shut down completely as 3 of 5 votes are now offline.  I see three possible solutions to prevent the AOAG from staying down for the duration of the physical move:

After failing over the AOAG to the remote DR site node:

1.)  Shut down the cluster.  Force quorum on the DR site's node.  Once the physical servers are in place at the DR site, shut down the cluster and start it back up normally since all 5 votes are back online.  This of course causes two outages (in addition to the outage caused by the initial AOAG failover to the remote DR node), one to shut down the cluster and force quorum, and one more outage to shut the cluster down and return it to normal.

2.)  Change the current cluster to Node and File Share Majority with the file share pointing to a share that will be available while the two physical nodes and their shared storage are in transit.  This results in 3 of 5 votes (2 nodes + share) staying alive and thus the cluster stays up and never goes down.  Once the two physical nodes are back online, can either return quorum config back to Node and Disk Majority or simply leave it Node and File Share Majority, old quorum disk can now be removed if the latter.

3.)  Change the NodeWeight value on the remote DR node to be 3 which increases the total number of votes to 7.  When the physical nodes and quorum disk are taken offline, 4 of 7 votes (node 1 = 1 vote, node 2 = 3 votes) stay alive and the cluster stays up and never goes down.  When the two physical servers and quorum disk are back online, return all nodes back to 1 vote each.

Any recommendation as to which method would be the best?  I am leaning towards #2 or #3 as it would seem they would require less outages.  Or maybe a 4th option that would be a combination of 2 and 3, like replacing the quorum disk with a file share and changing NodeWeight to 2 on one of the two VMs.  I would like to get rid of the quorum disk as it is really only shared between the two physical nodes whereas the file share would be shared between all 4 nodes.

Any insight would be appreciated.  Thanks!


Sql Access to individual node in a cluster

$
0
0

I setup my first Sql 2014 cluster. (Windows 2012 R2, Sql 2014). I can successfully use Management Studio by pointing it to  the Sql Cluster name but not when I point to the Sql server instance on a individual node in the cluster.  I get "server could not be found". On the one hand this makes sense ("hands off the nodes"; stick with the published name) but how then can sql maintenance be done directly on a particular node?

TIA,

edm2

P.S The cluster uses shared storage. (SMB 3.0 file shares)



Load Balancing with citrix netscalar

$
0
0
We currently have SQL 2008 servers (some clustered, some not) where we are looking to have no downtime for maintenance operations.  I have been looking into load balancing technologies such as citrix netscalar which has sql server integration with the product and no downtime capability for failover.  I am curious as to why they recommend either replication (real-time changes??) or mirroring and not a cluster (they indicate single point of failure but do they mean that citrix cannot intercept the failover since windows is controlling it vs mirroring?).  Also, has anyone used netscalar (or other load balancing technologies) and what have the successes and issues that people have experienced in their environment.

Need a good test for see Sql Failover "in action"

$
0
0

I have a two node cluster in a testlab. I'm thinking of INSERTing a million rows in a table, and while the process is running, failover to the other node. (Obviously I'm hoping for minimal loss). Can think of a better way to show failover " in action"?

TIA,

edm2


Can always on be created on active active node(only two nodes) using SQL Server 2012 Enterprise edition 64 bit.

$
0
0
Can always on be created on active active node(only two nodes) using SQL Server 2012 Enterprise edition 64 bit. Both of the nodes has windows server 2012 enterprise edition 64 bit

Sync SQL Server 2008 R2 database table to a different server

$
0
0

Dear All,

Please advise I want to sync data from Server 1 to Server 2 both are SQL Server 2008 R2.

This we want it to sync twice  day, we have restored full backup. to Server 2.

Please advise how we can achieve this.


-- Regards Sandeep

Cannot join a server to cluster

$
0
0

Hello Team

We have to configure AlwaysOn to an already existing Failover Cluster Instance (FCIs) like in the below architecture. 

How is it now - 



Setup:

FCI-1: SQLFCIPRIMARY\Inst_A

FCI-2: SQLFCIDR\Inst_B

Nodes

PrimaryNode1

PrimaryNode2

DRNode1

DRNode2

Each of the above FCIs are 2 node clusters as shown the above figure. All the 4 nodes are in the same data center. 

Since all the instance should be in WSFC for setting up AlwaysOn AG, I tried adding the seconday node to the existing cluster in Primary. But it is throwing an error saying"The computer 'DRNode1' is joined to a cluster." While this is expected since DRnode1 and DRNode2 are already participating in clustering, I would like to know how to get around with this issue. I have researched (actually googled ) quite a bit but do not find an applicable solution for this. One way is to remove the secondary node (DRNode1 or 2) from the cluster but I guess it doesn't make sense in my case since I want to create a AlwaysOn solution between two FCIs. 

What I am not able to do  - 

Ideally I would like all the 4 nodes showing up in Primary Failover Cluster Manager.

Thanks a lot in advance.

Shrink Log File on High Availability

$
0
0

Dear support

good day for you,

i using SQL server 2012 and using AlwaysON High Availability (server_SQL1 = Primary & Server_SQL2=Secondary), when i try to shrink the log files he told me you must alter the database to simple recovery mode first but i cant coz using AlwaysON !

thats mean:

  1. remove the DB's from AlwaysON (Server_SQL1)
  2. Shrink Files
  3. remove DB's from Server_SQL2
  4. add again DB's to AlwaysON

any other solution for shrink logs without add/remove DB from AlwaysON

Regards,

Issue setting up my File Share witness

$
0
0

I am in the process of setting up a SQL Failover cluster over two availability zones in AWS.  My issue I am having is my File share witness is throwing me an error when trying to set this part up.  

set-clusterquorum -NodeAndFileShareMajority "\\EPMMNSDC1\Witness"

Gives me this error:

set-clusterquorum : There was an error configuring the file share witness '\\EPMMNSDC1\Witness'.
    Unable to save property changes for 'File Share Witness'.
    The parameter is incorrect
At line:1 char:1
+ set-clusterquorum -NodeAndFileShareMajority "\\EPMMNSDC1\Witness"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Set-ClusterQuorum], ClusterCmdletException
    + FullyQualifiedErrorId : InvalidParameter,Microsoft.FailoverClusters.PowerShell.SetClusterQuorumCommand

I have both my nodes as read/write on the share.  I am able to browse to the share from both nodes.

I try to run it through the GUI and i get this error:

An error was encountered while modifying the quorum settings.
Your cluster quorum settings have not been changed.

There was an error configuring the file share witness '\\EPMMNSDC1\Witness'.

Unable to save property changes for 'File Share Witness'.

The parameter is incorrect



Question about the initial backup for log shipping - SQL 2008

$
0
0

Hi All, I'm in the process of setting up log shipping for several SQL 2008 DB's.  Everything works fine using a small test DB, but for the next step, I need to configure Log shipping for a 100+GB DB that will be backed up and shipped across a 35Mbps WAN link.  If I select to backup that DB using the Log Shipping Wizard and it takes 8+ hours, do I need to be concerned about any changes that have occurred since the start of the backup or will it automatically know which transaction logs to apply after the backup completes?  If you've setup something similar, are there any gotchas or best practices I should be aware of when setting up log shipping for a large DB across a WAN link?  *This DB gets moderate use and we don't need an aggressive RPO so I'll probably opt for a 30 minute schedule for Log Shipping jobs.

Thanks!   


SQL 2014 FCI+AG on Clustered Shared Volumes design

$
0
0
Hello,

I was assigned the task to design a new SQL 2014 environment for my company. Our current environment consists of two clusters of 4 nodes each (8 nodes total for the two clusters) in two datacenters (let's say LA & NY).

Each datacenter is both primary & DR for different applications. Each cluster is active/active and has 9 SQL instances - 1 DEV/2 UAT/4 PROD/2 DR. 

We are using Windows Server 2008 R2 SP1 + SQL 2008 R2 SP2 FCIs for HA + DBM for DR, storage is symmetric, LUNs are coming from NetApp SAN filers. 

Due to the consolidated nature of the current SQL clusters (some hold 100+ DBs for different applications), the new platform - Windows 2012 R2 and that one WSFC cluster will be used, I decided to go with a new build instead of upgrade.

My plan for the migration to SQL 2014 is as follows:

1. Evict two nodes from each cluster, the 9 SQLs in each datacenter will run on two nodes and I will have two nodes more per site to build the new environment. 
Average CPU utilization for each node is 10-20%, total max memory of all SQL Servers per site is 256GB RAM, each node has 2 CPUs x 8 cores each with 256GB RAM. SQLs will still run on two nodes with reasonable performance.
Since the same number of cores is used and we pay SA, there will be no increase in licensing costs for the time of migration to SQL 2014 and to obsolete the SQL 2008 R2 environment.
2. The new cluster will consists of 4 nodes with Windows 2012 R2 (2 in NY and 2 in LA) and will have Node+FileShare majority quorum model with Cluster Managed voting enabled. 
3. New SQL 2014 FCIs will be built (9 per site) and will use Clustered Shared Volumes + AlwaysON Availability Groups. Once the new environment is built, databases will be migrated by backup/restore.

Since we will have AlwaysON FCIs+AlwaysON AGs I'm aware that automatic failover cannot be used and the complications with addition of data files on primary databases, that's fine (file paths will be different of primary and DR SQL instances).

My question is - is this a supported configuration from Microsoft - AlwaysON AGs running on CSVs in a multi-site cluster? 

I am aware that CSVs are something new for the SQL world, so what are the things I should take into consideration when building this solution? Are there any pitfalls to be wary of?

Any suggestions will be much appreciated.

Thank you in advance,

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 :)

SQL 2012 Always On Availability Create Key for Dynamics CRM syntax

$
0
0

Hi I am trying to follow this terribly written article to setup CRM to be part of a SQL alwayson availability group.  

The part that is pissing me off is the create SQL logins.  http://technet.microsoft.com/en-us/library/jj822357.aspx#BKMK_always_updateorg

So many errors with this post causing so much frustration.  What is the actual correct Syntax for creating the key?

Obviously you have to use a UNC path to the CRM front end server.  SQL doesnt like UNC and I think an earlier guy said it doesnt like double quotes.  Here is what I have and it does not like it.  Its hard to see but right before end I have two single quotes to close it.  It's complaining about the \\ in the UNC path.  

IF NOT EXISTS (SELECT * FROM sys.asymmetric_keys WHERE name = 'MSCRMSqlClrKey') BEGIN EXECUTE ('CREATE ASYMMETRIC KEY MSCRMSqlClrKey FROM EXECUTABLE FILE ='\\CRM2013\C$\Program Files\Microsoft Dynamics CRM\tools\Microsoft.Crm.SqlClr.Helper.dll'')END

Availability groups and full-text indexes.

$
0
0

Hello,

I have created an availability group that contains a database. The database is working fine.

I get a request to create a full-text catalog and to add full-text indexes.

Is it possible to create full-text indexes on databases that have a primary replica and a number of secondary replicas?

Best regards,

Erik


SQL Cluster and DNS

$
0
0

We are looking at consolidating our databases onto a Windows / SQL Server cluster.  In our lab environment we have full control over the environment AD & DNS Servers.  In our test and Production environments, there is a separate team that manages AD & DNS.  For AD, it only takes 7 - 10 days to get users and groups created.  For DNS, everything is handled by the DNS team, and nothing is automatically added to DNS; part of the issue is DNSSEC.

If DNS is not available or unable to create/update an A record, will the install of the SQL Server Failover cluster fail?  In place of DNS, can you use local hosts files?

Thanks.

DJ

Viewing all 4532 articles
Browse latest View live


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