An Azure native disaster recovery service. Previously known as Microsoft Azure Hyper-V Recovery Manager.
Hello @Penumarthi Dora Krishna@Penumarthi Dora Krishna Thank you for posting your query on Microsoft Q&A platform.
- ASR is OS‑level replication, not application‑aware for DB2.
- DB2 consistency is achieved by crash‑consistent or file‑system–consistent recovery points.
- DB2 does NOT need any special plugin for ASR.
- Recommended: Combine ASR with DB2 native backups / HADR for strict RPO/RTO.
STEP 1: Verify Prerequisites (CRITICAL)
1.1 Supported OS
- RHEL 8.x is supported for Physical Server → Azure replication.
1.2 Disk & File System
- No unsupported disk formats
- LVM and XFS are supported
- No custom kernel (must use Red Hat stock kernel)
1.3 Network
Allow outbound HTTPS (443) from on‑prem server to Azure:
-
*.blob.core.windows.net -
*.hypervrecoverymanager.windowsazure.com -
login.microsoftonline.com -
*.servicebus.windows.net
STEP 2: Prepare Azure Environment:
2.1 Create Recovery Services Vault
Azure Portal →
- Create Resource
- Backup and Site Recovery
- Choose same region where DR VM will be created
2.2 Create Azure VNet
- Create VNet + Subnet
- Used by failed‑over DB2 VM
2.3 Assign Required Roles
User enabling replication must have:
- Virtual Machine Contributor
- Site Recovery Contributor
STEP 3: Deploy Configuration Server (On‑prem): Required for physical server replication
3.1 Download Configuration Server
Recovery Services Vault → Site Recovery → Prepare Infrastructure
3.2 Install Configuration Server
- Deploy on a dedicated Windows Server
- Register with Recovery Services Vault
- This also acts as Process Server
STEP 4: Install Mobility Service on DB2 RHEL Server
4.1 Download RHEL 8 Mobility Agent
From Configuration Server repository:
Microsoft-ASR_UA_version_OL8-64_GA_release.tar.gz
4.2 Install Agent on RHEL:
tar -xvf Microsoft-ASR_UA_*.tar.gz
sudo ./install
- Provide Configuration Server IP
- Enter passphrase
- Confirm service is running
STEP 5: Enable Replication
Azure Portal → Recovery Services Vault → Site Recovery → Enable Replication
5.1 Source
- Source type: Physical
- Configuration Server: Select deployed server
5.2 Target
- Target: Azure
- Subscription, Resource Group
- VNet, Subnet
- VM size (match DB2 workload)
5.3 Replication Policy
- Frequency: Continuous
- Retention: Based on RPO
5.4 Disk Selection
- Include:
- OS disk
- DB2 data disks
- Log disks
ASR replicates block‑level changes
STEP 6: DB2‑Specific Best Practices (MANDATORY)
6.1 Put DB2 in Backup Mode (Recommended)
Before first sync:
db2 force applications all
db2 backup db <DBNAME> online
Reason:
- Ensures clean crash‑consistent state
6.2 Disable DB2 Autostart on Boot
systemctl disable db2
Prevent DB2 from auto‑starting during test failover.
STEP 7: Test Failover (NO IMPACT)
Azure Portal → Recovery Services Vault → Replicated Items → Test Failover
- Choose latest recovery point
- Select test VNet
Validate on Azure VM
lsblk
mount | grep db2
db2start
DB2 should start successfully
STEP 8: Planned / Unplanned Failover
Planned
- Shutdown DB2 cleanly
- Trigger Planned Failover
Unplanned
- Trigger Failover
- DB2 recovery will run automatically
STEP 9: Post‑Failover Actions
- Update DB2 hostname references
- Update licensing if required
- Validate application connectivity
Recommended Enhancements
- Use DB2 native backups to Azure Blob
- For near‑zero RPO → DB2 HADR + ASR
- Use Recovery Plans for automation
Please have a look into below references:
- Physical Server → Azure DR https://dori-uw-1.kuma-moon.com/azure/site-recovery/physical-azure-disaster-recovery
- Mobility Service (Linux) https://dori-uw-1.kuma-moon.com/azure/site-recovery/vmware-physical-mobility-service-overview
- Failover Process https://dori-uw-1.kuma-moon.com/azure/site-recovery/site-recovery-failover
Azure Site Recovery officially supports DR of on‑premises RHEL 8.x servers (including DB2 workloads) to Azure. ASR works at the OS and disk level and does not provide DB2‑specific application‑consistent recovery points.
Thanks,
Suchitra.