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-tips.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ Settings, which can be controlled by adding/editing the global settings file are
31
31
32
32
## Mainlog parsing
33
33
34
-
AzAcSnap 8 introduced a new "mainlog" to provide simpler parsing of runs of AzAcSnap. Ths inspiration for this file is the SAP HANA backup catalog, which shows when AzAcSnap was started, how long it took, and what the snapshot name is. With AzAcSnap this example has been taken further to include information for each of the AzAcSnap commands, specifically the `-c` options, and the file has the following headers:
34
+
AzAcSnap 8 introduced a new "mainlog" to provide simpler parsing of runs of AzAcSnap. The inspiration for this file is the SAP HANA backup catalog, which shows when AzAcSnap was started, how long it took, and what the snapshot name is. With AzAcSnap, this idea has been taken further to include information for each of the AzAcSnap commands, specifically the `-c` options, and the file has the following headers:
@@ -137,7 +137,7 @@ az role definition create --role-definition '{ \
137
137
}'
138
138
```
139
139
140
-
For restore options to work successfully, the AzAcSnap service principal also needs to be able to create volumes. In this case, the role definition needs an additional "Actions" clause added, therefore the complete service principal should look like the following example.
140
+
For restore options to work successfully, the AzAcSnap service principal also needs to be able to create volumes. In this case, the role definition needs an extra "Actions" clause added, therefore the complete service principal should look like the following example.
141
141
142
142
```azurecli
143
143
az role definition create --role-definition '{ \
@@ -191,13 +191,13 @@ MAILTO=""
191
191
192
192
Explanation of the above crontab.
193
193
194
-
-`MAILTO=""`: by having an empty value this prevents cron from automatically trying to email the user when executing the crontab entry as it would likely end up in the local user's mail file.
194
+
-`MAILTO=""`: by having an empty value this prevents cron from automatically trying to email the local Linux user when executing the crontab entry.
195
195
- Shorthand versions of timing for crontab entries are self-explanatory:
196
196
-`@monthly` = Run once a month, that is, "0 0 1 * *".
197
197
-`@weekly` = Run once a week, that is, "0 0 * * 0".
198
198
-`@daily` = Run once a day, that is, "0 0 * * *".
199
199
-`@hourly` = Run once an hour, that is, "0 * * * *".
200
-
- The first five columns are used to designate times, refer to column examples below:
200
+
- The first five columns are used to designate times, refer to the following column examples:
201
201
-`0,15,30,45`: Every 15 minutes
202
202
-`0-23`: Every hour
203
203
-`*` : Every day
@@ -220,7 +220,7 @@ generated successfully.
220
220
221
221
AzAcSnap writes output of its operation to log files to assist with debugging and to validate correct operation. These log files continue to grow unless actively managed. Fortunately UNIX based systems have a tool to manage and archive log files called logrotate.
222
222
223
-
This is an example configuration for logrotate. This configuration keeps a maximum of 31 logs (approximately one month), and when the log files are larger than 10k it will rotate and compress them.
223
+
The following output provides an example configuration for logrotate. This configuration keeps a maximum of 31 logs (approximately one month), and when the log files are larger than 10k it rotates them by renaming with a number added to the filename and compresses them.
224
224
225
225
```output
226
226
# azacsnap logrotate configuration file
@@ -232,7 +232,7 @@ compress
232
232
}
233
233
```
234
234
235
-
After creating the `logrotate.conf` file, the `logrotate` command should be run regularly to archive AzAcSnap log files accordingly. Automating the `logrotate` command can be done using cron. The following example is one line of the azacsnap user's crontab, this runs logrotate daily using the configuration file `~/logrotate.conf`.
235
+
After creating the `logrotate.conf` file, the `logrotate` command should be run regularly to archive AzAcSnap log files accordingly. Automating the `logrotate` command can be done using cron. The following output is one line of the azacsnap user's crontab, this example runs logrotate daily using the configuration file `~/logrotate.conf`.
The following conditions should be monitored to ensure a healthy system:
264
264
265
-
1. Available disk space. Snapshots will slowly consume disk space as keeping older disk blocks are retained in the snapshot.
265
+
1. Available disk space. Snapshots slowly consume disk space based on the block-level change rate, as keeping older disk blocks are retained in the snapshot.
266
266
1. To help automate disk space management, use the `--retention` and `--trim` options to automatically cleanup the old snapshots and database log files.
267
267
1. Successful execution of the snapshot tools
268
268
1. Check the `*.result` file for the success or failure of the latest running of `azacsnap`.
@@ -291,7 +291,7 @@ copy is made (`cp /hana/data/H80/mnt00001/.snapshot/hana_hourly.2020-06-17T11304
291
291
292
292
For Azure Large Instance, you could contact the Microsoft operations team by opening a service request to restore a desired snapshot from the existing available snapshots. You can open a service request via the [Azure portal](https://portal.azure.com).
293
293
294
-
If you decide to perform the disaster recovery failover, the `azacsnap -c restore --restore revertvolume` command at the DR site will automatically make available the most recent (`/hana/data` and `/hana/logbackups`) volume snapshots to allow for an SAP HANA recovery. Use this command with caution as it breaks replication between production and DR sites.
294
+
If you decide to perform the disaster recovery failover, the `azacsnap -c restore --restore revertvolume` command at the DR site automatically makes available the most recent (`/hana/data` and `/hana/logbackups`) volume snapshots to allow for an SAP HANA recovery. Use this command with caution as it breaks replication between production and DR sites.
295
295
296
296
## Set up snapshots for 'boot' volumes only
297
297
@@ -448,7 +448,7 @@ A 'boot' snapshot can be recovered as follows:
448
448
1. After the Server is shut down, the customer will need to open a service request that contains the Machine ID and Snapshot to restore.
449
449
> Customers can open a service request via the [Azure portal](https://portal.azure.com).
450
450
1. Microsoft restores the Operating System LUN using the specified Machine ID and Snapshot, and then boot the Server.
451
-
1. The customer will thenneed to confirm Server is booted and healthy.
451
+
1. The customer thenneeds to confirm Server is booted and healthy.
452
452
453
453
No other steps to be performed after the restore.
454
454
@@ -468,7 +468,7 @@ Key attributes of storage volume snapshots:
468
468
469
469
- **Max snapshot:** The hardware can sustain up to 250 snapshots per volume. The snapshot
470
470
command keeps a maximum number of snapshots for the prefix based on the retention
471
-
set on the command line. Any additional snapshots, beyond the retention number with the same prefix, will be deleted.
471
+
set on the command line. Any more snapshots, beyond the retention number with the same prefix, are deleted.
472
472
- **Snapshot name:** The snapshot name includes the prefix label provided by the customer.
473
473
- **Size of the snapshot:** Depends upon the size/changes on the database level.
474
474
- **Log file location:** Log files generated by the commands are output into folders as
0 commit comments