You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: azure-sql/managed-instance/log-replay-service-migrate.md
+9-8Lines changed: 9 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ ms.topic: how-to
9
9
author: danimir
10
10
ms.author: danil
11
11
ms.reviewer: mathoma
12
-
ms.date: 07/13/2022
12
+
ms.date: 07/14/2022
13
13
---
14
14
15
15
# Migrate databases from SQL Server to SQL Managed Instance by using Log Replay Service (Preview)
@@ -120,7 +120,6 @@ Ensure the following requirements are met:
120
120
- Use the full recovery model on SQL Server (mandatory).
121
121
- Use `CHECKSUM` for backups on SQL Server (mandatory).
122
122
- Place backup files for an individual database inside a separate folder in a flat-file structure (mandatory). Nested folders inside database folders aren't supported.
123
-
- Plan to complete the migration within 36 hours after you start LRS (mandatory). This time window is a grace period during which system-managed software patches are postponed.
124
123
125
124
## Best practices
126
125
@@ -129,12 +128,17 @@ We recommend the following best practices:
129
128
- Split full and differential backups into multiple files, instead of using a single file.
130
129
- Enable backup compression to help the network transfer speeds.
131
130
- Use Cloud Shell to run PowerShell or CLI scripts, because it will always be updated to the latest cmdlets released.
131
+
- Configure [maintenance window](../database/maintenance-window.md) to allow scheduling of system updates at a specific day/time. This configuration will help achieve a more predictable time of database migrations.
132
132
133
133
> [!IMPORTANT]
134
134
> - You can't use databases being restored through LRS until the migration process completes.
135
135
> - LRS doesn't support read-only access to databases during the migration.
136
136
> - After the migration completes, the migration process is finalized and can't be resumed with additional differential backups.
137
137
138
+
> [!TIP]
139
+
> System updates on managed instance will take precedence over database migrations in progress. All pending LRS migrations in case of a system update on Managed Instance will be suspended and resumed once the update has been applied. This system behavior might prolong migration time, especially in cases of very large databases. To achieve a predictable time of database migrations, consider configuring [maintenance window](../database/maintenance-window.md) allowing scheduling of system updates at a specific day/time, and consider running and completing migration jobs outside of the scheduled maintenance window day/time.
140
+
>
141
+
138
142
## Steps to migrate
139
143
140
144
To migrate using LRS, follow the steps in this section.
@@ -349,9 +353,6 @@ When you use continuous mode, the service continuously scans Azure Blob Storage
349
353
> When migrating multiple databases, LRS must be started separately for each database pointing to the full URI path of Azure Blob storage container and the individual database folder.
350
354
>
351
355
352
-
> [!IMPORTANT]
353
-
> After you start LRS, any system-managed software patches are halted for 36 hours. After this window, the next automated software patch will automatically stop LRS. If that happens, you can't resume migration and need to restart it from the beginning.
354
-
355
356
### Start LRS in autocomplete mode
356
357
357
358
Ensure that the entire backup chain has been uploaded to Azure Blob Storage. This option doesn't allow new backup files to be added once the migration is in progress.
- During the migration process, databases being migrated can't be used for read-only access on SQL Managed Instance.
491
-
-System-managed software patches are blocked for 36 hours once the LRS has been started. After this time window expires, the next software maintenance update stops LRS. You'll need to restart the LRS migration from the beginning.
492
+
-Configure [maintenance window](../database/maintenance-window.md) to allow scheduling of system updates at a specific day/time. Plan to run and complete migrations outside of the scheduled maintenance window.
492
493
- LRS requires databases on SQL Server to be backed up with the `CHECKSUM` option enabled.
493
494
- The SAS token that LRS uses must be generated for the entire Azure Blob Storage container, and it must have **Read** and **List** permissions only. For example, if you grant **Read**, **List** and **Write** permissions, LRS won't be able to start because of the extra **Write** permission.
494
495
- Using SAS tokens created with permissions set through defining a [stored access policy](/rest/api/storageservices/define-stored-access-policy) isn't supported. Follow the instructions in this article to manually specify **Read** and **List** permissions for the SAS token.
@@ -498,8 +499,8 @@ Consider the following limitations of LRS:
498
499
- LRS must be started separately for each database pointing to the full URI path containing an individual database folder.
499
500
- LRS can support up to 100 simultaneous restore processes per single managed instance.
500
501
501
-
> [!NOTE]
502
-
> If you require database to be R/O accessible during the migration, a faster minimum downtime migration, and if you require migration window larger than 36 hours, please consider the [link feature for Managed Instance](managed-instance-link-feature-overview.md) as a recommended migration solution in these cases.
502
+
> [!TIP]
503
+
> If you require database to be R/O accessible during the migration, a much longer timeframe to perform the migration, and the best possible minimum downtime, consider the [link feature for Managed Instance](managed-instance-link-feature-overview.md) as a recommended migration solution in these cases.
@@ -136,7 +136,7 @@ Managed Instance link has a set of general limitations, and those are listed in
136
136
- In case distributed transactions are used with database replicated from the SQL Server, and in case of migration scenario, on the cutover to the cloud, the DTC capabilities won't be transferred. There will be no possibility for migrated database to get involved in distributed transactions with SQL Server, as SQL Managed Instance doesn't support distributed transactions with SQL Server at this time. For reference, SQL Managed Instance today supports distributed transactions only between other SQL Managed Instances, see [this article](../database/elastic-transactions-overview.md#transactions-for-sql-managed-instance).
137
137
- Managed Instance link can replicate database of any size if it fits into chosen storage size of target SQL Managed Instance.
138
138
- Client Windows OS 10 and 11 cannot be used to host your SQL Server, as it will not be possible to enable Always On required for the link. SQL Server must be hosted on Windows Server 2012 or higher.
139
-
- SQL Server 2008, 2012 and 2014 cannot be supported for the link feature, as SQL engines of these releases do not have built-in support for Always On, required for the link. Upgrade to a newer version of SQL Server is required to be able to use the link.
139
+
- SQL Server 2008, 2012 and 2014 cannot be supported for the link feature, as SQL engines of these releases do not have built-in support for Distributed Availability Groups, required for the link. Upgrade to a newer version of SQL Server is required to be able to use the link.
0 commit comments