Friday, 31 May 2024

Disaster Recovery with Azure NetApp Files (ANF) and Azure VMware Solution (AVS)

 

Disaster Recovery with Azure NetApp Files (ANF) and Azure VMware Solution (AVS)

Overview

With Azure NetApp files (ANF) cross-region volume replication, VMware workloads running on an Azure VMware Solution (AVS) SDDC site using Azure NetApp files volumes as an NFS datastore on the primary AVS site can be replicated to a designated secondary AVS site in the target recovery region.

Disaster Recovery Orchestrator (DRO) (a scripted solution with a UI) can be used to seamlessly recover workloads replicated from one AVS SDDC to another. DRO automates recovery by breaking replication peering and then mounting the destination volume as a datastore, through VM registration to AVS, to network mappings directly on NSX-T (included with all AVS private clouds).

Error: Missing Graphic Image

Prerequisites and general recommendations

  • Verify that you have enabled cross-region replication by creating replication peering. See Create volume replication for Azure NetApp Files.

  • You must configure ExpressRoute Global Reach between the source and target Azure VMware Solution private clouds.

  • You must have a service principal that can access resources.

  • The following topology is supported: primary AVS site to secondary AVS site.

  • Configure the replication schedule for each volume appropriately based on business needs and the data- change rate.


Getting started

Deploy Azure VMware Solution

The Azure VMware Solution (AVS) is a hybrid cloud service that provides fully functional VMware SDDCs within a Microsoft Azure public cloud. AVS is a first-party solution fully managed and supported by Microsoft and verified by VMware that uses Azure infrastructure. Therefore, customers get VMware ESXi for compute virtualization, vSAN for hyper-converged storage, and NSX for networking and security, all while taking advantage of Microsoft Azure’s global presence, class-leading data- center facilities, and proximity to the rich ecosystem of native Azure services and solutions. A combination of Azure VMware Solution SDDC and Azure NetApp Files provides the best performance with minimal network latency.

To configure an AVS private cloud on Azure, follow the steps in this link for NetApp documentation and in this link for Microsoft documentation. A pilot- light environment set up with a minimal configuration can be used for DR purposes. This setup only contains core components to support critical applications, and it can scale out and spawn more hosts to take the bulk of the load if a failover occurs.


Provision and configure Azure NetApp Files

Azure NetApp Files is a high-performance, enterprise-class, metered file- storage service. Follow the steps in this link to provision and configure Azure NetApp Files as a NFS datastore to optimize AVS private cloud deployments.

Create volume replication for Azure NetApp Files-powered datastore volumes

The first step is to set up cross- region replication for the desired datastore volumes from the AVS primary site to the AVS secondary site with the appropriate frequencies and retentions.

Error: Missing Graphic Image

Follow the steps in this link to set up cross-region replication by creating replication peering. The service level for the destination capacity pool can match that of the source capacity pool. However, for this specific use case, you can select the standard service level and then modify the service level in the event of a real disaster or DR simulations.


DRO installation

To get started with DRO, use the Ubuntu operating system on the designated Azure virtual machine and make sure you meet the prerequisites. Then install the package.

Prerequisites:

  • Service principal that can access resources.

  • Make sure that appropriate connectivity exists to the source and destination SDDC and Azure NetApp Files instances.

  • DNS resolution should be in place if you are using DNS names. Otherwise, use IP addresses for vCenter.

OS requirements:

  • Ubuntu Focal 20.04 (LTS)The following packages must be installed on the designated agent virtual machine:

  • Docker

  • Docker- compose

  • JqChange docker.sock to this new permission: sudo chmod 666 /var/run/docker.sock.


The steps are as follows:

  1. Download the installation package on the designated virtual machine:

    git clone https://github.com/NetApp/DRO-Azure.git

  2. Unzip the package, run the deployment script, and enter the host IP (for example, 10.10.10.10).

    tar xvf draas_package.tar
    Navigate to the directory and run the deploy script as below:
    sudo sh deploy.sh
  3. Access the UI using the following credentials:

    • Username: admin

    • Password: admin

      Error: Missing Graphic Image

DRO configuration

After Azure NetApp Files and AVS have been configured properly, you can begin configuring DRO to automate the recovery of workloads from the primary AVS site to the secondary AVS site. NetApp recommends deploying the DRO agent in the secondary AVS site and configuring the ExpressRoute gateway connection so that the DRO agent can communicate via the network with the appropriate AVS and Azure NetApp Files components.

The first step is to Add credentials. DRO requires permission to discover Azure NetApp Files and the Azure VMware Solution. You can grant the required permissions to an Azure account by creating and setting up an Azure Active Directory (AD) application and by obtaining the Azure credentials that DRO needs. You must bind the service principal to your Azure subscription and assign it a custom role that has the relevant required permissions. When you add source and destination environments, you are prompted to select the credentials associated with the service principal. You need to add these credentials to DRO before you can click Add New Site.

To perform this operation, complete the following steps:

  1. Open DRO in a supported browser and use the default username and password (admin/admin). The password can be reset after the first login using the Change Password option.

  2. In the upper right of the DRO console, click the Settings icon, and select Credentials.

  3. Click Add New Credential and follow the steps in the wizard.

  4. To define the credentials, enter information about the Azure Active Directory service principal that grants the required permissions:

    • Credential name

    • Tenant ID

    • Client ID

    • Client secret

    • Subscription ID

      You should have captured this information when you created the AD application.

  5. Confirm the details about the new credentials and click Add Credential.

    Error: Missing Graphic Image

    After you add the credentials, it’s time to discover and add the primary and secondary AVS sites (both vCenter and the Azure NetApp files storage account) to DRO. To add the source and destination site, complete the following steps:

  6. Go to the Discover tab.

  7. Click Add New Site.

  8. Add the following primary AVS site (designated as Source in the console).

    • SDDC vCenter

    • Azure NetApp Files storage account

  9. Add the following secondary AVS site (designated as Destination in the console).

    • SDDC vCenter

    • Azure NetApp Files storage account

      Error: Missing Graphic Image

  10. Add site details by clicking Source, entering a friendly site name, and select the connector. Then click Continue.


  11. Update the vCenter details. To do this, select the credentials, Azure region, and resource group from the dropdown for the primary AVS SDDC.

  12. DRO lists all the available SDDCs within the region. Select the designated private cloud URL from the dropdown.

  13. Enter the cloudadmin@vsphere.local user credentials. This can be accessed from Azure Portal. Follow the steps mentioned in this link. Once done, click Continue.

    Error: Missing Graphic Image

  14. Select the Source Storge details (ANF) by selecting the Azure Resource group and NetApp account.

  15. Click Create Site.

    Error: Missing Graphic Image

Once added, DRO performs automatic discovery and displays the VMs that have corresponding cross- region replicas from the source site to the destination site. DRO automatically detects the networks and segments used by the VMs and populates them.

Error: Missing Graphic Image

The next step is to group the required VMs into their functional groups as resource groups.

Resource groupings

After the platforms have been added, group the VMs you want to recover into resource groups. DRO resource groups allow you to group a set of dependent VMs into logical groups that contain their boot orders, boot delays, and optional application validations that can be executed upon recovery.

To start creating resource groups, click the Create New Resource Group menu item.

  1. Access Resource Grou*ps and click *Create New Resource Group.

    Error: Missing Graphic Image

  2. Under New Resource Group, select the source site from the dropdown and click Create.

  3. Provide the resource group details and click Continue.

  4. Select appropriate VMs using the search option.

  5. Select the Boot Order and Boot Delay (secs) for all the selected VMs. Set the order of the power- on sequence by selecting each virtual machine and setting up the priority for it. The default value for all virtual machines is 3. The options are as follows:

    • The first virtual machine to power on

    • Default

    • The last virtual machine to power on

      Error: Missing Graphic Image

  6. Click Create Resource Group.

    Error: Missing Graphic Image

Replication plans

You must have a plan to recover applications in the event of a disaster. Select the source and destination vCenter platforms from the drop down, pick the resource groups to be included in this plan, and also include the grouping of how applications should be restored and powered on (for example, domain controllers, tier-1, tier-2, and so on). Plans are often called blueprints as well. To define the recovery plan, navigate to the Replication Plan tab, and click New Replication Plan.

To start creating a replication plan, complete the following steps:

  1. Navigate to Replication Plans and click Create New Replication Plan.

    Error: Missing Graphic Image

  2. On the New Replication Plan, provide a name for the plan and add recovery mappings by selecting the Source Site, associated vCenter, Destination Site, and associated vCenter.

    Error: Missing Graphic Image

  3. After recovery mapping is complete, select the Cluster Mapping.

    Error: Missing Graphic Image

  4. Select Resource Group Details and click Continue.

  5. Set the execution order for the resource group. This option enables you to select the sequence of operations when multiple resource groups exist.

  6. Once done, set network mapping to the appropriate segment. The segments should already be provisioned on the secondary AVS cluster, and, to map the VMs to those, select the appropriate segment.

  7. Datastore mappings are automatically selected based on the selection of VMs.


    Error: Missing Graphic Image

  8. Under VM details, you can optionally resize the VMs CPU and RAM parameters. This can be very helpful when you are recovering large environments to smaller target clusters or when you are conducting DR tests without having to provision a one-to-one physical VMware infrastructure. Also, modify the boot order and boot delay (secs) for all the selected VMs across the resource groups. There is an additional option to modify the boot order if any changes are required from what you selected during resource- group boot- order selection. By default, the boot order selected during resource- group selection is used, however any modifications can be performed at this stage.

    Error: Missing Graphic Image

  9. Click Create Replication Plan.After the replication plan is created, you can exercise the failover, test failover, or migrate options depending on your requirements.

    Error: Missing Graphic Image

During the failover and test failover options, the most recent snapshot is used, or a specific snapshot can be selected from a point-in-time snapshot. The point-in-time option can be very beneficial if you are facing a corruption event like ransomware, where the most recent replicas are already compromised or encrypted. DRO shows all available time points.

Error: Missing Graphic Image

To trigger failover or test failover with the configuration specified in the replication plan, you can click Failover or Test Failover. You can monitor the replication plan in the task menu.

Error: Missing Graphic Image

After failover is triggered, the recovered items can be seen in the secondary site AVS SDDC vCenter (VMs, networks, and datastores). By default, the VMs are recovered to Workload folder.

Error: Missing Graphic Image

Failback can be triggered at the replication plan level. In case of test failover, the tear down option can be used to roll back the changes and remove the newly created volume. Failbacks related to failover are a two- step process. Select the replication plan and select Reverse Data sync.

Error: Missing Graphic Image

After this step is complete, trigger failback to move back to the primary AVS site.

Error: Missing Graphic Image

Error: Missing Graphic Image

From the Azure portal, we can see that the replication health has been broken off for the appropriate volumes that were mapped to the secondary site AVS SDDC as read/write volumes. During test failover, DRO does not map the destination or replica volume. Instead, it creates a new volume of the required cross- region replication snapshot and exposes the volume as a datastore, which consumes additional physical capacity from the capacity pool and ensures that the source volume is not modified. Notably, replication jobs can continue during DR tests or triage workflows. Additionally, this process makes sure that the recovery can be cleaned up without the risk of the replica being destroyed if errors occur or corrupted data is recovered.

Microsoft Azure Storage Account: A Comprehensive Guide


Microsoft Azure Storage Account: A Comprehensive Guide

    1. What is an Azure storage account?

    Storage account in Azure is a method of creating a storage service for storing data in it. It contains all the Azure storage objects decided into a single resource group. It contains Blob, queue, tables, and files with disk images. It uniquely provides namespace and service access to functions of storage.

    It is durable, highly available, and scalable. By using Azure storage account services, we don’t need to worry about space because it will be scaled upon our demand. The Azure storage account is a container that groups a set of Azure storage services together. Only data services from Azure storage can be included in a storage account.

    image

    2. Storage Account types

    Storage type defines the methodology for storing data in Azure infrastructure. it gives the solution to the question of what type and how to store data in Azure.

    There are two groups of storage accounts:

    A) Accessible via REST API: Queue, table, Blob
    B) Designed for Microsoft Azure Virtual machines: File storage, Disk storage

     

    3. Azure Storage Services

    The basis of a Microsoft Azure storage account is, of course, the storage type you need to choose. The type is defining how you store what and which options and features you can use. There are five storage types in Microsoft Azure and they can be divided into two groups by their design.

    A) Azure Blob Storage

    Azure Blob Storage is a Microsoft Azure cloud-based object storage solution. It is intended to store and manage unstructured data at scale, such as text or binary data such as photos, videos, documents, and other file formats.

    1. It is an object storage solution in Azure.
    2. It is used to store unstructured data.
    3. This is ideal when you have storage solutions for files, videos, log files, and images
    4. It has different tier levels:
      1. Hot storage tier: It is ideal for objects that are accessed frequently
      2. Cool storage tier: It is optimized for data that are infrequently accessed. This is a less expensive option than the hot storage tier
      3. Achieve storage tier: It is optimized for data that is rarely accessed. Mostly used for archiving or backup data. It is the least expensive service

    Azure Blob Storage

    B) Azure Table Storage

    Microsoft Azure Table Storage was made to store structured NoSQL data. The storage is very scalable and, at the same time, very cheap to keep data in. However, it set off more expensive when you access files frequently.

    1. It is used for storing structured NoSQL data
    2. It is a key attribute store
    3. It is a cost-effective option for the storage of table-like data for applications

    Instead of using SQL database to store data, you can use Azure table storage in a more cost-effective manner

    Table Storage

    C) Azure File Storage

    Microsoft Azure File storage is a type of Azure service that was designed to support the needs of the Azure VM environment. That storage is, in essence, a network share. You can store files there that can be accessed from different Virtual Machines. It is similar to Amazon EFS and is its direct competitor.

    1. It allows for the retrieval of files via the server message block protocol
    2. Using file storage, you can mount file shares on Windows, Linux, and Mac-based machines
    3. Here you don’t need to manage file servers

    Azure File storage

    D) Azure Queue Storage

    Queue Storage is a type of storage that is built to connect components of your application. It allows you to build flexible applications with decoupled and independent components that rely on asynchronous message queuing.

    1. This service used for the storage and retrieval of messages
    2. This service is good when you want to decouple components of an application
    3. A single message in the queue can be up to 64kb in size
    4. You can store millions of messages in the queue

    4. Storage of virtual images

    It is similar to OS Images, a VM Image is a collection of metadata and pointers to a set of VHDs (one VHD per disk) stored as page blobs in Azure Storage. This includes disk and files. Files are fully managed by using file share in the cloud

    A) Unstructured data

    This includes blob and data lake storage. Blobs are highly scalable. Data Lake is a Hadoop-distributed file system as a service. Unstructured data is different than structured data in that its structure is unpredictable. Documents, e-mails, blogs, digital images, videos, and satellite imagery all are examples of unstructured data. It also includes some data generated by machines or sensors.

    B) Structured data

    Cosmos DB, Azure SQL DB, and Tables all handle structured data. Tables are key-value auto-scaling no value store, Cosmos DB is a globally distributed database service and Azure SQL DB is a fully-managed database as a service that is built on SQL. Structured data is referred to data that has a defined length and format for big data. Numbers, dates, and groups of words all are examples of structured data

    5. Performance Tiers In Storage Account

    A) Standard

    Standard storage is backed by magnetic hard drives like HDD and provides the lowest cost per GB. These are best for applications that required a bulk of data storage where data is accessed infrequently because read-write speeds are less as compared to premium.

    B) Premium

    Premium storage accounts are powered with SSD (Solid-state drives) and offer low latency performance. These are mostly used with high-end systems and high-intensity applications like databases. You can not switch from a standard storage account to a premium storage account, you must create a new storage account with premium or standard base on your requirement and then copy the data

    6. Create a storage account

    Step 1) In the Azure portal, search for and select Storage accounts. (Please make sure you have a subscription before doing all this. If you created a free account for the first time, you’ll already have a FREE TRIAL subscription for 1 month).

    Note: If you don’t know how to get free Azure account then click on Azure Free Trial Account to know more

    Azure storage on portal

    Azure storage searchStep 2) Now, click on Add. Then select your subscription and then select the resource group where you want to create this storage account. Enter the name and location of your storage account. Then, select account kind, replication, and Access Tier. Now, hit Review+Create.

    storage accounts

    Azure storage basics tab

    Step 3) Now, wait for the validation to be successful and then click on Create. Resource deployment will take place. Once done, you’ll receive a notification. Then click on Go to Resource to go to the newly created Storage Account.

    Azure storage validationstorage account deployment

    7. Delete a storage account

    Deletion of the Storage Account is much easier than creation, Follow the below steps to delete a storage account

    Step 1) Click on Storage Accounts or you can again search it if you are not able to find it.

    storage account creation

    Step 2) Now let’s choose the storage account which we want to delete, in this I am choosing test account

    storage accounts step 2

    Step 3) Now you can see a new window appears with storage options, here click on the Delete option (Check below image for reference)

    storage account overview

    Step 4) To complete the deletion process we have to do confirmation and for that, you have to type the name of our storage account in the empty box and then click on the Delete button

    storage account deletionStep 5) Now it’s done in a few seconds you will see a notification under Notifications that your resource is successfully deleted storage account message