SAP ASCS HA Cluster (in Linux OS) failover to DR region using Azure Site Recovery

Published Feb 17 2021 07:34 AM 2,533 Views
Microsoft

Overview

This blog provides guidance to perform the steps during the failover of SAP ASCS/ERS HA VMs in Linux cluster to the DR region in Azure using ASR. We will have details of changes to be made in the DR environment to re-configure the pacemaker cluster to start the ASCS/ERS HA environment with Azure Fence agent as STONITH device. Steps cover both SUSE Linux and RHEL OS. In SUSE Pacemaker cluster, we can also use SBD device (in place of Azure Fence agent) for fencing which requires additional VMs and its DR setup will require additional changes which is not covered in this blog.

 

Note : The specific procedures described have been exercised with these OS releases
• OS release #1 : SUSE Linux 12 SP5
• OS release #2 : RHEL 8.1
Please note that the procedures described have not been coordinated with the OS providers and therefore might not work in completeness with your specific implementations or with future OS releases. As a result you should test the procedures described thoroughly in your environment.

Also note that the procedure as described works only with Azure Fencing Agent and not with iSCSI SBD devices.

 

Disaster Recovery Architecture for SAP ASCS HA Cluster

The SAP ASCS/ERS HA cluster design in the primary and DR region in Azure is as described in the diagram and can be used as reference architecture for SAP HA & DR setup in Azure. Highly Available NFS File share to be used for common file systems of SAP. Azure Site Recovery (ASR) is recommended to be used for across region replication of the VMs for DR setup. An NFS fileshare needs to be available in the respective region for starting the SAP ASCS/ERS application services and should be synchronized between region for availability of latest data.

 

Picture1.jpg

Preparations

  • Configure ASR for both the nodes of ASCS in the primary region.
  1. Deploy the Resource Group, VNet, Subnet and Recovery Vault in the Secondary Region.
  2. Click on the ‘Disaster recovery’ for the ASCS/ERS VMs. Select the DR region (e.g. West US 2).
  3. In advanced settings, Select the target Resource Group, Vnet, Recovery vault, AV Set(if needed), PPG (if needed) and disks to be included.Picture2.jpg
  4. Review the settings and start the Replication.
  • Check that ASR replication is 100% and its healthy.

 Picture3.jpgPicture4.jpg

 

  • Deploy Azure ILB for ASCS & ERS in DR region.

Define frontend IP, backend pool, Probe port and loadbalancing rules. Frontend IP would be different in the DR region. Probe port can be same as primary region ASCS/ERS cluster.

Front-end IP

Backend Pool

Health probe port

Load balancing rule

172.10.0.45

(ASCS Virtual IP - HA)

azshafsascs1

and

azshafsascs2

 

64300

Enable HA Port,

Enable Floating IP,

Idle Timeout (30 Minutes)

172.10.0.46

(AERS Virtual IP - HA)

64302

Enable HA Port,

Enable Floating IP,

Idle Timeout (30 Minutes)

173.30.0.45

(ASCS Virtual IP - DR)

azshafsascs1-test

and

azshafsascs2-test

 

64300

Enable HA Port,

Enable Floating IP,

Idle Timeout (30 Minutes)

173.30.0.46

(AERS Virtual IP - DR)

64302

Enable HA Port,

Enable Floating IP,

Idle Timeout (30 Minutes)

  • NFS files shares synchronization

NFS Fileshare for ‘sapmnt’, ‘trans’ and ‘usr/sap’ must be must be synchronized with Primary Region and available/mounted in the DR region. New location/path of NFS files needs to be updated in '/etc/fstab' and cluster configuration the DR ASCS VMs.

Note: One of the options for NFS FileShare is to use Azure File NFS. As ASR can’t replicate NFS sources, one of the methods to replicate is to Copy the data to locally attached disk in the ASCS/ERS VMs using cronjob(for frequent interval copy)  so that ASR can replicate the data to DR region. Detailed steps are described in Appendix.

 

ASCS/ERS DR Failover

The following items are prefixed with either [A - DR] - applicable to all nodes of DR ASCS/ERS, [1-DR] - only applicable to node 1 of DR ASCS/ERS or [2-DR] - only applicable to node 2 of DR ASCS/ERS

  1. Perform the ‘Failover’ OR ‘Test Failover’ of ASCS/ERS Cluster VMs using ASR to the DR region.
 
  1. [A - DR] Update the IP addresses of the VMs and virtual IPs either in AD/DNS or in ‘hosts’ file.
  2. [A - DR] Mount the NFS filesystems for ‘sapmnt’, ‘trans’ and ‘SYS’. Mounting process depends on the NFS Share type (ANF / Azure Files NFS(in preview as of February 2021)).
  3. [A – DR] Ensure that contents of ‘sapmnt’, ‘trans’ and ‘SYS’ filesystems are synchronized from Primary Region.
  4. [A - DR] Update the VMs physical IP addresses in /etc/corosync/corosync.conf

nodelist {

        node {

                ring0_addr: 173.30.0.61

                nodeid: 1

        }

 

        node {

                ring0_addr: 172.30.0.62

                nodeid: 2

        }

Note: This step is only required in SUSE Linux.

  1. [A – DR] Start the pacemaker cluster using the command.
    • For SUSE Linux

systemctl start pacemaker

    • For RHEL

pcs cluster start

           

  1. [A – DR] Keep the cluster in maintenance mode.  
    • For SUSE Linux                                                                                                                   

sudo crm configure property maintenance-mode="true"

    • For RHEL

sudo pcs property set maintenance-mode=true

 

  1. [1-DR] Update the pacemaker configuration and save the changes. 

For SUSE Linux : The properties of the resources can be changed in the GUI tool ‘Hawk’ (https://<hostname>:7630/) or using the syntax “crm configure edit” (use ‘vi’ editor commands to update the content)

For RHEL : The properties of the resources can be changed using the ‘PCSD web UI’ (https://<hostname>:2224/). Once you start the pcs web UI, click on ‘+Add Existing’ and enter hostname of the cluster to see the properties.

  • Fileshare location of ‘ASCS’ and ‘ERS’.

Picture6.jpg

  • Probe Port numbers of ILB for ASCS and ERS (if different probe port numbers are used in Primary and DR)
  • Frontend IP (virtual IP) defined in ILB for ASCS and ERS.

 

Picture7.jpg

 
  • Azure Fence Agent.
    • We can reuse the Azure Fence agent API created for ASCS/ERS cluster(in the primary region) in the DR region. Optionally, we can create a new Azure Fence Agent API.
    • Assign the custom role to the Service Principle for the DR VMs as per the link.
    • Update the Azure Fence agent details (new resource group) in the cluster configuration.

Picture8.jpg

Note : Azure Fence Agent requires outbound connectivity to public end points as documented, along with possible solutions, in Public endpoint connectivity for VMs using standard ILB.

 

Note : While performing ‘Test Failover’ in ASR, VM name created in the DR Region will be suffixed by ‘-test’ but hostname at operating system will be same as Primary Region VMs. Since VM name doesn’t match with node name(hostname) in the cluster, we need to add parameter ‘pcmk_host_map’ and map hostname & VM name in Azure Fence Agent configuration in the pacemaker. This will ensure fencing of the VM during cluster testing.

Picture9.jpg

 
  1. [A – DR] Ensure that ‘ASCS<nr>’ and ‘ERS<nr>’ filesystems contents are synchronized with the data from Primary region.
  2. [1-DR] Remove the maintenance mode and cleanup cluster resources (if required).
    • For SUSE Linux

sudo crm configure property maintenance-mode="false"

    • For RHEL

sudo pcs property set maintenance-mode=false

  1. Check the cluster status.

Picture10.jpg

 

  1. Continue with the DR activation tasks for DB and application servers.
  2. Perform the DR validation tasks and cluster testing in the DR environment.
  3. Once DR test is completed, ‘Cleanup test failover’ in ASR for both ASCS/ERS VMs.

 

 

 

 

Appendix

This section describes steps to synchronize Azure Files NFS between primary and secondary region. This method of synchronization is one of the several possible ways to achieve data synchronization.

To setup ASCS/ERS cluster with Azure Files NFS(in public preview as of February 2021), please refer to the blog.

High level steps

  • Attach and Mount Azure premium disks to the VMs in the primary region ASCS/ERS VMs.
  • Regularly Copy the NFS share data/files into an azure disk using cronjob script.
  • ASR will be able copy Azure Disk to DR region. Ensure this disk included in the ASR replication.
  • During DR activation, Once the VMs are available, mount the Azure Files NFS from the DR region.
  • Copy the data/files from local disks to Azure Files NFS mount points.

Detailed Steps:

Provided steps as reference by considering SAP SID as T01, ASCS system number as ‘00’ and ERS system number as ‘02’.

In Primary Region

  1. [A] Add azure premium disk to both of VMs of ASCS/ERS cluster and mount the filesystem (e.g. /sapfoldercopy ).
  2. [A] Create folders in the filesystem.

sudo mkdir -p /sapfoldercopy/T01ASCS00

sudo mkdir -p /sapfoldercopy/T01ERS02

sudo mkdir -p /sapfoldercopy/sapmntT01

sudo mkdir -p /sapfoldercopy/trans

sudo mkdir -p /sapfoldercopy/usrsapT01

chown <sid>adm:sapsys /sapfoldercopy/*

  1. [A] Create shell script to copy data from NFS fileshare to local azure disk.

>>vi copy_sap_folders.sh

#!/bin/sh

cp -p -u -R /sapmnt/T01/ /sapfoldercopy/sapmntT01/

cp -p -u -R /usr/sap/trans/ /sapfoldercopy/trans/

cp -p -u -R /usr/sap/T01/ /sapfoldercopy/usrsapT01/

erscount="$(ls -l /usr/sap/T01/ERS02/ | wc -l)"

if [[ $erscount -gt 1 ]]

then

{

        cp -p -R /usr/sap/T01/ERS02/ /sapfoldercopy/T01ERS02/

        mv /sapfoldercopy/T01ASCS00/ASCS00 /sapfoldercopy/T01ASCS00/ASCS00_old

}

fi

ascscount="$(ls -l /usr/sap/T01/ASCS00/ | wc -l)"

if [[ $ascscount -gt 1 ]]

then

{

        cp -p -R /usr/sap/T01/ASCS00/ /sapfoldercopy/T01ASCS00/

        mv /sapfoldercopy/T01ERS02/ERS02 /sapfoldercopy/T01ERS02/ERS02_old

}

fi

Note : comment out copy of ‘sapmnt’, ‘trans’ and ‘usrsapT01’ in one of the VM as contents are same in both the VMs.

  1. [A] Ensure file have right ownership and permissions.

chown <sid>adm:sapsys copy_sap_folders.sh

chmod 755 copy_sap_folders.sh

  1. [A] Schedule the cronjob for use <sid>adm

>>crontab -e 

15,30,45,59 * * * * /home/t01adm/copy_sap_folders.sh

In Secondary Region, during DR activation OR DR testing

  1. [A – DR] Update the /etc/fstab files to mount the Azure Files NFS in the secondary region.

Picture11.jpg

 

>> mount -a

  1. [1-DR]Update the cluster configuration to update the Azure Files location for ASCS00 and ERS02 folders. Details are described in the main section of this document.
  2. [A – DR] Copy the contents from Azure local disk filesystem (/sapfoldercopy) to Azure Files NFS filesystem paths in respective locations.
%3CLINGO-SUB%20id%3D%22lingo-sub-2120369%22%20slang%3D%22en-US%22%3ESAP%20ASCS%20HA%20Cluster%20(in%20Linux%20OS)%20failover%20to%20DR%20region%20using%20Azure%20Site%20Recovery%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2120369%22%20slang%3D%22en-US%22%3E%3CH2%20id%3D%22toc-hId--525176263%22%20id%3D%22toc-hId--525176263%22%3EOverview%3C%2FH2%3E%0A%3CP%3EThis%20blog%20provides%20guidance%20to%20perform%20the%20steps%20during%20the%20failover%20of%20SAP%20ASCS%2FERS%20HA%20VMs%20in%20Linux%20cluster%20to%20the%20DR%20region%20in%20Azure%20using%20ASR.%20We%20will%20have%20details%20of%20changes%20to%20be%20made%20in%20the%20DR%20environment%20to%20re-configure%20the%20pacemaker%20cluster%20to%20start%20the%20ASCS%2FERS%20HA%20environment%20with%20Azure%20Fence%20agent%20as%20STONITH%20device.%20Steps%20cover%20both%20SUSE%20Linux%20and%20RHEL%20OS.%20In%20SUSE%20Pacemaker%20cluster%2C%20we%20can%20also%20use%20SBD%20device%20(in%20place%20of%20Azure%20Fence%20agent)%20for%20fencing%20which%20requires%20additional%20VMs%20and%20its%20DR%20setup%20will%20require%20additional%20changes%20which%20is%20not%20covered%20in%20this%20blog.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CEM%3ENote%20%3A%26nbsp%3BThe%20specific%20procedures%20described%20have%20been%20exercised%20with%20these%20OS%20releases%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3E%E2%80%A2%20OS%20release%20%231%20%3A%20SUSE%20Linux%2012%20SP5%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3E%E2%80%A2%20OS%20release%20%232%20%3A%20RHEL%208.1%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3EPlease%20note%20that%20the%20procedures%20described%20have%20not%20been%20coordinated%20with%20the%20OS%20providers%20and%20therefore%20might%20not%20work%20in%20completeness%26nbsp%3Bwith%20your%20specific%20implementations%20or%20with%20future%20OS%20releases.%20As%20a%20result%20you%20should%20test%20the%20procedures%20described%20thoroughly%20in%20your%20environment.%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%3CEM%3EAlso%20note%20that%20the%20procedure%20as%20described%20works%20only%20with%20Azure%20Fencing%20Agent%20and%20not%20with%20iSCSI%20SBD%20devices.%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-1962336570%22%20id%3D%22toc-hId-1962336570%22%3EDisaster%20Recovery%20Architecture%20for%20SAP%20ASCS%20HA%20Cluster%3C%2FH2%3E%0A%3CP%3EThe%20SAP%20ASCS%2FERS%20HA%20cluster%20design%20in%20the%20primary%20and%20DR%20region%20in%20Azure%20is%20as%20described%20in%20the%20diagram%20and%20can%20be%20used%20as%20reference%20architecture%20for%20SAP%20HA%20%26amp%3B%20DR%20setup%20in%20Azure.%20Highly%20Available%20NFS%20File%20share%20to%20be%20used%20for%20common%20file%20systems%20of%20SAP.%20Azure%20Site%20Recovery%20(ASR)%20is%20recommended%20to%20be%20used%20for%20across%20region%20replication%20of%20the%20VMs%20for%20DR%20setup.%20An%20NFS%20fileshare%20needs%20to%20be%20available%20in%20the%20respective%20region%20for%20starting%20the%20SAP%20ASCS%2FERS%20application%20services%20and%20should%20be%20synchronized%20between%20region%20for%20availability%20of%20latest%20data.%3C%2FP%3E%0A%3CDIV%20id%3D%22tinyMceEditorAnjan%20Banerjee_13%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Picture1.jpg%22%20style%3D%22width%3A%20786px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F254397i9261FC36EA2422F9%2Fimage-dimensions%2F786x314%3Fv%3D1.0%22%20width%3D%22786%22%20height%3D%22314%22%20role%3D%22button%22%20title%3D%22Picture1.jpg%22%20alt%3D%22Picture1.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-154882107%22%20id%3D%22toc-hId-154882107%22%3EPreparations%3C%2FH2%3E%0A%3CUL%20class%3D%22lia-list-style-type-disc%22%3E%0A%3CLI%3E%3CH5%20id%3D%22toc-hId-1546508159%22%20id%3D%22toc-hId-1546508159%22%3EConfigure%20ASR%20for%20both%20the%20nodes%20of%20ASCS%20in%20the%20primary%20region.%3C%2FH5%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3COL%20class%3D%22lia-list-style-type-lower-alpha%22%3E%0A%3CLI%3EDeploy%20the%20Resource%20Group%2C%20VNet%2C%20Subnet%20and%20Recovery%20Vault%20in%20the%20Secondary%20Region.%3C%2FLI%3E%0A%3CLI%3EClick%20on%20the%20%E2%80%98Disaster%20recovery%E2%80%99%20for%20the%20ASCS%2FERS%20VMs.%20Select%20the%20DR%20region%20(e.g.%20West%20US%202).%3C%2FLI%3E%0A%3CLI%3EIn%20advanced%20settings%2C%20Select%20the%20target%20Resource%20Group%2C%20Vnet%2C%20Recovery%20vault%2C%20AV%20Set(if%20needed)%2C%20PPG%20(if%20needed)%20and%20disks%20to%20be%20included.%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Picture2.jpg%22%20style%3D%22width%3A%20521px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F253915iC5E6DC4B9524A4BC%2Fimage-dimensions%2F521x531%3Fv%3D1.0%22%20width%3D%22521%22%20height%3D%22531%22%20role%3D%22button%22%20title%3D%22Picture2.jpg%22%20alt%3D%22Picture2.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3EReview%20the%20settings%20and%20start%20the%20Replication.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CUL%3E%0A%3CLI%3E%3CH5%20id%3D%22toc-hId--260946304%22%20id%3D%22toc-hId--260946304%22%3ECheck%20that%20ASR%20replication%20is%20100%25%20and%20its%20healthy.%3C%2FH5%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Picture3.jpg%22%20style%3D%22width%3A%20292px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F254381i43C6A462F15115A5%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Picture3.jpg%22%20alt%3D%22Picture3.jpg%22%20%2F%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Picture4.jpg%22%20style%3D%22width%3A%20268px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F254382i244804A5AA9E8705%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Picture4.jpg%22%20alt%3D%22Picture4.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CH5%20id%3D%22toc-hId--2068400767%22%20id%3D%22toc-hId--2068400767%22%3EDeploy%20Azure%20ILB%20for%20ASCS%20%26amp%3B%20ERS%20in%20DR%20region.%3C%2FH5%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EDefine%20frontend%20IP%2C%20backend%20pool%2C%20Probe%20port%20and%20loadbalancing%20rules.%20Frontend%20IP%20would%20be%20different%20in%20the%20DR%20region.%20Probe%20port%20can%20be%20same%20as%20primary%20region%20ASCS%2FERS%20cluster.%3C%2FP%3E%0A%3CTABLE%20width%3D%22698%22%3E%0A%3CTBODY%3E%0A%3CTR%3E%0A%3CTD%20width%3D%22162%22%3E%3CP%3EFront-end%20IP%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22150%22%3E%3CP%3EBackend%20Pool%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22144%22%3E%3CP%3EHealth%20probe%20port%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22242%22%3E%3CP%3ELoad%20balancing%20rule%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%22162%22%3E%3CP%3E172.10.0.45%3C%2FP%3E%0A%3CP%3E(ASCS%20Virtual%20IP%20-%20%3CSTRONG%3EHA%3C%2FSTRONG%3E)%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20rowspan%3D%222%22%20width%3D%22150%22%3E%3CP%3Eazshafsascs1%3C%2FP%3E%0A%3CP%3Eand%3C%2FP%3E%0A%3CP%3Eazshafsascs2%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22144%22%3E%3CP%3E64300%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22242%22%3E%3CP%3EEnable%20HA%20Port%2C%3C%2FP%3E%0A%3CP%3EEnable%20Floating%20IP%2C%3C%2FP%3E%0A%3CP%3EIdle%20Timeout%20(30%20Minutes)%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%22162%22%3E%3CP%3E172.10.0.46%3C%2FP%3E%0A%3CP%3E(AERS%20Virtual%20IP%20-%20%3CSTRONG%3EHA%3C%2FSTRONG%3E)%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22144%22%3E%3CP%3E64302%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22242%22%3E%3CP%3EEnable%20HA%20Port%2C%3C%2FP%3E%0A%3CP%3EEnable%20Floating%20IP%2C%3C%2FP%3E%0A%3CP%3EIdle%20Timeout%20(30%20Minutes)%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%22162%22%3E%3CP%3E173.30.0.45%3C%2FP%3E%0A%3CP%3E(ASCS%20Virtual%20IP%20-%20%3CSTRONG%3EDR%3C%2FSTRONG%3E)%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20rowspan%3D%222%22%20width%3D%22150%22%3E%3CP%3Eazshafsascs1-test%3C%2FP%3E%0A%3CP%3Eand%3C%2FP%3E%0A%3CP%3Eazshafsascs2-test%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22144%22%3E%3CP%3E64300%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22242%22%3E%3CP%3EEnable%20HA%20Port%2C%3C%2FP%3E%0A%3CP%3EEnable%20Floating%20IP%2C%3C%2FP%3E%0A%3CP%3EIdle%20Timeout%20(30%20Minutes)%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%22162%22%3E%3CP%3E173.30.0.46%3C%2FP%3E%0A%3CP%3E(AERS%20Virtual%20IP%20-%20%3CSTRONG%3EDR%3C%2FSTRONG%3E)%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22144%22%3E%3CP%3E64302%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22242%22%3E%3CP%3EEnable%20HA%20Port%2C%3C%2FP%3E%0A%3CP%3EEnable%20Floating%20IP%2C%3C%2FP%3E%0A%3CP%3EIdle%20Timeout%20(30%20Minutes)%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3C%2FTBODY%3E%0A%3C%2FTABLE%3E%0A%3CUL%3E%0A%3CLI%3E%3CH5%20id%3D%22toc-hId-419112066%22%20id%3D%22toc-hId-419112066%22%3ENFS%20files%20shares%20synchronization%3C%2FH5%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3ENFS%20Fileshare%20for%20%E2%80%98sapmnt%E2%80%99%2C%20%E2%80%98trans%E2%80%99%20and%20%E2%80%98usr%2Fsap%E2%80%99%20must%20be%20must%20be%20synchronized%20with%20Primary%20Region%20and%20available%2Fmounted%20in%20the%20DR%20region.%20New%20location%2Fpath%20of%20NFS%20files%20needs%20to%20be%20updated%20in%20'%2Fetc%2Ffstab'%20and%20cluster%20configuration%20the%20DR%20ASCS%20VMs.%3C%2FP%3E%0A%3CP%3E%3CEM%3ENote%3A%20One%20of%20the%20options%20for%20NFS%20FileShare%20is%20to%20use%20Azure%20File%20NFS.%20As%20ASR%20can%E2%80%99t%20replicate%20NFS%20sources%2C%20one%20of%20the%20methods%20to%20replicate%20is%20to%20Copy%20the%20data%20to%20locally%20attached%20disk%20in%20the%20ASCS%2FERS%20VMs%20using%20cronjob(for%20frequent%20interval%20copy)%20%26nbsp%3Bso%20that%20ASR%20can%20replicate%20the%20data%20to%20DR%20region.%20%3CU%3EDetailed%20steps%20are%20described%20in%20Appendix%3C%2FU%3E.%3C%2FEM%3E%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--292455616%22%20id%3D%22toc-hId--292455616%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20id%3D%22toc-hId--2099910079%22%20id%3D%22toc-hId--2099910079%22%3EASCS%2FERS%20DR%20Failover%3C%2FH2%3E%0A%3CP%3EThe%20following%20items%20are%20prefixed%20with%20either%20%5BA%20-%20DR%5D%20-%20applicable%20to%20all%20nodes%20of%20DR%20ASCS%2FERS%2C%20%5B1-DR%5D%20-%20only%20applicable%20to%20node%201%20of%20DR%20ASCS%2FERS%20or%20%5B2-DR%5D%20-%20only%20applicable%20to%20node%202%20of%20DR%20ASCS%2FERS%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3EPerform%20the%20%E2%80%98Failover%E2%80%99%20OR%20%E2%80%98Test%20Failover%E2%80%99%20of%20ASCS%2FERS%20Cluster%20VMs%20using%20ASR%20to%20the%20DR%20region.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CDIV%20id%3D%22tinyMceEditorAnjan%20Banerjee_18%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3COL%20start%3D%222%22%3E%0A%3CLI%3E%5BA%20-%20DR%5D%20Update%20the%20IP%20addresses%20of%20the%20VMs%20and%20virtual%20IPs%20either%20in%20AD%2FDNS%20or%20in%20%E2%80%98hosts%E2%80%99%20file.%3C%2FLI%3E%0A%3CLI%3E%5BA%20-%20DR%5D%20Mount%20the%20NFS%20filesystems%20for%20%E2%80%98sapmnt%E2%80%99%2C%20%E2%80%98trans%E2%80%99%20and%20%E2%80%98SYS%E2%80%99.%20Mounting%20process%20depends%20on%20the%20NFS%20Share%20type%20(ANF%20%2F%20Azure%20Files%20NFS(in%20preview%20as%20of%20February%202021)).%3C%2FLI%3E%0A%3CLI%3E%5BA%20%E2%80%93%20DR%5D%20Ensure%20that%20contents%20of%20%E2%80%98sapmnt%E2%80%99%2C%20%E2%80%98trans%E2%80%99%20and%20%E2%80%98SYS%E2%80%99%20filesystems%20are%20synchronized%20from%20Primary%20Region.%3C%2FLI%3E%0A%3CLI%3E%5BA%20-%20DR%5D%20Update%20the%20VMs%20physical%20IP%20addresses%20in%20%2Fetc%2Fcorosync%2Fcorosync.conf%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%20class%3D%22lia-indent-padding-left-60px%22%3Enodelist%20%7B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-60px%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20node%20%7B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20ring0_addr%3A%20%3CSTRONG%3E173.30.0.61%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20nodeid%3A%201%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7D%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20node%20%7B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20ring0_addr%3A%20%3CSTRONG%3E172.30.0.62%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20nodeid%3A%202%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7D%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CEM%3ENote%3A%20This%20step%20is%20only%20required%20in%20SUSE%20Linux.%3C%2FEM%3E%3C%2FP%3E%0A%3COL%20start%3D%226%22%3E%0A%3CLI%3E%5BA%20%E2%80%93%20DR%5D%20Start%20the%20pacemaker%20cluster%20using%20the%20command.%3CUL%3E%0A%3CLI%3EFor%20SUSE%20Linux%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%20class%3D%22lia-indent-padding-left-90px%22%3E%3CEM%3Esystemctl%20start%20pacemaker%3C%2FEM%3E%3C%2FP%3E%0A%3COL%20start%3D%226%22%3E%0A%3CLI%20style%3D%22list-style-type%3A%20none%3B%22%3E%3CUL%3E%0A%3CLI%3EFor%20RHEL%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%20class%3D%22lia-indent-padding-left-90px%22%3E%3CEM%3Epcs%20cluster%20start%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%227%22%3E%0A%3CLI%3E%5BA%20%E2%80%93%20DR%5D%20Keep%20the%20cluster%20in%20maintenance%20mode.%26nbsp%3B%26nbsp%3B%3CUL%3E%0A%3CLI%3EFor%20SUSE%20Linux%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%20class%3D%22lia-indent-padding-left-90px%22%3E%3CEM%3Esudo%20crm%20configure%20property%20maintenance-mode%3D%22true%22%3C%2FEM%3E%3C%2FP%3E%0A%3COL%20start%3D%227%22%3E%0A%3CLI%20style%3D%22list-style-type%3A%20none%3B%22%3E%3CUL%3E%0A%3CLI%3EFor%20RHEL%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%20class%3D%22lia-indent-padding-left-90px%22%3E%3CEM%3Esudo%20pcs%20property%20set%20maintenance-mode%3Dtrue%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-90px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%228%22%3E%0A%3CLI%3E%5B1-DR%5D%20Update%20the%20pacemaker%20configuration%20and%20save%20the%20changes.%26nbsp%3B%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSTRONG%3EFor%20SUSE%20Linux%20%3C%2FSTRONG%3E%3A%20The%20properties%20of%20the%20resources%20can%20be%20changed%20in%20the%20GUI%20tool%20%E2%80%98Hawk%E2%80%99%20(%3CSPAN%3Ehttps%3A%2F%2F%3CHOSTNAME%3E%3A7630%2F%3C%2FHOSTNAME%3E%3C%2FSPAN%3E)%20or%20using%20the%20syntax%20%E2%80%9Ccrm%20configure%20edit%E2%80%9D%20(use%20%E2%80%98vi%E2%80%99%20editor%20commands%20to%20update%20the%20content)%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSTRONG%3EFor%20RHEL%20%3C%2FSTRONG%3E%3A%20The%20properties%20of%20the%20resources%20can%20be%20changed%20using%20the%20%E2%80%98PCSD%20web%20UI%E2%80%99%20(%3CSPAN%3Ehttps%3A%2F%2F%3CHOSTNAME%3E%3A2224%2F%3C%2FHOSTNAME%3E%3C%2FSPAN%3E).%20Once%20you%20start%20the%20pcs%20web%20UI%2C%20click%20on%20%E2%80%98%2BAdd%20Existing%E2%80%99%20and%20enter%20hostname%20of%20the%20cluster%20to%20see%20the%20properties.%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%20class%3D%22lia-indent-padding-left-60px%22%3EFileshare%20location%20of%20%E2%80%98ASCS%E2%80%99%20and%20%E2%80%98ERS%E2%80%99.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Picture6.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F254396i6EFB6A405F0DFB3C%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Picture6.jpg%22%20alt%3D%22Picture6.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%20class%3D%22lia-indent-padding-left-60px%22%3EProbe%20Port%20numbers%20of%20ILB%20for%20ASCS%20and%20ERS%20(if%20different%20probe%20port%20numbers%20are%20used%20in%20Primary%20and%20DR)%3C%2FLI%3E%0A%3CLI%20class%3D%22lia-indent-padding-left-60px%22%3EFrontend%20IP%20(virtual%20IP)%20defined%20in%20ILB%20for%20ASCS%20and%20ERS.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Picture7.jpg%22%20style%3D%22width%3A%20613px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F253930i30F1662AC18B7200%2Fimage-dimensions%2F613x98%3Fv%3D1.0%22%20width%3D%22613%22%20height%3D%2298%22%20role%3D%22button%22%20title%3D%22Picture7.jpg%22%20alt%3D%22Picture7.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CDIV%20id%3D%22tinyMceEditorAnjan%20Banerjee_20%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CUL%3E%0A%3CLI%3EAzure%20Fence%20Agent.%3CUL%20class%3D%22lia-list-style-type-square%22%3E%0A%3CLI%3EWe%20can%20reuse%20the%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-machines%2Fworkloads%2Fsap%2Fhigh-availability-guide-suse-pacemaker%23create-azure-fence-agent-stonith-device%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EAzure%20Fence%20agent%3C%2FA%3E%20API%20created%20for%20ASCS%2FERS%20cluster(in%20the%20primary%20region)%20in%20the%20DR%20region.%20Optionally%2C%20we%20can%20create%20a%20new%20Azure%20Fence%20Agent%20API.%3C%2FLI%3E%0A%3CLI%3EAssign%20the%20custom%20role%20to%20the%20Service%20Principle%20for%20the%20DR%20VMs%20as%20per%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-machines%2Fworkloads%2Fsap%2Fhigh-availability-guide-suse-pacemaker%23a-assign-the-custom-role-to-the-service-principal%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ethe%20link%3C%2FA%3E.%3C%2FLI%3E%0A%3CLI%3EUpdate%20the%20Azure%20Fence%20agent%20details%20(new%20resource%20group)%20in%20the%20cluster%20configuration.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Picture8.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F254386i63E7C2063127D893%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Picture8.jpg%22%20alt%3D%22Picture8.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CEM%3ENote%20%3A%26nbsp%3BAzure%20Fence%20Agent%20requires%20outbound%20connectivity%20to%20public%20end%20points%20as%20documented%2C%20along%20with%20possible%20solutions%2C%20in%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-machines%2Fworkloads%2Fsap%2Fhigh-availability-guide-standard-load-balancer-outbound-connections%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EPublic%20endpoint%20connectivity%20for%20VMs%20using%20standard%20ILB%3C%2FA%3E.%3C%2FEM%3E%3C%2FP%3E%0A%3CDIV%20id%3D%22tinyMceEditorAnjan%20Banerjee_22%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CP%3E%3CEM%3ENote%20%3A%26nbsp%3BWhile%20performing%20%E2%80%98Test%20Failover%E2%80%99%20in%20ASR%2C%20VM%20name%20created%20in%20the%20DR%20Region%20will%20be%20suffixed%20by%20%E2%80%98-test%E2%80%99%20but%20hostname%20at%20operating%20system%20will%20be%20same%20as%20Primary%20Region%20VMs.%20Since%20VM%20name%20doesn%E2%80%99t%20match%20with%20node%20name(hostname)%20in%20the%20cluster%2C%20we%20need%20to%20add%20parameter%20%E2%80%98pcmk_host_map%E2%80%99%20and%20map%20hostname%20%26amp%3B%20VM%20name%20in%20Azure%20Fence%20Agent%20configuration%20in%20the%20pacemaker.%20This%20will%20ensure%20fencing%20of%20the%20VM%20during%20cluster%20testing.%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Picture9.jpg%22%20style%3D%22width%3A%20610px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F253933iCF6F2F63192ADEDE%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Picture9.jpg%22%20alt%3D%22Picture9.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CDIV%20id%3D%22tinyMceEditorAnjan%20Banerjee_23%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3COL%20start%3D%229%22%3E%0A%3CLI%3E%5BA%20%E2%80%93%20DR%5D%20Ensure%20that%20%E2%80%98ASCS%3CNR%3E%E2%80%99%20and%20%E2%80%98ERS%3CNR%3E%E2%80%99%20filesystems%20contents%20are%20synchronized%20with%20the%20data%20from%20Primary%20region.%3C%2FNR%3E%3C%2FNR%3E%3C%2FLI%3E%0A%3CLI%3E%5B1-DR%5D%20Remove%20the%20maintenance%20mode%20and%20cleanup%20cluster%20resources%20(if%20required).%3CUL%3E%0A%3CLI%3EFor%20SUSE%20Linux%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%20class%3D%22lia-indent-padding-left-90px%22%3E%3CEM%20style%3D%22font-family%3A%20inherit%3B%22%3Esudo%20crm%20configure%20property%20maintenance-mode%3D%22false%22%3C%2FEM%3E%3C%2FP%3E%0A%3COL%20start%3D%229%22%3E%0A%3CLI%20style%3D%22list-style-type%3A%20none%3B%22%3E%3CUL%3E%0A%3CLI%3EFor%20RHEL%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%20class%3D%22lia-indent-padding-left-90px%22%3E%3CEM%20style%3D%22font-family%3A%20inherit%3B%22%3Esudo%20pcs%20property%20set%20maintenance-mode%3Dfalse%3C%2FEM%3E%3C%2FP%3E%0A%3COL%20start%3D%2211%22%3E%0A%3CLI%3ECheck%20the%20cluster%20status.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22Picture10.jpg%22%20style%3D%22width%3A%20341px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F254390i0B51563CF712F78A%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Picture10.jpg%22%20alt%3D%22Picture10.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%2212%22%3E%0A%3CLI%3EContinue%20with%20the%20DR%20activation%20tasks%20for%20DB%20and%20application%20servers.%3C%2FLI%3E%0A%3CLI%3EPerform%20the%20DR%20validation%20tasks%20and%20cluster%20testing%20in%20the%20DR%20environment.%3C%2FLI%3E%0A%3CLI%3EOnce%20DR%20test%20is%20completed%2C%20%E2%80%98Cleanup%20test%20failover%E2%80%99%20in%20ASR%20for%20both%20ASCS%2FERS%20VMs.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH1%20id%3D%22toc-hId--2110413183%22%20id%3D%22toc-hId--2110413183%22%3EAppendix%3C%2FH1%3E%0A%3CP%3EThis%20section%20describes%20steps%20to%20synchronize%20Azure%20Files%20NFS%20between%20primary%20and%20secondary%20region.%20This%20method%20of%20synchronization%20is%20one%20of%20the%20several%20possible%20ways%20to%20achieve%20data%20synchronization.%3C%2FP%3E%0A%3CP%3ETo%20setup%20ASCS%2FERS%20cluster%20with%20Azure%20Files%20NFS(in%20public%20preview%20as%20of%20February%202021)%2C%20please%20refer%20to%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Frunning-sap-applications-on-the%2Fdeploy-sap-ascs-ers-with-azure-files-nfs-v4-1-shares%2Fba-p%2F2038320%22%20target%3D%22_blank%22%3Ethe%20blog%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EHigh%20level%20steps%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EAttach%20and%20Mount%20Azure%20premium%20disks%20to%20the%20VMs%20in%20the%20primary%20region%20ASCS%2FERS%20VMs.%3C%2FLI%3E%0A%3CLI%3ERegularly%20Copy%20the%20NFS%20share%20data%2Ffiles%20into%20an%20azure%20disk%20using%20cronjob%20script.%3C%2FLI%3E%0A%3CLI%3EASR%20will%20be%20able%20copy%20Azure%20Disk%20to%20DR%20region.%20Ensure%20this%20disk%20included%20in%20the%20ASR%20replication.%3C%2FLI%3E%0A%3CLI%3EDuring%20DR%20activation%2C%20Once%20the%20VMs%20are%20available%2C%20mount%20the%20Azure%20Files%20NFS%20from%20the%20DR%20region.%3C%2FLI%3E%0A%3CLI%3ECopy%20the%20data%2Ffiles%20from%20local%20disks%20to%20Azure%20Files%20NFS%20mount%20points.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSTRONG%3EDetailed%20Steps%3A%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EProvided%20steps%20as%20reference%20by%20considering%20SAP%20SID%20as%20T01%2C%20ASCS%20system%20number%20as%20%E2%80%9800%E2%80%99%20and%20ERS%20system%20number%20as%20%E2%80%9802%E2%80%99.%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EIn%20Primary%20Region%3C%2FSTRONG%3E%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3E%5BA%5D%20Add%20azure%20premium%20disk%20to%20both%20of%20VMs%20of%20ASCS%2FERS%20cluster%20and%20mount%20the%20filesystem%20(e.g.%20%2Fsapfoldercopy%20).%3C%2FLI%3E%0A%3CLI%3E%5BA%5D%20Create%20folders%20in%20the%20filesystem.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%20class%3D%22lia-indent-padding-left-60px%22%3E%3CEM%3Esudo%20mkdir%20-p%20%2Fsapfoldercopy%2FT01ASCS00%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-60px%22%3E%3CEM%3Esudo%20mkdir%20-p%20%2Fsapfoldercopy%2FT01ERS02%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-60px%22%3E%3CEM%3Esudo%20mkdir%20-p%20%2Fsapfoldercopy%2FsapmntT01%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-60px%22%3E%3CEM%3Esudo%20mkdir%20-p%20%2Fsapfoldercopy%2Ftrans%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-60px%22%3E%3CEM%3Esudo%20mkdir%20-p%20%2Fsapfoldercopy%2FusrsapT01%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-60px%22%3E%3CEM%3Echown%20%3CSID%3Eadm%3Asapsys%20%2Fsapfoldercopy%2F*%3C%2FSID%3E%3C%2FEM%3E%3C%2FP%3E%0A%3COL%20start%3D%223%22%3E%0A%3CLI%3E%5BA%5D%20Create%20shell%20script%20to%20copy%20data%20from%20NFS%20fileshare%20to%20local%20azure%20disk.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%20class%3D%22lia-indent-padding-left-60px%22%3E%3CEM%3E%26gt%3B%26gt%3Bvi%20copy_sap_folders.sh%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-60px%22%3E%3CEM%3E%23!%2Fbin%2Fsh%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-60px%22%3E%3CEM%3Ecp%20-p%20-u%20-R%20%2Fsapmnt%2FT01%2F%20%2Fsapfoldercopy%2FsapmntT01%2F%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-60px%22%3E%3CEM%3Ecp%20-p%20-u%20-R%20%2Fusr%2Fsap%2Ftrans%2F%20%2Fsapfoldercopy%2Ftrans%2F%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-60px%22%3E%3CEM%3Ecp%20-p%20-u%20-R%20%2Fusr%2Fsap%2FT01%2F%20%2Fsapfoldercopy%2FusrsapT01%2F%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-60px%22%3E%3CEM%3Eerscount%3D%22%24(ls%20-l%20%2Fusr%2Fsap%2FT01%2FERS02%2F%20%7C%20wc%20-l)%22%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-60px%22%3E%3CEM%3Eif%20%5B%5B%20%24erscount%20-gt%201%20%5D%5D%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-60px%22%3E%3CEM%3Ethen%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-60px%22%3E%3CEM%3E%7B%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-60px%22%3E%3CEM%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20cp%20-p%20-R%20%2Fusr%2Fsap%2FT01%2FERS02%2F%20%2Fsapfoldercopy%2FT01ERS02%2F%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-60px%22%3E%3CEM%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20mv%20%2Fsapfoldercopy%2FT01ASCS00%2FASCS00%20%2Fsapfoldercopy%2FT01ASCS00%2FASCS00_old%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-60px%22%3E%3CEM%3E%7D%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-60px%22%3E%3CEM%3Efi%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-60px%22%3E%3CEM%3Eascscount%3D%22%24(ls%20-l%20%2Fusr%2Fsap%2FT01%2FASCS00%2F%20%7C%20wc%20-l)%22%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-60px%22%3E%3CEM%3Eif%20%5B%5B%20%24ascscount%20-gt%201%20%5D%5D%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-60px%22%3E%3CEM%3Ethen%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-60px%22%3E%3CEM%3E%7B%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-60px%22%3E%3CEM%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20cp%20-p%20-R%20%2Fusr%2Fsap%2FT01%2FASCS00%2F%20%2Fsapfoldercopy%2FT01ASCS00%2F%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-60px%22%3E%3CEM%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20mv%20%2Fsapfoldercopy%2FT01ERS02%2FERS02%20%2Fsapfoldercopy%2FT01ERS02%2FERS02_old%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-60px%22%3E%3CEM%3E%7D%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-60px%22%3E%3CEM%3Efi%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%3CEM%3ENote%20%3A%20comment%20out%20copy%20of%20%E2%80%98sapmnt%E2%80%99%2C%20%E2%80%98trans%E2%80%99%20and%20%E2%80%98usrsapT01%E2%80%99%20in%20one%20of%20the%20VM%20as%20contents%20are%20same%20in%20both%20the%20VMs.%3C%2FEM%3E%3C%2FP%3E%0A%3COL%20start%3D%224%22%3E%0A%3CLI%3E%5BA%5D%20Ensure%20file%20have%20right%20ownership%20and%20permissions.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%20class%3D%22lia-indent-padding-left-60px%22%3E%3CEM%3Echown%20%3CSID%3Eadm%3Asapsys%20copy_sap_folders.sh%3C%2FSID%3E%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-60px%22%3E%3CEM%3Echmod%20755%20copy_sap_folders.sh%3C%2FEM%3E%3C%2FP%3E%0A%3COL%20start%3D%225%22%3E%0A%3CLI%3E%5BA%5D%20Schedule%20the%20cronjob%20for%20use%20%3CSID%3Eadm%3C%2FSID%3E%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%20class%3D%22lia-indent-padding-left-60px%22%3E%3CEM%3E%26gt%3B%26gt%3Bcrontab%20-e%26nbsp%3B%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-60px%22%3E%3CEM%3E15%2C30%2C45%2C59%20*%20*%20*%20*%20%2Fhome%2Ft01adm%2Fcopy_sap_folders.sh%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3EIn%20Secondary%20Region%2C%20during%20DR%20activation%20OR%20DR%20testing%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3E%5BA%20%E2%80%93%20DR%5D%20Update%20the%20%2Fetc%2Ffstab%20files%20to%20mount%20the%20Azure%20Files%20NFS%20in%20the%20secondary%20region.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22Picture11.jpg%22%20style%3D%22width%3A%20652px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F254393i5F8B2B26E947A823%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Picture11.jpg%22%20alt%3D%22Picture11.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-60px%22%3E%3CEM%20style%3D%22font-family%3A%20inherit%3B%22%3E%26gt%3B%26gt%3B%20mount%20-a%3C%2FEM%3E%3C%2FP%3E%0A%3COL%20start%3D%222%22%3E%0A%3CLI%3E%5B1-DR%5DUpdate%20the%20cluster%20configuration%20to%20update%20the%20Azure%20Files%20location%20for%20ASCS00%20and%20ERS02%20folders.%20Details%20are%20described%20in%20the%20main%20section%20of%20this%20document.%3C%2FLI%3E%0A%3CLI%3E%5BA%20%E2%80%93%20DR%5D%20Copy%20the%20contents%20from%20Azure%20local%20disk%20filesystem%20(%2Fsapfoldercopy)%20to%20Azure%20Files%20NFS%20filesystem%20paths%20in%20respective%20locations.%3C%2FLI%3E%0A%3C%2FOL%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-2120369%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-left%22%20image-alt%3D%22Picture6.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F254384iCB50E5F4B029DF42%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Picture6.jpg%22%20alt%3D%22Picture6.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20blog%20provides%20guidance%20to%20perform%20the%20steps%20during%20the%20failover%20of%20SAP%20ASCS%2FERS%20HA%20VMs%20in%20Linux%20cluster%20to%20the%20DR%20region%20in%20Azure%20using%20ASR.%20We%20will%20have%20details%20of%20changes%20to%20be%20made%20in%20the%20DR%20environment%20to%20re-configure%20the%20pacemaker%20cluster%20to%20start%20the%20ASCS%2FERS%20HA%20environment%20with%20Azure%20Fence%20agent%20as%20STONITH%20device.%20Steps%20cover%20both%20SUSE%20Linux%20and%20RHEL%20OS.%3C%2FP%3E%3C%2FLINGO-TEASER%3E
Co-Authors
Version history
Last update:
‎Feb 26 2021 10:16 AM
Updated by: