Shared disk on 2 VMs with live sync

Valeriano Villani 1 Reputation point
2021-10-20T14:58:08.457+00:00

Hallo

I'm really newbye on azure so please excuse me if my question could results trivial.

I've searching a solution where 2 VM in the same resource group could use a shared storage solution.

First VM host a my company's software that generate a huge number of small file (250k hours), and a second VM host a sftp server that can't use a mapped drive like root folder.

For this reason, i can't use a storage account file share. I've tried to implement a solution with a shared managed disk, but i realized that while 2 VMs are running, the jobs executed on the drive by one of them, don't seems to be in sync from what i see on the same shared disk on the other one.

Long story short: if i move 100 files on the shared disk in the first VM, they don't appers in the same shared disk on the socond one.

If i restart the second VM, i can see the file moved on the share disk before.
I need a solution where the disk could be synched between 2 vms

I don't understand if i must set up a cluster, but the VMs are'n in the same domain.

Could you please help my finding a best practice for this situation?

Thanks

Thanks

Azure Files
Azure Files
An Azure service that offers file shares in the cloud.
1,162 questions
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,123 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.
572 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. deherman-MSFT 33,296 Reputation points Microsoft Employee
    2021-10-21T19:16:38.847+00:00

    @Valeriano Villani

    As noted in the documentation you need to have an application using SCSI Persistent Reservations in order for the VM to be aware of the writes from the other location. You can review a list of possible applications here.

    Since your second VM is already a SFTP server have you tried writing directly to the location? We also have an example of an SFTP server backed by Azure Files that you could consider. Alternatively you might consider transitioning this over to an Azure Files share so you eliminate the need for this server.

    Hope this helps! Let us know if you have any follow-up questions or issues.

    -------------------------------

    Please don’t forget to "Accept the answer" and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments