Documente Academic
Documente Profesional
Documente Cultură
AlwaysOn
Availability
Groups
Contents
Windows Failover Cluster (WSFC) ................................. 3
AlwaysOn Availability Groups......................................... 3
Availability Group Listener ............................................ 14
Active Secondaries On Prem .....................................17
High Availability for unstructured data .......................19
Test AlwaysOn is working (simulate a failover) ........ 35
Terms of use ..................................................................... 38
Windows
Failover
Cluster
(WSFC)
AlwaysOn
Availability
Groups
The SQL Server service requires a restart for the above changes to take
effect
6. Click OK
7. Right-click on SQL Server (MSSQLSERVER) and select Restart
6. Click Next
7. Check the database ContosoRetailDW and then click Next
Note: In SQL Server 2014 the number of secondary replicas allowed has
been increased to eight
1.
10
6. Click Next
7. Review the results of the availability group validation and then
click Next
Note: Ignore the warning about Listener configuration as we will add a
Listener below.
11
12
3. Expand Databases
13
Availability
Group
Listener
14
15
7. Click OK
8. Click OK
16
Active
Secondaries
On Prem
17
18
High
Availability
for
unstructured
data
With SQL Server, complex data types are handled with the same
attention as common data types. Organizations can use FILESTREAM to
store and manage complex data in a variety of ways, as if it were part of
the database. Additionally, with SQL Server, organizations can enjoy
the high-availability benefits of AlwaysOn for complex data managed
through FILESTREAM even when they take advantage of Remote Blog
Storage and FileTable
In this scenario, you will use FILESTREAM to store and manage complex
data, as if it were part of the database and include this complex data in
the AlwaysOn configuration you previously set up.
Enabling FILESTREAM across the Availability Group.
1. Open SQL Server 2014 Configuration Manager, if not open
already, by opening the Windows Start screen, typing a few
letters of the program name (eg conf) and clicking on the
program name in the list of options this produces. If the desired
Exploring AlwaysOn Availability Groups
19
program is not listed, type a longer portion of its name and try
again)
20
7. Click OK
8. If SQL Server 2014 Management Studio is already open,
ensure you have a connection to the SQLONE server listed in
the Object Explorer. If you do not, click the Connect button at
the top of the Object Explorer and select Database Engine
then enter the details as for the next step of this click-through.
9. If SQL Server 2014 Management Studio is not already open,
open it from the Windows Start screen and enter the following
details. Server Type: Database Engine Server Name: SQLONE
Authentication Type: Windows Authentication. Click Connect
21
10. Open the File menu, click Open and then File
22
23
24
1.
25
26
You need to failover the availability group back to SQLONE before you
can add databases from SQLONE to it (the group was failed over to
SQLTWO when we restarted the server after enabling FILESTREAM.)
5. Expand AlwaysOn High Availability in the Object Explorer
and then Availability Groups
Exploring AlwaysOn Availability Groups
27
28
8. Click Next for the Select New Primary Replica page. SQLONE
is selected as the new primary replica.
29
30
31
32
33
34
Test
AlwaysOn is
working
(simulate a
failover)
35
Test AlwaysOn
1. Ensure you are also logged into the SQLONE virtual machine as
Contoso\labuser with the password pass@word1 (note, do
not close the SQLTHREE window, you will be using it shortly.)
2. From SQLONE open SQL Server 2014 Configuration
Manager
3. Select SQL Server Services
4. Right-click on SQL Server (MSSQLSERVER) and select Stop
Exploring AlwaysOn Availability Groups
36
Notice how the data refreshed and is still available although SQLONE is
down the original source of the data.
6. Close everything on SQLTHREE without saving then log out of
SQLTHREE.
This lab is complete
37
Terms of
use
38
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NONINFRINGEMENT. MICROSOFT DOES NOT MAKE ANY ASSURANCES OR
REPRESENTATIONS WITH REGARD TO THE ACCURACY OF THE
RESULTS, OUTPUT THAT DERIVES FROM USE OF THE VIRTUAL LAB, OR
SUITABILITY OF THE INFORMATION CONTAINED IN THE VIRTUAL LAB
FOR ANY PURPOSE.
DISCLAIMER
This lab contains only a portion of new features and enhancements in
Microsoft SQL Server 2014. Some of the features might change in
future releases of the product. In this lab, you will learn about some,
but not all, new features.
39