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: articles/azure-netapp-files/azacsnap-preview.md
+87-71Lines changed: 87 additions & 71 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,29 +5,101 @@ services: azure-netapp-files
5
5
author: Phil-Jensen
6
6
ms.service: azure-netapp-files
7
7
ms.topic: reference
8
-
ms.date: 08/21/2023
8
+
ms.date: 05/15/2024
9
9
ms.author: phjensen
10
10
---
11
11
12
12
# Preview features of the Azure Application Consistent Snapshot tool
13
13
14
14
This article provides a guide on setup and usage of the new features in preview for the Azure Application Consistent Snapshot tool (AzAcSnap). For basic information about the tool, see [What is the Azure Application Consistent Snapshot tool?](./azacsnap-introduction.md).
15
15
16
-
The preview features provided with AzAcSnap 9 are:
16
+
The preview features provided with AzAcSnap 10 are:
17
17
18
+
- Microsoft SQL Server
18
19
- Azure NetApp Files backup
19
20
- Azure managed disks
20
21
21
22
> [!NOTE]
22
-
> Previews are provided "as is," "with all faults," and "as available." They're excluded from the service-level agreements and limited warranty. For more information, see [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/).
23
+
> Previews are provided "as is," "with all faults," and "as available," and are excluded from the service-level agreements and may not be covered by customer support.
24
+
> Previews are subject to the supplemental terms of use for Microsoft Azure Previews found at https://azure.microsoft.com/support/legal/preview-supplemental-terms/
25
+
26
+
## Using AzAcSnap preview features
27
+
28
+
AzAcSnap preview features are offered together with generally available features. Using the preview features requires the use of the `--preview` command-line option. To set up and install AzAcSnap, see [Get started with the Azure Application Consistent Snapshot tool](azacsnap-get-started.md).
23
29
24
30
## Providing feedback
25
31
26
32
You can provide feedback on AzAcSnap, including this preview, [online](https://aka.ms/azacsnap-feedback).
27
33
28
-
## Using AzAcSnap preview features
34
+
## Microsoft SQL Server
29
35
30
-
AzAcSnap preview features are offered together with generally available features. Using the preview features requires the use of the `--preview` command-line option. To set up and install AzAcSnap, see [Get started with the Azure Application Consistent Snapshot tool](azacsnap-get-started.md).
36
+
### Supported platforms and operating systems
37
+
38
+
> [!NOTE]
39
+
> Support for Microsoft SQL Server is Preview feature.
40
+
> This section's content supplements [What is Azure Application Consistent Snapshot tool](azacsnap-introduction.md) page.
41
+
42
+
New database platforms and operating systems supported with this preview release.
43
+
44
+
-**Databases**
45
+
- Microsoft SQL Server 2022 (or later) on Windows Server 2019 (or later) only is in preview.
46
+
47
+
48
+
### Enable communication with database
49
+
50
+
> [!NOTE]
51
+
> Support for Microsoft SQL Server is Preview feature.
This section explains how to enable communication with the database. Ensure the database you're using is correctly selected from the tabs.
54
+
55
+
# [Microsoft SQL Server](#tab/mssql)
56
+
57
+
The snapshot tools issue commands to the Microsoft SQL Server database directly to enable and disable backup mode.
58
+
59
+
AzAcSnap connects directly to Microsoft SQL Server using the provided connect-string to issue SQL commands, such as `ALTER SERVER CONFIGURATION SET SUSPEND_FOR_SNAPSHOT_BACKUP = ON` or `ALTER SERVER CONFIGURATION SET SUSPEND_FOR_SNAPSHOT_BACKUP = OFF`. The connect-string will determine if the installation is on the database server or a centralized "backup" server. Typical installations of AzAcSnap would be onto the database server to ensure features such as flushing file buffers can work as expected. If AzAcSnap has been installed onto the database server, then be sure the user running azacsnap has the required permissions.
60
+
61
+
##### `azacsnap` user permissions
62
+
63
+
Refer to [Get started with Azure Application Consistent Snapshot tool](azacsnap-get-started.md)
64
+
The `azacsnap` user should have permissions to put Microsoft SQL Server into backup mode, and have permissions to flush I/O buffers to the volumes configured.
65
+
66
+
Configure (`.\azacsnap.exe -c configure`) with the correct values for Microsoft SQL Server and test (`.\azacsnap.exe -c test --test mssql`) azacsnap database connectivity.
67
+
Run the `azacsnap` test command
68
+
```shell
69
+
.\azacsnap.exe -c test --test mssql
70
+
```
71
+
72
+
```output
73
+
BEGIN : Test process started for 'mssql'
74
+
BEGIN : Database tests
75
+
PASSED: Successful connectivity to MSSQL version 16.00.1115
76
+
END : Test process complete for 'mssql'
77
+
```
78
+
---
79
+
### Configuring the database
80
+
This section explains how to configure the data base.
81
+
# [Microsoft SQL Server](#tab/mssql)
82
+
No special database configuration is required for Microsoft SQL Server as we are using the User's local operating system environment.
83
+
84
+
---
85
+
86
+
### Configuring AzAcSnap
87
+
88
+
This section explains how to configure AzAcSnap for the specified database.
89
+
90
+
> [!NOTE]
91
+
> Support for Microsoft SQL Server is Preview feature.
The following sections provide detailed guidance on the various values required for the configuration file.
95
+
# [Microsoft SQL Server](#tab/mssql)
96
+
#### Microsoft SQL Server Database values for configuration
97
+
When adding a Microsoft SQL Server database to the configuration, the following values are required:
98
+
-**connectionString** = The Connection String used to connect to the database. For a typical AzAcSnap installation on to the system running Microsoft SQL Server where the Database Instance is MSSQL2022 the connection string = "Trusted_Connection=True;Persist Security Info=True;Data Source=MSSQL2022;TrustServerCertificate=true".
99
+
-**instanceName** = The database instance name.
100
+
-**metaDataFileLocation** = The location where Microsoft SQL Server will write out the backup meta-data file (for example, "C:\\MSSQL_BKP\\").
101
+
102
+
---
31
103
32
104
## Azure NetApp Files backup
33
105
@@ -52,72 +124,19 @@ For more information about this feature, see [Configure the Azure Application Co
52
124
53
125
Microsoft provides many storage options for deploying databases such as SAP HANA. For details about some of these options, see [Azure Storage types for SAP workload](../virtual-machines/workloads/sap/planning-guide-storage.md). There's also a [cost-conscious solution with Azure premium storage](../virtual-machines/workloads/sap/hana-vm-premium-ssd-v1.md#cost-conscious-solution-with-azure-premium-storage).
54
126
55
-
AzAcSnap can take application-consistent database snapshots when you deploy it on this type of architecture (that is, a virtual machine [VM] with managed disks). But the setup for this platform is slightly more complicated because in this scenario, you need to block I/O to the mount point (by using `xfs_freeze`) before you take a snapshot of the managed disks in the mounted logical volumes.
127
+
AzAcSnap can take application-consistent database snapshots when you deploy it on this type of architecture (that is, a virtual machine [VM] with managed disks). But the setup for this platform is slightly more complicated because in this scenario AzAcSnap takes an additional step to try and flush all I/O buffers and ensure they are written out to persistent storage. On Linux AzAcSnap will call the `sync` command to flush file buffers, on Windows it uses the kernel call to FlushFileBuffers, before it takes a snapshot of the managed disks in the mounted logical volumes.
56
128
57
129
> [!IMPORTANT]
58
-
> The Linux system must have `xfs_freeze` available to block disk I/O.
59
-
60
-
Take extra care to configure AzAcSnap with the correct mount points (file systems), because `xfs_freeze` blocks I/O to the device that the Azure managed disk's mount point specifies. This behavior could inadvertently block a running application until `azacsnap` finishes running.
130
+
> AzAcSnap will need appropriate operating system permissions for the volume so it can perform the flush.
61
131
62
132
Here's the architecture at a high level:
63
133
64
134
1. Attach Azure managed disks to the VM by using the Azure portal.
65
135
1. Create a logical volume from these managed disks.
66
136
1. Mount the logical volume to a Linux directory.
67
-
1.Create the service principal in the same way as for Azure NetApp Files in the [AzAcSnap installation](azacsnap-installation.md?tabs=azure-netapp-files%2Csap-hana#enable-communication-with-storage).
137
+
1.Enable communication in the same way as for Azure NetApp Files in the [AzAcSnap installation](azacsnap-configure-storage.md?tabs=azure-netapp-files#enable-communication-with-storage).
68
138
1. Install and configure AzAcSnap.
69
139
70
-
The configurator has a new option to define the mount point for the logical volume. After you put the database into backup mode and after the I/O cache is flushed (dependent on Linux kernel parameter `fs.xfs.xfssyncd_centisecs`), this parameter is passed to `xfs_freeze` to block the I/O.
71
-
1. Install and configure `xfs_freeze` to be run as a non-privileged user:
72
-
73
-
1. Create an executable file called `$HOME/bin/xfs_freeze` with the following content:
74
-
75
-
```bash
76
-
#!/bin/sh
77
-
/usr/bin/sudo /usr/sbin/xfs_freeze $1$2
78
-
```
79
-
80
-
1. Create a sudoers file called `/etc/sudoers.d/azacsnap` to allow the `azacsnap` user to run `xfs_freeze` with the following content:
81
-
82
-
```bash
83
-
#
84
-
# What: azacsnap
85
-
# Why: Allow the azacsnap user to run "specific" commands with elevated privileges.
86
-
#
87
-
# User_Alias = SAP HANA Backup administrator user.
88
-
User_Alias AZACSNAP = azacsnap
89
-
#
90
-
AZACSNAP ALL=(ALL) NOPASSWD: /usr/sbin/xfs_freeze
91
-
```
92
-
93
-
1. Test that the `azacsnap` user can freeze and unfreeze I/O to the target mount point by running the following code as the `azacsnap` user.
94
-
95
-
This example runs each command twice to show that it worked the first time, because there's no command to confirm if `xfs_freeze` has frozen I/O.
96
-
97
-
Freeze I/O:
98
-
99
-
```bash
100
-
su - azacsnap
101
-
xfs_freeze -f /hana/data
102
-
xfs_freeze -f /hana/data
103
-
```
104
-
105
-
```output
106
-
xfs_freeze: cannot freeze filesystem at /hana/data: Device or resource busy
107
-
```
108
-
109
-
Unfreeze I/O:
110
-
111
-
```bash
112
-
su - azacsnap
113
-
xfs_freeze -u /hana/data
114
-
xfs_freeze -u /hana/data
115
-
```
116
-
117
-
```output
118
-
xfs_freeze: cannot unfreeze filesystem mounted at /hana/data: Invalid argument
119
-
```
120
-
121
140
For more information about using Azure managed disks as a storage back end, see [Configure the Azure Application Consistent Snapshot tool](azacsnap-cmd-ref-configure.md).
122
141
123
142
### Example configuration file
@@ -139,30 +158,27 @@ Here's an example configuration file. Note the hierarchy for `dataVolume`, `moun
0 commit comments