Het hulpprogramma Azure-toepassing Consistente momentopname configureren

In dit artikel leest u hoe u de azacsnap -c configure opdracht uitvoert van het hulpprogramma Azure-toepassing Consistent Snapshot (AzAcSnap) dat u kunt gebruiken met Azure NetApp Files.

Opdrachten voor het configuratiebestand

U kunt het configuratiebestand voor AzAcSnap maken of bewerken met behulp van de azacsnap -c configure opdracht. De opdracht heeft de volgende opties:

  • --configuration new een nieuw configuratiebestand maken

  • --configuration edit een bestaand configuratiebestand bewerken

  • [--configfile <config filename>] (optionele parameter) om aangepaste namen van configuratiebestanden toe te staan

Standaard is de naam van het configuratiebestand azacsnap.json. U kunt een aangepaste bestandsnaam gebruiken met de --configfile= parameter (bijvoorbeeld --configfile=<customname>.json).

In het volgende voorbeeld wordt een configuratiebestand gemaakt voor een configuratie van Azure Large Instances:

azacsnap -c configure --configuration new

Voorbeeld voor SAP HANA met Azure NetApp Files-opslag

+----------------------------------------------------------+
+  For details on configuring AzAcSnap please visit        +
+          https://aka.ms/azacsnap-configure               +
+----------------------------------------------------------+
Building new config file

Q. Add comment #1 to config file (blank entry to exit adding comments)?
A. This is a new config file for AzAcSnap 11 with SAP HANA and Azure NetApp Files

Q. Add comment #2 to config file (blank entry to exit adding comments)?
A.

Q. Enter the database type to add, 'hana', 'oracle', 'db2', 'mssql',
   'exit' (to abort without saving), 'save' (to save and exit)?
A. hana

Checking for SAP HANA external program dependency 'hdbsql'
External dependency 'hdbsql' found.

=== Add SAP HANA details ===

Q. What is the SAP HANA SID (e.g. H80)?
A. H81

Q. What is the SAP HANA Instance Number (e.g. 00)?
A. 00

Q. What is the SAP HANA HDB User Store Key (e.g. `hdbuserstore List`)?
A. AZACSNAP

Q. What is the SAP HANA Server's Address (hostname or IP address)?
A. saphana1

Q. Do you need AzAcSnap to automatically disable/enable backint during snapshot?
   ('y' for yes, 'n' for no) [default='n']
A.

=== Add Hana Storage section ===

Q. Do you want to add Hana database Storage?
   ('y' for yes, 'n' for no)
A. y

--- DATA Volumes are specially prepared before they are snapshot ---

Q. Do you want to add Hana storage + DataVolume #1?
   ('y' for yes, 'n' for no)
A. y

Q. Do you want to add Hana storage + DataVolume #1 + Azure NetApp Files entry #1?
   ('y' for yes, 'n' for no)
A. y

Q. What is the Hana storage + DataVolume #1 + Azure NetApp Files entry #1 + ResourceId?
  (e.g. /subscriptions/.../resourceGroups/.../providers/Microsoft.NetApp/netAppAccounts/.../capacityPools/Premium/volumes/...)?
A. /subscriptions/99999999-9zz9-9z99-z9z9-z999z999zzz9/resourceGroups/saphanasystems/providers/Microsoft.NetApp/netAppAccounts/saphanaanf/capacityPools/Premium/volumes/HANADATA01

Q. What is the Hana storage + DataVolume #1 + Azure NetApp Files entry #1 + Service Principal AuthenticationFile
   (e.g. auth-file.json or <blank> if using Azure Managed ID)?
A.
Hana storage + DataVolume #1 + Azure NetApp Files entry #1 (added)


Q. Do you want to add Hana storage + DataVolume #1 + Azure NetApp Files entry #2?
   ('y' for yes, 'n' for no)
A. n

Q. Do you want to add Hana storage + DataVolume #1 + Azure Large Instance entry #1?
   ('y' for yes, 'n' for no)
A. n

Q. Do you want to add Hana storage + DataVolume #1 + Azure Managed Disk entry #1?
   ('y' for yes, 'n' for no)
A. n

Q. Do you want to add Hana storage + DataVolume #2?
   ('y' for yes, 'n' for no)
A. n

--- OTHER Volumes are snapshot immediately (no special preparation) ---

Q. Do you want to add Hana storage + OtherVolume #1?
   ('y' for yes, 'n' for no)
A. n


Q. Enter the database type to add, 'hana', 'oracle', 'db2', 'mssql',
   'exit' (to abort without saving), 'save' (to save and exit)?
A. save


Editing configuration complete, writing output to 'azacsnap.json'.

Voorbeeld voor SAP HANA met Azure Large Instance-opslag

+----------------------------------------------------------+
+  For details on configuring AzAcSnap please visit        +
+          https://aka.ms/azacsnap-configure               +
+----------------------------------------------------------+
Building new config file

Q. Add comment #1 to config file (blank entry to exit adding comments)?
A. This is a new config file for AzAcSnap 11

Q. Add comment #2 to config file (blank entry to exit adding comments)?
A.

Q. Enter the database type to add, 'hana', 'oracle', 'db2', 'mssql',
   'exit' (to abort without saving), 'save' (to save and exit)?
A. hana

Checking for SAP HANA external program dependency 'hdbsql'
External dependency 'hdbsql' found.

=== Add SAP HANA details ===

Q. What is the SAP HANA SID (e.g. H80)?
A. H80

Q. What is the SAP HANA Instance Number (e.g. 00)?
A. 00

Q. What is the SAP HANA HDB User Store Key (e.g. `hdbuserstore List`)?
A. AZACSNAP

Q. What is the SAP HANA Server's Address (hostname or IP address)?
A. testing01

Q. Do you need AzAcSnap to automatically disable/enable backint during snapshot?
   ('y' for yes, 'n' for no) [default='n']
A.

=== Add Hana Storage section ===

Q. Do you want to add Hana database Storage?
   ('y' for yes, 'n' for no)
A. y

--- DATA Volumes are specially prepared before they are snapshot ---

Q. Do you want to add Hana storage + DataVolume #1?
   ('y' for yes, 'n' for no)
A. y

Q. Do you want to add Hana storage + DataVolume #1 + Azure NetApp Files entry #1?
   ('y' for yes, 'n' for no)
A. n

Q. Do you want to add Hana storage + DataVolume #1 + Azure Large Instance entry #1?
   ('y' for yes, 'n' for no)
A. y

Q. What is the Hana storage + DataVolume #1 + Azure Large Instance entry #1 + Storage Certificate File
   (e.g. svmadm_cert.p12)?
A. svm01.p12

Q. What is the Hana storage + DataVolume #1 + Azure Large Instance entry #1 + Storage ResourceId
   (e.g. <hostname>/api/storage/volumes/<UUID>)?
A. svm01/api/storage/volumes/0892dcdc-f760-11ee-a301-000c2989d71e

Q. What is the Hana storage + DataVolume #1 + Azure Large Instance entry #1 + Storage Resource Name
   (e.g. volume01)?
A. hana_data_01

Q. What is the Hana storage + DataVolume #1 + Azure Large Instance entry #1 + Storage Resource Type
   (e.g. volumes or consistency-groups)?
A. volumes
Hana storage + DataVolume #1 + Azure Large Instance entry #1 (added)


Q. Do you want to add Hana storage + DataVolume #1 + Azure Large Instance entry #2?
   ('y' for yes, 'n' for no)
A. n

Q. Do you want to add Hana storage + DataVolume #1 + Azure Managed Disk entry #1?
   ('y' for yes, 'n' for no)
A. n

Q. Do you want to add Hana storage + DataVolume #2?
   ('y' for yes, 'n' for no)
A. n

--- OTHER Volumes are snapshot immediately (no special preparation) ---

Q. Do you want to add Hana storage + OtherVolume #1?
   ('y' for yes, 'n' for no)
A. n


Q. Enter the database type to add, 'hana', 'oracle', 'db2', 'mssql',
   'exit' (to abort without saving), 'save' (to save and exit)?
A. save


Editing configuration complete, writing output to 'azacsnap.json'.

Vereiste waarden voor het configuratiebestand

De volgende secties bevatten gedetailleerde richtlijnen voor de vereiste waarden voor de databasesectie van het configuratiebestand.

Wanneer u een SAP HANA-database aan de configuratie toevoegt, zijn de volgende waarden vereist:

  • HANA SID (JSON-sleutel: sid): de SAP HANA-systeem-id (SID).

  • HANA Instance Number (JSON-sleutel: instanceNumber): het SAP HANA-exemplaarnummer.

  • HANA HDB User Store Key (JSON-sleutel: hdbUserStoreName): de SAP HANA-SLEUTEL zoals wordt weergegeven door de hdbuserstore List opdracht die de SLEUTEL gebruikt om de GEBRUIKER te koppelen aan machtigingen voor het uitvoeren van databaseback-ups naar de ENV (hostnaam en poort). In de sectie Communicatie met database inschakelen vindt u meer informatie en voorbeelden.

  • HANA Server's Address (JSON-sleutel: serverAddress): de hostnaam of het IP-adres van de SAP HANA-server.

  • Do you need AzAcSnap to automatically disable/enable backint during snapshot: standaard ingesteld op n (nee). U kunt deze instellen op y (ja) zodat AzAcSnap de Backint-interface kan uitschakelen of opnieuw inschakelen. In de sectie Backint-co-existentie in dit artikel wordt deze optie in meer detail uitgelegd.

  • Dit HANA Server's Address moet een van de volgende zijn:

    • Eén knooppunt : hostnaam en IP-adres van het knooppunt.
    • HSR met STONITH : Hostnaam en IP-adres van het knooppunt.
    • Uitschalen (N+N, N+M): huidige hostnaam en IP-adres van het hoofdknooppunt.
    • HSR zonder STONITH : hostnaam en IP-adres van het knooppunt.
    • Multi-SID op één knooppunt : hostnaam en IP-adres van het knooppunt dat als host fungeert voor deze SID's.

Co-existentie van back-int

De Azure Backup-service biedt een alternatief back-upprogramma voor SAP HANA. U kunt database- en logboekback-ups streamen naar Azure Backup.

Sommige klanten willen de back-ups op basis van backint streamen combineren met regelmatige back-ups op basis van momentopnamen. Back-ups op basis van Backint blokkeren echter andere back-upmethoden, zoals het gebruik van een back-up op basis van bestanden of een back-up op basis van een opslagmomentopname (bijvoorbeeld AzAcSnap). Zie Back-up van systeemeigen SAP HANA-clients uitvoeren op een database met Azure Backup voor meer informatie.

Het proces dat in de Azure Backup-documentatie wordt beschreven, is geïmplementeerd met AzAcSnap om automatisch de volgende stappen uit te voeren:

  1. Een logboekback-up leegmaken naar Backint afdwingen.
  2. Wacht totdat actieve back-ups zijn voltooid.
  3. Schakel de back-up op basis van Backint uit.
  4. Zet SAP HANA in een consistente status voor back-up.
  5. Maak een back-up op basis van een opslagmomentopname.
  6. SAP HANA vrijgeven.
  7. Schakel de back-up op basis van Backint opnieuw in.

Deze optie is standaard uitgeschakeld. U kunt dit inschakelen door de vraag azacsnap -c configure –configuration edituit te voeren y en (ja) te beantwoorden Do you need AzAcSnap to automatically disable/enable backint during snapshot? (y/n) [n] .

Als u de configuratie bewerkt zoals beschreven, wordt de autoDisableEnableBackint waarde true in het JSON-configuratiebestand ingesteld (bijvoorbeeld azacsnap.json). Het is ook mogelijk om deze waarde te wijzigen door het configuratiebestand rechtstreeks te bewerken.

Wanneer u Azure Large Instances-opslag toevoegt aan een databasesectie, zijn de volgende waarden vereist:

  • Storage Certificate File (JSON-sleutel: certificateFile): het certificaatbestand dat wordt gebruikt voor verificatie bij de back-end van de opslag.
  • Storage ResourceId (JSON-sleutel: resourceUri): De volledige URI voor de resource, te beginnen met de hostnaam (bijvoorbeeld <hostname>/api/storage/volumes/<UUID>)
  • Storage Resource Name (JSON-sleutel: resourceName): de beschrijvende naam van de resource (bijvoorbeeld vol01)
  • Storage Resource Type (JSON-sleutel: resourceType): het resourcetype, 'volumes' of 'consistency-groups'.

Voorbeeld van configuratiebestand

De volgende uitvoer is alleen een voorbeeldconfiguratiebestand. Dit voorbeeld is het resultaat van sap HANA met Azure NetApp Files-opslagvoorbeeld.

cat azacsnap.json
{
  "version": "11",
  "logPath": "./logs",
  "securityPath": "./security",
  "comments": [
    "This is a new config file for AzAcSnap 11 with SAP HANA and Azure NetApp Files"
  ],
  "database": [
    {
      "hana": {
        "serverAddress": "saphana1",
        "sid": "H81",
        "instanceNumber": "00",
        "hdbUserStoreName": "AZACSNAP",
        "savePointAbortWaitSeconds": 600,
        "autoDisableEnableBackint": false,
        "storage": [
          {
            "dataVolumes": [
              {
                "anfStorageVolumes": [
                  {
                    "resourceId": "/subscriptions/99999999-9zz9-9z99-z9z9-z999z999zzz9/resourceGroups/saphanasystems/providers/Microsoft.NetApp/netAppAccounts/saphanaanf/capacityPools/Premium/volumes/HANADATA01",
                    "authFile": "",
                    "subscription": "99999999-9zz9-9z99-z9z9-z999z999zzz9",
                    "resourceGroupName": "saphanasystems",
                    "accountName": "saphanaanf",
                    "poolName": "Premium",
                    "volume": "HANADATA01"
                  }
                ]
              }
            ]
          }
        ]
      }
    }
  ]
}

Notitie

Voor een noodherstelscenario waarin u back-ups uitvoert op de dr-site, moet de naam van de HANA-server die is geconfigureerd in het DR-configuratiebestand (bijvoorbeeld DR.json) op de dr-site hetzelfde zijn als de naam van de productieserver.

Volgende stappen