Presentation is loading. Please wait.

Presentation is loading. Please wait.

Using Distributed AGs for Your Migrations

Similar presentations


Presentation on theme: "Using Distributed AGs for Your Migrations"— Presentation transcript:

1 Using Distributed AGs for Your Migrations
Elizabeth Noble Using Distributed AGs for Your Migrations

2 Using Distributed AGs for Your Migrations
Elizabeth Noble Using Distributed AGs for Your Migrations Talk about use case

3 About Me e:

4

5 https://tinyurl.com/y6spgfwn
Slack Channel – #jssug #sqlhelp #jobhelp #sqlsatjax

6 Please Take Pictures and Post!

7 501 Legion Charitable Donation
Thank the 501 Legion for Supporting Our Event! JSSUG Will Match Donations up to $200 Donation Bucket on Registration Table

8

9

10 Don’t forget Session Eval’s for Speakers!
Don’t forget Event Evals for xBox Raffle! Schedule is Online and in GuideBook App

11 Modern Migration Tour Register: https://tinyurl.com/y6qom9n3
When: June 15, 2019 Where: UNF Sponsored by: PASS, Microsoft & Intel In the lead up to SQL Server 2008 end of support, PASS has recruited Sandy—an expert in all things migration—along with an all-star lineup of speakers from Microsoft and Intel®, to smoothly guide you to your final destination—a modern data platform. Whether you’re interested in moving to an updated on-premises, cloud, or hybrid solution; PASS, Microsoft, Intel®, and Sandy (of course!) have teamed up for a must attend series of webinars, in-person events, and migration resources, dedicated to giving you the tools you need to migrate with confidence.

12 Migrate to a Data Center

13 Migrate Across Domains

14 Data Center Migration Issues
Need to sync data across multiple domains Need to sync data across long distances Need short cutover windows

15 What Can Distributed Availability Groups Do for Me?
Synchronize across zero or more domains Synchronize across zero or more Windows Server Failover Clusters (WSFC) Synchronize across operating systems

16 Terminology First Availability Group Primary Node – Global Primary Secondary Node – Secondary Second Availability Group Primary Node – Forwarder

17 Create Availability Group
Asynchronous

18 Create Distributed AG on First AG

19 Create Distributed AG on Second AG

20 Create Distributed AG

21 Manual Seeding Databases
Add database to AG 2 Forwarder Add database AG 2 Secondary

22 Create Distributed AG Asynchronous

23 Building the Distributed Availability Group
Asynchronous

24 Building the Distributed Availability Group
Asynchronous

25 Building the Distributed Availability Group

26 Building the Distributed Availability Group
Asynchronous

27 Demo: Creation

28 Monitoring DMVs sys.availability_groups
sys.availability_replicas sys.dm_hadr_availability_replica_states sys.dm_os_performance_counters Instance_nameLIKE ‘%<distributed AG name>%’ sys.dm_hadr_automatic_seeding

29 Monitoring Useful for troubleshooting synchronization errors current_state–FAILED Forwarder SQL Server log will show that seeding worked with the LSNs synchronized current_state–COMPLETED

30 Preparing for the Migration
Must be a manual failover Stop all data traffic to the Global Primary

31 Update Availability Mode
Set the Availability Mode to Synchronous on the Global Primary

32 Update Availability Mode
Synchronous

33 Verify Synchronization
Get final LSN on first Availability Group Confirm LSN on second Availability Group matches

34 Update First Availability Group
Change the first Availability Group to a secondary

35 Update First Availability Group
X

36 Failover with Data Loss
On the Forwarder alter availability group to allow data loss

37 Failover with Data Loss
Synchronous

38 Update Availability Mode
Set the Availability Mode back to Asynchronous on the new Global Primary

39 Update Availability Mode
Asynchronous

40 Failover Post-migration Rename the listener
Update application to use new listener

41 Manual Failover to Second Availability Group
Asynchronous

42 Manual Failover to Second Availability Group
Synchronous

43 Manual Failover to Second Availability Group
X

44 Manual Failover to Second Availability Group

45 Manual Failover to Second Availability Group
Synchronous

46 Manual Failover to Second Availability Group
Asynchronous

47 Manual Failover to Second Availability Group

48 Manual Failover to Second Availability Group

49 Demo: Failover

50 Removing Distributed AG
Use T-SQL DROP AVAILABILITY GROUP <distributed AG name>

51 Migrating to the New Data Center
Asynchronous

52 Migrating to the New Data Center
Asynchronous

53 Migrating to the New Data Center

54 Migrating to the New Data Center
Asynchronous

55 Migrating to the New Data Center
Synchronous

56 Migrating to the New Data Center
X

57 Migrating to the New Data Center

58 Migrating to the New Data Center
Synchronous

59 Migrating to the New Data Center
Asynchronous

60 Migrating to the New Data Center

61 Migrating to the New Data Center

62 Conclusion

63 Additional Resources

64 Additional Resources

65 Additional Resources

66 Special Thanks

67


Download ppt "Using Distributed AGs for Your Migrations"

Similar presentations


Ads by Google