{"id":1563,"date":"2016-10-11T09:00:09","date_gmt":"2016-10-11T06:00:09","guid":{"rendered":"http:\/\/www.fatihacar.com\/blog\/?p=1563"},"modified":"2019-08-23T09:55:38","modified_gmt":"2019-08-23T06:55:38","slug":"sql-server-2012-alwayson-availability-groups-insallation-and-configuration","status":"publish","type":"post","link":"https:\/\/www.fatihacar.com\/blog\/sql-server-2012-alwayson-availability-groups-insallation-and-configuration\/","title":{"rendered":"SQL Server 2012 AlwaysOn Availability Groups Insallation and Configuration"},"content":{"rendered":"<p>Always On Availability Group is a new feature in SQL Server Database with 2012 release. Before this feature, we was using database mirroring feature in SQL Server 2005. But, mirroring has some limitations and weaknesses. and mirroring feature will be disabled near future.<\/p>\n<p><strong>AlwaysOn Availability Groups Features<\/strong><\/p>\n<blockquote>\n<ul>\n<li>Multi or Single Database Failovers<\/li>\n<li>Multiple Secondaries<\/li>\n<li>Active (Readably) Secondaries<\/li>\n<li>Integrated HA Management<\/li>\n<\/ul>\n<\/blockquote>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1564\" src=\"http:\/\/www.fatihacar.com\/blog\/resimler\/sqlserveravailabilitygroup.png\" alt=\"sqlserveravailabilitygroup\" width=\"476\" height=\"236\" srcset=\"https:\/\/www.fatihacar.com\/blog\/resimler\/sqlserveravailabilitygroup.png 476w, https:\/\/www.fatihacar.com\/blog\/resimler\/sqlserveravailabilitygroup-300x149.png 300w\" sizes=\"auto, (max-width: 476px) 100vw, 476px\" \/><\/p>\n<p><strong>System Information<\/strong><\/p>\n<blockquote><p><strong>OS:<\/strong> Windows 2012 Server<br \/>\n<strong>DB:<\/strong> SQL Server 2012<br \/>\n<strong>Side 1:<\/strong> TESTDB1<br \/>\n<strong>Side 2:<\/strong> TESTDB2<br \/>\n<strong>Failover Cluster Name:<\/strong> TESTDB<br \/>\n<strong>Availability Group Name:<\/strong> TESTDB_AG<br \/>\n<strong>Listener Name:<\/strong> TESTDBVIP<br \/>\n<strong>Listener Port:<\/strong> 1433<\/p><\/blockquote>\n<p><strong>AlwaysOn Availability Groups Installation Steps<\/strong><br \/>\n<!--more--><\/p>\n<blockquote>\n<ul>\n<li>Take Domain all sides and connect with domain admin user.<\/li>\n<li>Install Failover Clustering feature on all sides.<\/li>\n<li>Create Failover Cluster with exclude shared disk (uncheck &#8220;Add all eligible storage to the cluster&#8221;) on first side with domain admin user.<\/li>\n<li>Add windows user as Administrator from domain to Operating System like domain\\facar on all sides.<\/li>\n<li>Connect to operating system with domain\\facar user for installation.<\/li>\n<li>Install SQL Server Database with the same Instance name on all sides. (Note : Use SQL_Latin1_General_CP1_CI_AS collation due to you can get an error when creating AG at listener service.)<\/li>\n<li>Check Enable AlwaysOn Availability Groups (Sql Server Configuration Manager &gt; SQL Server Services &gt; SQL Server (DBNAME) Properties &gt; AlwaysOn High Availability &gt; Check Enable AlwaysOn Availability Groups) on all sides and restart SQL Server service on all sides.<\/li>\n<li>Create user on SQL Server Database with Operating System user domain\\facar with sysadmin privilege on all sides.<\/li>\n<li>Open services.msc and change SQL Server service Log On account domain\\facar user and restart service on all sides.<\/li>\n<li>Create folder like E:\\Backup and share for backup and t-log transport. You have to reach with \\\\TESTDB1\\Backup<\/li>\n<li>Take full backup of database that you want to use for failover.<\/li>\n<li>Create New Availability Group on first side.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1570\" src=\"http:\/\/www.fatihacar.com\/blog\/resimler\/sql_availability_group1.jpg\" alt=\"sql_availability_group1\" width=\"721\" height=\"317\" srcset=\"https:\/\/www.fatihacar.com\/blog\/resimler\/sql_availability_group1.jpg 721w, https:\/\/www.fatihacar.com\/blog\/resimler\/sql_availability_group1-300x132.jpg 300w\" sizes=\"auto, (max-width: 721px) 100vw, 721px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1571\" src=\"http:\/\/www.fatihacar.com\/blog\/resimler\/sql_availability_group2.jpg\" alt=\"sql_availability_group2\" width=\"721\" height=\"333\" srcset=\"https:\/\/www.fatihacar.com\/blog\/resimler\/sql_availability_group2.jpg 721w, https:\/\/www.fatihacar.com\/blog\/resimler\/sql_availability_group2-300x139.jpg 300w\" sizes=\"auto, (max-width: 721px) 100vw, 721px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1572\" src=\"http:\/\/www.fatihacar.com\/blog\/resimler\/sql_availability_group3.jpg\" alt=\"sql_availability_group3\" width=\"725\" height=\"456\" srcset=\"https:\/\/www.fatihacar.com\/blog\/resimler\/sql_availability_group3.jpg 725w, https:\/\/www.fatihacar.com\/blog\/resimler\/sql_availability_group3-300x189.jpg 300w\" sizes=\"auto, (max-width: 725px) 100vw, 725px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1573\" src=\"http:\/\/www.fatihacar.com\/blog\/resimler\/sql_availability_group4.jpg\" alt=\"sql_availability_group4\" width=\"786\" height=\"477\" srcset=\"https:\/\/www.fatihacar.com\/blog\/resimler\/sql_availability_group4.jpg 786w, https:\/\/www.fatihacar.com\/blog\/resimler\/sql_availability_group4-300x182.jpg 300w, https:\/\/www.fatihacar.com\/blog\/resimler\/sql_availability_group4-768x466.jpg 768w\" sizes=\"auto, (max-width: 786px) 100vw, 786px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1574\" src=\"http:\/\/www.fatihacar.com\/blog\/resimler\/sql_availability_group5.jpg\" alt=\"sql_availability_group5\" width=\"786\" height=\"442\" srcset=\"https:\/\/www.fatihacar.com\/blog\/resimler\/sql_availability_group5.jpg 786w, https:\/\/www.fatihacar.com\/blog\/resimler\/sql_availability_group5-300x169.jpg 300w, https:\/\/www.fatihacar.com\/blog\/resimler\/sql_availability_group5-768x432.jpg 768w\" sizes=\"auto, (max-width: 786px) 100vw, 786px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1575\" src=\"http:\/\/www.fatihacar.com\/blog\/resimler\/sql_availability_group6.jpg\" alt=\"sql_availability_group6\" width=\"786\" height=\"414\" srcset=\"https:\/\/www.fatihacar.com\/blog\/resimler\/sql_availability_group6.jpg 786w, https:\/\/www.fatihacar.com\/blog\/resimler\/sql_availability_group6-300x158.jpg 300w, https:\/\/www.fatihacar.com\/blog\/resimler\/sql_availability_group6-768x405.jpg 768w\" sizes=\"auto, (max-width: 786px) 100vw, 786px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1576\" src=\"http:\/\/www.fatihacar.com\/blog\/resimler\/sql_availability_group7.jpg\" alt=\"sql_availability_group7\" width=\"786\" height=\"673\" srcset=\"https:\/\/www.fatihacar.com\/blog\/resimler\/sql_availability_group7.jpg 786w, https:\/\/www.fatihacar.com\/blog\/resimler\/sql_availability_group7-300x257.jpg 300w, https:\/\/www.fatihacar.com\/blog\/resimler\/sql_availability_group7-768x658.jpg 768w\" sizes=\"auto, (max-width: 786px) 100vw, 786px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1577\" src=\"http:\/\/www.fatihacar.com\/blog\/resimler\/sql_availability_group8.jpg\" alt=\"sql_availability_group8\" width=\"723\" height=\"671\" srcset=\"https:\/\/www.fatihacar.com\/blog\/resimler\/sql_availability_group8.jpg 723w, https:\/\/www.fatihacar.com\/blog\/resimler\/sql_availability_group8-300x278.jpg 300w\" sizes=\"auto, (max-width: 723px) 100vw, 723px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1578\" src=\"http:\/\/www.fatihacar.com\/blog\/resimler\/sql_availability_group9.jpg\" alt=\"sql_availability_group9\" width=\"340\" height=\"400\" srcset=\"https:\/\/www.fatihacar.com\/blog\/resimler\/sql_availability_group9.jpg 340w, https:\/\/www.fatihacar.com\/blog\/resimler\/sql_availability_group9-255x300.jpg 255w\" sizes=\"auto, (max-width: 340px) 100vw, 340px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1579\" src=\"http:\/\/www.fatihacar.com\/blog\/resimler\/sql_availability_group10.jpg\" alt=\"sql_availability_group10\" width=\"770\" height=\"433\" srcset=\"https:\/\/www.fatihacar.com\/blog\/resimler\/sql_availability_group10.jpg 770w, https:\/\/www.fatihacar.com\/blog\/resimler\/sql_availability_group10-300x169.jpg 300w, https:\/\/www.fatihacar.com\/blog\/resimler\/sql_availability_group10-768x432.jpg 768w\" sizes=\"auto, (max-width: 770px) 100vw, 770px\" \/><\/p><\/blockquote>\n<p>After all steps, you can test your database to control whether your operations flow into second side or not.<\/p>\n<p>You can find how to force manual failover Availabiliry Group here : <a href=\"http:\/\/www.fatihacar.com\/blog\/mssql-server-2012-availability-groups-ag-force-manual-failover\/\">http:\/\/www.fatihacar.com\/blog\/mssql-server-2012-availability-groups-ag-force-manual-failover\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Always On Availability Group is a new feature in SQL Server Database with 2012 release. Before this feature, we was using database mirroring feature in SQL Server 2005. But, mirroring has some limitations and weaknesses. and mirroring feature will be disabled near future. AlwaysOn Availability Groups Features Multi or Single Database Failovers Multiple Secondaries Active&#8230;<\/p>\n","protected":false},"author":37,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":true,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[11],"tags":[14,96,46,110],"class_list":["post-1563","post","type-post","status-publish","format-standard","hentry","category-administration-mssql-server","tag-database-administration","tag-mssql-server","tag-sql-server-administration","tag-sql-server-availability-group"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p39NFI-pd","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/posts\/1563","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/users\/37"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/comments?post=1563"}],"version-history":[{"count":12,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/posts\/1563\/revisions"}],"predecessor-version":[{"id":2604,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/posts\/1563\/revisions\/2604"}],"wp:attachment":[{"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/media?parent=1563"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/categories?post=1563"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/tags?post=1563"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}