How to sync managed disks in 2 different VM's in different regions

Venkata Sai Kalyan 0 Reputation points
2023-02-01T05:33:36.52+00:00

Hi Team,

We had 2 Azure VM's 1 in southeast Asia and 2nd in east US. we had attached 500GB data disk in each VM we need to create synchronization between 2 disks in VM's, please suggest if there are any options to achieve this scenario. If any azure solutions are available.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
6,770 questions
Azure Disk Storage
Azure Disk Storage
A high-performance, durable block storage designed to be used with Azure Virtual Machines and Azure VMware Solution.
545 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Umang Middha 540 Reputation points
    2023-02-01T14:55:32.64+00:00

    Hello Venkata,

    Hope you are doing well today. To synchronize managed disks between two different virtual machines (VMs) in different regions in Azure, you can use Azure Global VNet Peering or Azure File Sync service.

    1. Azure Global VNet Peering: It allows you to connect virtual networks across Azure regions, enabling communication between VMs in different regions as if they were in the same virtual network. Once the virtual networks are peered, you can use managed disks as a shared disk between VMs in different regions.
    2. Azure File Sync: It is a service that allows you to centralize file shares in Azure Files, while keeping the flexibility, performance, and compatibility of an on-premises file server. You can use Azure File Sync to synchronize data between file shares in multiple locations, including between different Azure regions.

    Note: Both of these solutions require careful planning and implementation, and the choice between the two will depend on your specific use case and requirements.

    Please don't forget to mark this as an answer.

    Regards,
    Umang Middha


  2. Umang Middha 540 Reputation points
    2023-02-01T15:02:22.3966667+00:00

    Hello Venkata,

    Hope you are doing well today. To mount an attached disk in Azure which is of type "Microsoft Storage Space" in an Ubuntu virtual machine, you need to first identify the disk device path in Ubuntu and then create a file system on the disk.
    Here are the steps to do it:

    1. Connect to your Ubuntu virtual machine and open a terminal.
    2. Use the "lsblk" command to list all available block devices and their partitions, and identify the disk device path of the attached disk. The device path should look something like "/dev/sdc".
    3. Create a file system on the disk with the following command, replacing "/dev/sdc" with the actual device path of your disk:

    sudo mkfs.ntfs /dev/sdc

    1. Create a mount point directory where you want to mount the disk. For example:
      sudo mkdir /mnt/disk
    2. Mount the disk to the mount point directory with the following command, replacing "/dev/sdc" with the actual device path of your disk:
      sudo mount /dev/sdc /mnt/disk
    3. You should now be able to access the contents of the disk at the mount point directory.

    Please don't forget to mark it as an answer. Also please let me know if further assistance required on the same.

    Regards,
    Umang middha
    Umangmiddha2@gmail.com