<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>replication Archives - WardNet</title>
	<atom:link href="https://www.wardnet.co.uk/tag/replication/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.wardnet.co.uk/tag/replication/</link>
	<description>Infrastructure, ERP and General Technology Blog</description>
	<lastBuildDate>Tue, 16 Feb 2021 12:56:49 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9</generator>

<image>
	<url>https://i0.wp.com/www.wardnet.co.uk/wp-content/uploads/2026/01/wp-1767387074640.jpg?fit=32%2C32&#038;ssl=1</url>
	<title>replication Archives - WardNet</title>
	<link>https://www.wardnet.co.uk/tag/replication/</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">63479081</site>	<item>
		<title>SQL Server Tip of the Week &#8211; AlwaysOn Introduction</title>
		<link>https://www.wardnet.co.uk/sql-server-tip-of-the-week-alwayson-introduction/</link>
		
		<dc:creator><![CDATA[Jonathan Ward]]></dc:creator>
		<pubDate>Mon, 27 Nov 2017 09:30:15 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[AlwaysOn]]></category>
		<category><![CDATA[Availability Group]]></category>
		<category><![CDATA[backups]]></category>
		<category><![CDATA[Clustering]]></category>
		<category><![CDATA[IP]]></category>
		<category><![CDATA[replication]]></category>
		<category><![CDATA[servers]]></category>
		<category><![CDATA[SQL]]></category>
		<guid isPermaLink="false">https://www.wardnet.co.uk/?p=451</guid>

					<description><![CDATA[<p>Here&#8217;s some notes I recently wrote to help explain the basics of AlwaysOn Clustering in SQl &#8211; originally written for</p>
<p><a href="https://www.wardnet.co.uk/sql-server-tip-of-the-week-alwayson-introduction/">SQL Server Tip of the Week &#8211; AlwaysOn Introduction</a></p>
]]></description>
										<content:encoded><![CDATA[
<p>Here&#8217;s some notes I recently wrote to help explain the basics of AlwaysOn Clustering in SQl &#8211; originally written for fairly technical people, i/e/ they know how to install SQL and use SSMS!</p>



<p>&nbsp;<br><strong>What is Always On?</strong><br>SQL&#8217;s new (from 2012) failover clustering solution, built in to SQL that allows automatic failover of SQL servers without interruption to the applications using a database.</p>



<p><strong>What is required?</strong><br>2 fully licensed SQL servers at the same version with replication module installed<br>Windows Failover Clustering role installed<br>IP addresses for cluster (1 for cluster, min. 1 per node)<br>Windows Domain &#8211; cluster is a domain object</p>



<p><strong>How to install/configure</strong><br>Microsoft documentation/Brent Ozar is best source.<br>e.g. <a href="https://www.brentozar.com/archive/2015/06/how-to-set-up-standard-edition-alwayson-availability-groups-in-sql-server-2016/">https://www.brentozar.com/archive/2015/06/how-to-set-up-standard-edition-alwayson-availability-groups-in-sql-server-2016/</a> for 2016<br>For installing Failover clustering you could add the role via PowerShell e.g.</p>



<pre class="wp-block-code"><code lang="powershell" class="language-powershell line-numbers">Install-WindowsFeature FailoverClustering,RSAT-Clustering-Mgmt,RSAT-Clustering-PowerShell</code></pre>



<p><strong><br>What to know in advance</strong><br>For an installer there are a number of things you need to know in advance:<br>• What type of synchronization is to be used?<br>• Synchronous or Asynchronous &#8211; <a href="https://docs.microsoft.com/en-us/sql/database-engine/availability-groups/windows/availability-modes-always-on-availability-groups">https://docs.microsoft.com/en-us/sql/database-engine/availability-groups/windows/availability-modes-always-on-availability-groups</a><br>• Cluster Name &#8211; this is the name above all servers in a cluster and therefore where Epicor applications point<br>• Cluster IP address &#8211; ideally decided in advance so can be reserved/static , it’s the IP for the cluster not the server<br>• Node IP address &#8211; each server in the cluster will have a secondary IP used purely for clustering, this is not the IP address used for management of that server<br>• Secondary Node IP address &#8211; only if the servers exist in different subnets they need a node IP address in each range<br>• Witness Server file location &#8211; this is another server available to all SQL servers where a witness file is stored to maintain quorum, example \\FILESERVER\SQLWitness</p>



<p><strong>Things to Note</strong></p>



<p>• Asynchronous synchronization can mean a data loss, review the link above for more info, it is also not an automated failover. &#8211; designed for offsite replication over a large distance.<br>• Synchronous is a more accurate (live replica) sync, but &#8220;could&#8221; be a source of lag SQL side. i.e. increased overhead<br>• In 2016 Standard SQL you can only have 1 DB in each availability group, therefore from a config side it&#8217;s worth considering which DBs need to be available should the system failover.<br>• When restoring a database in an availability group (overwriting) you must take it out of the availability group first, and example of doing this with existing restore scripts is (with additions highlighted):</p>



<pre class="wp-block-code"><code lang="sql" class="language-sql line-numbers">--Backup Source DB Code Goes Here
--Safety Backup of Destination DB Code Goes Here
USE [master]
ALTER AVAILABILITY GROUP MyDatabase_AG REMOVE DATABASE MyDatabase; 
--Restore Script GOes here, i.e. grab back of source and overwrite destination...
ALTER AVAILABILITY GROUP MyDatabase_AG ADD DATABASE MyDatabase
GO</code></pre>
<p><a href="https://www.wardnet.co.uk/sql-server-tip-of-the-week-alwayson-introduction/">SQL Server Tip of the Week &#8211; AlwaysOn Introduction</a></p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">451</post-id>	</item>
	</channel>
</rss>
